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

[PATCH] git-commit: do not fail to print the diffstat even if there is a file named HEAD

From
MLMichael Loeffler <zvpunry@zvpunry.de>
Date
Jan 8, 2007, 19:23 UTC
Message-ID
<1168284194.6134.12.camel@ibook.zvpunry.de>
Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
---
 git-commit.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-commit.sh b/git-commit.sh
index 04aad5e..c2beb76 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -628,7 +628,7 @@ then
 	if test -z "$quiet"
 	then
 		echo "Created${initial_commit:+ initial} commit $commit"
-		git-diff-tree --shortstat --summary --root --no-commit-id HEAD
+		git-diff-tree --shortstat --summary --root --no-commit-id HEAD --
 	fi
 fi
 
-- 
1.4.4.4.g49df
Next: Junio C Hamano
Message 1 of 2 in “git-commit: do not fail to print the diffstat even if there is a file named HEAD”
  1. git-commit: do not fail to print the diffstat even if there is a file named HEADMichael Loeffler, Jan 8, 2007
  2. Junio C HamanoJan 8, 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.