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

Re: BUG: `git commit` adding unstaged chunks of files to commits on 2.33.0

From
Andrew Thorp <andrew.thorp.dev@gmail.com>
Date
Aug 31, 2021, 19:45 UTC
Message-ID
<CAHBARKcDBVbJ5fROe+CCrN5pDS057qJb91PMdN+28DUbPOSp0Q@mail.gmail.com>
In-Reply-To
<xmqqczptto00.fsf@gitster.g>

Ah, you're right. I have a pre-commit hook which does some formatting and then re-adds the files. Doing so adds the unstaged chunks silently.

Thanks for taking a look Junio. I'll try to reproduce on a clean repo next time.
Cheers,
Andrew Thorp
Previous: Junio C HamanoNext: Philippe Blain
Message 6 of 7 in “BUG: `git commit` adding unstaged chunks of files to commits on 2.33.0”
  1. Andrew ThorpAug 31, 2021
  2. Junio C HamanoAug 31, 2021
  3. Andrew ThorpAug 31, 2021
  4. Andrew ThorpAug 31, 2021
  5. Junio C HamanoAug 31, 2021
  6. Andrew ThorpAug 31, 2021
  7. Philippe BlainSep 1, 2021

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.