public class Hooks extends Object
| Constructor and Description |
|---|
Hooks() |
| Modifier and Type | Method and Description |
|---|---|
static CommitMsgHook |
commitMsg(Repository repo,
PrintStream outputStream)
Create commit-msg hook for the given repository
|
static PostCommitHook |
postCommit(Repository repo,
PrintStream outputStream)
Create post-commit hook for the given repository
|
static PreCommitHook |
preCommit(Repository repo,
PrintStream outputStream)
Create pre-commit hook for the given repository
|
static PrePushHook |
prePush(Repository repo,
PrintStream outputStream)
Create pre-push hook for the given repository
|
public static PreCommitHook preCommit(Repository repo, PrintStream outputStream)
repo - a Repository object.outputStream - The output stream, or null to use System.outpublic static PostCommitHook postCommit(Repository repo, PrintStream outputStream)
repo - a Repository object.outputStream - The output stream, or null to use System.outpublic static CommitMsgHook commitMsg(Repository repo, PrintStream outputStream)
repo - a Repository object.outputStream - The output stream, or null to use System.outpublic static PrePushHook prePush(Repository repo, PrintStream outputStream)
repo - a Repository object.outputStream - The output stream, or null to use System.outCopyright © 2018 Eclipse JGit Project. All rights reserved.