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 with the default error
stream
|
static CommitMsgHook |
commitMsg(Repository repo,
PrintStream outputStream,
PrintStream errorStream)
Create commit-msg hook for the given repository
|
static PostCommitHook |
postCommit(Repository repo,
PrintStream outputStream)
Create post-commit hook for the given repository with the default error
stream
|
static PostCommitHook |
postCommit(Repository repo,
PrintStream outputStream,
PrintStream errorStream)
Create post-commit hook for the given repository
|
static PreCommitHook |
preCommit(Repository repo,
PrintStream outputStream)
Create pre-commit hook for the given repository with the default error
stream
|
static PreCommitHook |
preCommit(Repository repo,
PrintStream outputStream,
PrintStream errorStream)
Create pre-commit hook for the given repository
|
static PrePushHook |
prePush(Repository repo,
PrintStream outputStream)
Create pre-push hook for the given repository with the default error
stream
|
static PrePushHook |
prePush(Repository repo,
PrintStream outputStream,
PrintStream errorStream)
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.out
public static PreCommitHook preCommit(Repository repo, PrintStream outputStream, PrintStream errorStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
errorStream
- The error stream, or null
to use System.err
public static PostCommitHook postCommit(Repository repo, PrintStream outputStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
public static PostCommitHook postCommit(Repository repo, PrintStream outputStream, PrintStream errorStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
errorStream
- The error stream, or null
to use System.err
public static CommitMsgHook commitMsg(Repository repo, PrintStream outputStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
public static CommitMsgHook commitMsg(Repository repo, PrintStream outputStream, PrintStream errorStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
errorStream
- The error stream, or null
to use System.err
public static PrePushHook prePush(Repository repo, PrintStream outputStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
public static PrePushHook prePush(Repository repo, PrintStream outputStream, PrintStream errorStream)
repo
- a Repository
object.outputStream
- The output stream, or null
to use System.out
errorStream
- The error stream, or null
to use System.err
Copyright © 2019 Eclipse JGit Project. All rights reserved.