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

Issue when changing staged files in a pre-commit hook

From
NKNiek van der Kooy <niekvanderkooy@gmail.com>
Date
Dec 28, 2015, 12:17 UTC
Message-ID
<CAPYEnzGfnRbajDQAwBTNE5XSaB0WbHKbf1heRV0bUgbq5w_A5g@mail.gmail.com>

I am having an issue where the default commit message is not changed when adding staged files in a pre-commit hook. Please see http://stackoverflow.com/questions/34492779/git-update-git-status-part-of-commit-message-after-pre-commit-hook for details.

Is there a workaround / proper way to achieve what I am trying to do, or is this a bug?

Regards, Niek van der Kooy

Next: Niek van der Kooy
Message 1 of 9 in “Issue when changing staged files in a pre-commit hook”
  1. Niek van der KooyDec 28, 2015
  2. Niek van der KooyJan 19, 2016
  3. Duy NguyenJan 19, 2016
  4. Junio C HamanoJan 19, 2016
  5. Duy NguyenJan 19, 2016
  6. Junio C HamanoJan 19, 2016
  7. Duy NguyenJan 20, 2016
  8. Junio C HamanoJan 20, 2016
  9. Duy NguyenJan 22, 2016

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.