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

git commit improvement request

From
JNJon Nelson <jnelson-git@jamponi.net>
Date
Dec 13, 2005, 19:49 UTC
Message-ID
<Pine.LNX.4.63.0512131347000.6812@gheavc.wnzcbav.cig>

There is a small improvement I would like to see it 'git commit'. I am using 0.99.9i at this moment.

If I perform a 'git commit' on a series of files, and then decide not to perform the commit, I can back out of the operation with a blank commit message. Additionally, it would be nice for git commit to recognize a non-zero exit code theoretically indicating 'aborted commit'. In any case, the problem is that, even though git /states/ that it has aborted the commit due to the empty commit message, git diff /appears/ to show that the commit took place. a 'git reset' takes care of things for me but it was rather confusing at first and it seems counter-intuitive. I'm hoping that the behavior here can be changed before 1.0 is released, which I am in eager anticipation for. Thanks!

-- Jon Nelson <jnelson-git@jamponi.net>

Message 1 of 1 in “git commit improvement request”
  1. Jon NelsonDec 13, 2005

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.