public class LfsPrePushHook extends PrePushHook
NAME
Constructor and Description |
---|
LfsPrePushHook(Repository repo,
PrintStream outputStream) |
LfsPrePushHook(Repository repo,
PrintStream outputStream,
PrintStream errorStream) |
Modifier and Type | Method and Description |
---|---|
String |
call() |
void |
setRefs(Collection<RemoteRefUpdate> toRefs)
Set Refs
|
getHookName, getParameters, getRemoteName, getStdinArgs, setRemoteLocation, setRemoteName
doRun, getErrorStream, getOutputStream, getRepository, handleError, isNativeHookPresent
public LfsPrePushHook(Repository repo, PrintStream outputStream)
repo
- the repositoryoutputStream
- not used by this implementationpublic LfsPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream)
repo
- the repositoryoutputStream
- not used by this implementationerrorStream
- not used by this implementationpublic void setRefs(Collection<RemoteRefUpdate> toRefs)
PrePushHook
setRefs
in class PrePushHook
toRefs
- a collection of RemoteRefUpdate
spublic String call() throws IOException, AbortedByHookException
PrePushHook
Run the hook.
call
in interface Callable<String>
call
in class PrePushHook
IOException
AbortedByHookException
Copyright © 2021 Eclipse JGit Project. All rights reserved.