summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2014-03-18 11:00:53 +0100
committerJunio C Hamano <gitster@pobox.com>2014-03-18 11:25:12 -0700
commit15048f8a9ace23df67161746ca76b4f46114deee (patch)
tree5b7d00d2da24c8e31ede5d028b889bf06a63aaaf /commit.h
parent91c9c8692056c0553c6ea9239ccd46f7f3dbd877 (diff)
downloadgit-15048f8a9ace23df67161746ca76b4f46114deee.tar.gz
commit: fix patch hunk editing with "commit -p -m"
Don't change git environment: move the GIT_EDITOR=":" override to the hook command subprocess, like it's already done for GIT_INDEX_FILE. Signed-off-by: Benoit Pierre <benoit.pierre@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 16d9c43513..8d97a5caa3 100644
--- a/commit.h
+++ b/commit.h
@@ -304,4 +304,7 @@ extern void check_commit_signature(const struct commit* commit, struct signature
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused);
+LAST_ARG_MUST_BE_NULL
+extern int run_commit_hook(int editor_is_used, const char *index_file, const char *name, ...);
+
#endif /* COMMIT_H */