Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH] commit: update the index after running the pre-commit hook

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:20

Ævar Arnfjörð Bjarmason  [off-list ref] writes:
Change git-commit to update the index after running the pre-commit
hook, but before it constructs the comments that'll accompany the
commit message displayed in the $EDITOR.
Hmm.

I have always thought that "pre-commit" is about verification, just like
other pre-anything hooks.  We have never sanctioned it to modify the tree,
and the document does not say the hook is allowed to.

Although I am not opposed to this patch, it is a change to the defined
semantics that is somewhat worrysome.  We probably should document what it
is and is not allowed to a bit better.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help