Class PostCommitHook

java.lang.Object
org.eclipse.jgit.hooks.GitHook<Void>
org.eclipse.jgit.hooks.PostCommitHook
All Implemented Interfaces:
Callable<Void>

public class PostCommitHook extends GitHook<Void>
The post-commit hook implementation. This hook is run after the commit was successfully executed.
Since:
4.5
  • Field Details

  • Constructor Details

    • PostCommitHook

      protected PostCommitHook(Repository repo, PrintStream outputStream)
      Constructor for PostCommitHook

      This constructor will use the default error stream.

      Parameters:
      repo - The repository
      outputStream - The output stream the hook must use. null is allowed, in which case the hook will use System.out.
    • PostCommitHook

      protected PostCommitHook(Repository repo, PrintStream outputStream, PrintStream errorStream)
      Constructor for PostCommitHook
      Parameters:
      repo - The repository
      outputStream - The output stream the hook must use. null is allowed, in which case the hook will use System.out.
      errorStream - The error stream the hook must use. null is allowed, in which case the hook will use System.err.
      Since:
      5.6
  • Method Details