From: Junio C Hamano Date: Sat, 25 Jul 2020 15:00:13 GMT Subject: Re: Verbose commit message diff not showing changes from pre-commit hook Message-ID: In-Reply-To: Maxime Louet 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.