author | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 Dec 2007 07:23:20 +0000 (23:23 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 Dec 2007 08:55:55 +0000 (00:55 -0800) | ||
commit | 740001a5780a12972c83c99f25c49c8d8cebdb43 | |
tree | 228d6f0b9401aeea2e83bbcaf320edda42029e8f | tree | snapshot |
parent | aa6da6cddb65c3889751d0b06a7e3d339e303b1b | commit | diff |
Fix commit-msg hook to allow editing
The old git-commit.sh script allowed the commit-msg hook to not only
prevent a commit from proceding, but also to edit the commit message
on the fly and allow it to proceed. So here we teach builtin-commit
to do the same.
This is based on Wincent's patch, but redone with a clarified logic.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The old git-commit.sh script allowed the commit-msg hook to not only
prevent a commit from proceding, but also to edit the commit message
on the fly and allow it to proceed. So here we teach builtin-commit
to do the same.
This is based on Wincent's patch, but redone with a clarified logic.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
builtin-tag.c | diff | blob | history |