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

[PATCH] Ensure author information is set before asking for commit message.

From
Sean <seanlkml@sympatico.ca>
Date
May 14, 2006, 01:51 UTC
Message-ID
<BAYC1-PASMTP10DC791E7560155D9E71F4AEA20@CEZ.ICE>

It's better to find out you need to set your author information properly before you enter a long commit message.

Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca>
---
 git-commit.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
ae880db6fc12a0774c25925abbcc353fe6c9e46f
diff --git a/git-commit.sh b/git-commit.sh
index 26cd7ca..866ed6c 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -640,6 +640,7 @@ case "$no_edit" in
 		exit 1
 		;;
 	esac
+	git-var GIT_AUTHOR_IDENT > /dev/null  || die
 	${VISUAL:-${EDITOR:-vi}} "$GIT_DIR/COMMIT_EDITMSG"
 	;;
 esac
-- 
1.3.2.g260bd
Next: Junio C Hamano
Message 1 of 3 in “Ensure author information is set before asking for commit message.”
  1. Ensure author information is set before asking for commit message.Sean, May 14, 2006
  2. Junio C HamanoMay 14, 2006
  3. Ensure author & committer before asking for commit message.Sean, May 14, 2006

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.