]> source.dussan.org Git - jgit.git/commit
Refactored pre-commit hook to make it less invasive. 02/42402/8
authorLaurent Delaigue <laurent.delaigue@obeo.fr>
Mon, 23 Feb 2015 10:18:50 +0000 (11:18 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Mon, 2 Mar 2015 14:33:30 +0000 (15:33 +0100)
commit26fd56f167e6377777e6d46c14779183e4bcb55a
tree1d852b5ff1a32930773aff6218c03b09e6e56245
parent12a55c34753669365d9e644e592d9d8c10e742f1
Refactored pre-commit hook to make it less invasive.

Hooks are now obtained via a convenient API like git commands, and
callers don't have to check for their existence.
The pre-commit hook has been updated accordingly.

Change-Id: I3383ffb10e2f3b588d7367b9139b606ec7f62758
Signed-off-by: Laurent Delaigue <laurent.delaigue@obeo.fr>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
18 files changed:
org.eclipse.jgit.java7.test/META-INF/MANIFEST.MF
org.eclipse.jgit.java7.test/src/org/eclipse/jgit/util/HookTest.java
org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_POSIX_Java7.java
org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7Cygwin.java
org.eclipse.jgit/META-INF/MANIFEST.MF
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/errors/AbortedByHookException.java [new file with mode: 0755]
org.eclipse.jgit/src/org/eclipse/jgit/api/errors/RejectCommitException.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/hooks/GitHook.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/hooks/Hooks.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/hooks/PreCommitHook.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32_Cygwin.java
org.eclipse.jgit/src/org/eclipse/jgit/util/Hook.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/util/ProcessResult.java