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 String
call()
void
setRefs(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:PrePushHook
Set Refs- Overrides:
setRefs
in classPrePushHook
- Parameters:
toRefs
- a collection ofRemoteRefUpdate
s
-
call
public String call() throws IOException, AbortedByHookException
Description copied from class:PrePushHook
Run the hook.
- Specified by:
call
in interfaceCallable<String>
- Overrides:
call
in classPrePushHook
- Throws:
IOException
AbortedByHookException
-
-