public class PostCommitHook extends GitHook<java.lang.Void>
post-commit
hook implementation. This hook is run after the
commit was successfully executed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The post-commit hook name.
|
outputStream
Modifier | Constructor and Description |
---|---|
protected |
PostCommitHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for PostCommitHook
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
call() |
java.lang.String |
getHookName()
Get name of the hook
|
doRun, getOutputStream, getParameters, getRepository, getStdinArgs, isNativeHookPresent
public static final java.lang.String NAME
protected PostCommitHook(Repository repo, java.io.PrintStream outputStream)
repo
- The repositoryoutputStream
- The output stream the hook must use. null
is allowed,
in which case the hook will use System.out
.public java.lang.Void call() throws java.io.IOException, AbortedByHookException
Run the hook.
call
in interface java.util.concurrent.Callable<java.lang.Void>
call
in class GitHook<java.lang.Void>
java.io.IOException
AbortedByHookException
public java.lang.String getHookName()
getHookName
in class GitHook<java.lang.Void>
null
.