Class LfsPrePushHook
java.lang.Object
org.eclipse.jgit.hooks.GitHook<String>
org.eclipse.jgit.hooks.PrePushHook
org.eclipse.jgit.lfs.LfsPrePushHook
Pre-push hook that handles uploading LFS artefacts.
- Since:
- 4.11
-
Field Summary
Fields inherited from class PrePushHook
NAME -
Constructor Summary
ConstructorsConstructorDescriptionLfsPrePushHook(Repository repo, PrintStream outputStream) LfsPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) -
Method Summary
Modifier and TypeMethodDescriptioncall()voidsetRefs(Collection<RemoteRefUpdate> toRefs) Set RefsMethods inherited from class PrePushHook
getHookName, getParameters, getRemoteName, getStdinArgs, setRemoteLocation, setRemoteNameMethods inherited from class GitHook
doRun, getErrorStream, getOutputStream, getRepository, handleError, isNativeHookPresent
-
Constructor Details
-
LfsPrePushHook
- Parameters:
repo- the repositoryoutputStream- not used by this implementation
-
LfsPrePushHook
- Parameters:
repo- the repositoryoutputStream- not used by this implementationerrorStream- not used by this implementation- Since:
- 5.6
-
-
Method Details
-
setRefs
Description copied from class:PrePushHookSet Refs- Overrides:
setRefsin classPrePushHook- Parameters:
toRefs- a collection ofRemoteRefUpdates
-
call
Description copied from class:PrePushHookRun the hook.
- Specified by:
callin interfaceCallable<String>- Overrides:
callin classPrePushHook- Throws:
IOExceptionAbortedByHookException
-