Package org.eclipse.jgit.lfs
Class LfsPrePushHook
- java.lang.Object
-
- org.eclipse.jgit.hooks.GitHook<String>
-
- org.eclipse.jgit.hooks.PrePushHook
-
- org.eclipse.jgit.lfs.LfsPrePushHook
-
public class LfsPrePushHook extends PrePushHook
Pre-push hook that handles uploading LFS artefacts.- Since:
- 4.11
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.hooks.PrePushHook
NAME
-
-
Constructor Summary
Constructors Constructor Description LfsPrePushHook(Repository repo, PrintStream outputStream)LfsPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcall()voidsetRefs(Collection<RemoteRefUpdate> toRefs)Set Refs-
Methods inherited from class org.eclipse.jgit.hooks.PrePushHook
getHookName, getParameters, getRemoteName, getStdinArgs, isDryRun, setDryRun, setRemoteLocation, setRemoteName
-
Methods inherited from class org.eclipse.jgit.hooks.GitHook
doRun, getErrorStream, getOutputStream, getRepository, handleError, isNativeHookPresent
-
-
-
-
Constructor Detail
-
LfsPrePushHook
public LfsPrePushHook(Repository repo, PrintStream outputStream)
- Parameters:
repo- the repositoryoutputStream- not used by this implementation
-
LfsPrePushHook
public LfsPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream)
- Parameters:
repo- the repositoryoutputStream- not used by this implementationerrorStream- not used by this implementation- Since:
- 5.6
-
-
Method Detail
-
setRefs
public void setRefs(Collection<RemoteRefUpdate> toRefs)
Description copied from class:PrePushHookSet Refs- Overrides:
setRefsin classPrePushHook- Parameters:
toRefs- a collection ofRemoteRefUpdates
-
call
public String call() throws IOException, AbortedByHookException
Description copied from class:PrePushHookRun the hook.
- Specified by:
callin interfaceCallable<String>- Overrides:
callin classPrePushHook- Throws:
IOExceptionAbortedByHookException
-
-