Browse Source

Allow to define additional Hook classes outside JGit

EGit wants to add gitflow specific hooks in org.eclipse.egit.gitflow.
Make GitHook public to allow sub-classing outside of the
org.eclipse.jgit.hooks package.

Change-Id: I439575ec901e3610b5cf9d66f7641c8324faa865
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.11.0.202102240950-m3
Matthias Sohn 3 years ago
parent
commit
935c8b752b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/hooks/GitHook.java

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/hooks/GitHook.java View File

@@ -33,9 +33,9 @@ import org.eclipse.jgit.util.io.TeeOutputStream;
* the return type which is expected from {@link #call()}
* @see <a href="http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks">Git
* Hooks on the git-scm official site</a>
* @since 4.0
* @since 5.11
*/
abstract class GitHook<T> implements Callable<T> {
public abstract class GitHook<T> implements Callable<T> {

private final Repository repo;


Loading…
Cancel
Save