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

Oddity in git commit summary

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 15, 2007, 20:29 UTC
Message-ID
<Pine.LNX.4.64.0712151507420.5349@iabervon.org>

I just noticed that I got a strange summary from git commit -a --amend with the current master. It said:

Created commit f16cb29: Build in checkout
 5 files changed, 482 insertions(+), 299 deletions(-)
 create mode 100644 builtin-checkout.c
 delete mode 100755 git-checkout.sh
But git show --stat says:
 7 files changed, 780 insertions(+), 306 deletions(-)
And git show --stat -C says:
 6 files changed, 482 insertions(+), 8 deletions(-)
The commit that I noticed this on is available from:
 git://iabervon.org/~barkalow/git.git builtin-checkout

I've never particularly paid attention to this message before, so I don't know if it's saying something accurate I'm not understanding, or if it's actually inaccurate about what it's trying to show.

	-Daniel
*This .sig left intentionally blank*
Next: Junio C Hamano
Message 1 of 5 in “Oddity in git commit summary”
  1. Daniel BarkalowDec 15, 2007
  2. Junio C HamanoDec 16, 2007
  3. 1/2 builtin-commit: fix summary output.Junio C Hamano, Dec 16, 2007
  4. 2/2 builtin-commit: make summary output consistent with statusJunio C Hamano, Dec 16, 2007
  5. Daniel BarkalowDec 17, 2007

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.