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>
This commit is contained in:
committed by
Junio C Hamano
parent
91c9c86920
commit
15048f8a9a
3
commit.h
3
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 */
|
||||
|
||||
Reference in New Issue
Block a user