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

Re: is it kosher for pre-commit to change what's staged?

From
Kevin Ballard <kevin@sb.org>
Date
Nov 11, 2010, 22:06 UTC
Message-ID
<F0C8038B-0D8C-4A50-9934-9D9CF26FF9F9@sb.org>
In-Reply-To
<7vlj4zfrgt.fsf@alter.siamese.dyndns.org>
On Nov 11, 2010, at 2:03 PM, Junio C Hamano wrote:
Show 14 quoted lines
> Joey Hess <joey@kitenet.net> writes:
> 
>> ... The
>> pre-commit script there stores some metadata about files that git
>> usually doesn't track, by putting it in a dotfile, and stages that
>> dotfile for commit. Which currently works fine, except for the minor
>> problem that the user doesn't see the dotfile listed in the commit
>> message.
> 
> I am hearing "list of files in the commit message", and am getting
> confused.  As far as I know we don't store such a list in the commit
> message.
> 
> Puzzled.

I believe he means in the # comments at the bottom of the editor. They contain the output of `git status` as a reminder of what you're committing.

-Kevin Ballard
Previous: Junio C Hamano
Message 9 of 9 in “is it kosher for pre-commit to change what's staged?”
  1. Joey HessNov 10, 2010
  2. Junio C HamanoNov 10, 2010
  3. Jonathan NiederNov 10, 2010
  4. Joey HessNov 10, 2010
  5. Dmitry PotapovNov 10, 2010
  6. Jan HudecNov 11, 2010
  7. Joey HessNov 11, 2010
  8. Junio C HamanoNov 11, 2010
  9. Kevin BallardNov 11, 2010

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.