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

Re: Issue when changing staged files in a pre-commit hook

From
NKNiek van der Kooy <niekvanderkooy@gmail.com>
Date
Jan 19, 2016, 11:53 UTC
Message-ID
<CAPYEnzFLD8z3KXA7yWxaQss22VhcuL2Oc-=D_Qxs-s0q+pQ-mg@mail.gmail.com>
In-Reply-To
<CAPYEnzGfnRbajDQAwBTNE5XSaB0WbHKbf1heRV0bUgbq5w_A5g@mail.gmail.com>

A few weeks ago I sent below email, and was wondering if anyone can either confirm this as a bug or tell me the correct way to approach the problem.

Regards, Niek van der Kooy

On 28 December 2015 at 13:17, Niek van der Kooy <niekvanderkooy@gmail.com> wrote:

Show 10 quoted lines
> 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
Previous: Niek van der KooyNext: Duy Nguyen
Message 2 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.