git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Paolo Bonzini <pbonzini@redhat.com>
Date
Jul 27, 2020, 18:13 UTC
Message-ID
<b5f1769d-5c60-bca4-3f46-e55962fa1805@redhat.com>
In-Reply-To
<a8c19b13-3f8c-6602-24dd-ef58af70d702@web.de>
On 26/07/20 19:41, René Scharfe wrote:
Show 18 quoted lines
>>
>> However, ec84bd00 moved the place where we re-read the on-disk index
>> in the sequence, and updated a message that used to read:
>>
>> -	/*
>> -	 * Re-read the index as pre-commit hook could have updated it,
>> -	 * and write it out as a tree.
>> -	 */
>>
>> to:
>>
>> +	/*
>> +	 * Re-read the index as pre-commit hook could have updated it,
>> +	 * and write it out as a tree.  We must do this before we invoke
>> +	 * the editor and after we invoke run_status above.
>> +	 */
> When I read "refactor" in the title, I assume that the patch in
> question doesn't change user-visible behavior.
That was probably the intention.
>> Unfortunately there is no mention of the reason why we "must" here.
> @Paolo: Do you perhaps remember the reason?
I think the idea was to use run_status for the "commitable" assignment.
Paolo
Previous: Maxime Louet
Message 6 of 6 in “Verbose commit message diff not showing changes from pre-commit hook”
  1. Maxime LouetJul 25, 2020
  2. Junio C HamanoJul 25, 2020
  3. Junio C HamanoJul 25, 2020
  4. René ScharfeJul 26, 2020
  5. Maxime LouetJul 26, 2020
  6. Paolo BonziniJul 27, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.