Thread (1 message) 1 message, 1 author, 2020-07-25

Re: Verbose commit message diff not showing changes from pre-commit hook

From: Junio C Hamano <hidden>
Date: 2020-07-25 15:00:18

Maxime Louet [off-list ref] writes:
Is this expected behaviour? I find it somehow confusing that the diff
in the commit message isn't the actual commit diff.
Since the designed purpose of pre-commit hook is to examine the
contents to be committed and reject the attempt to commit if there
is something wrong found, and Git does not expect it to munge the
contents to be committed, if the hook does so, you would get an
undefined behaviour.  So anything is totally expected at that point.

Thanks.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help