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

Re: [PATCH] Add commit.status, --status, and --no-status

From
Jeff King <peff@peff.net>
Date
Dec 8, 2009, 07:55 UTC
Message-ID
<20091208075517.GC12049@coredump.intra.peff.net>
In-Reply-To
<7vr5r6ndkz.fsf@alter.siamese.dyndns.org>
On Mon, Dec 07, 2009 at 11:13:00PM -0800, Junio C Hamano wrote:
Show 12 quoted lines
> >> This commit provides support for commit.status, --status, and
> >> --no-status, which control whether or not the git status information
> >> is included in the commit message template when using an editor to
> >> prepare the commit message.  It does not affect the effects of a
> >> user's commit.template settings.
> >
> > Thanks, this looks very cleanly done. The only complaint I would make is
> > that it should probably include a simple test case.
> 
> Yes.  Also I am a _bit_ worried about the name "status", as the longer
> term direction is to make "status" not "a preview of commit", may confuse
> people who do read Release Notes.

I thought about that, but what other name does it have? That text has always been called "status", and we will continue to support that output format as "git status" _and_ as "commit --dry-run". So I think explaining it as "usually we stick the output of 'git status' into the commit message, but this suppresses it" is not that hard (and that was how I read the documentation in his patch).

The only trick is that it is not a vanilla "git status", but rather "status after we have staged things for commit". But I think that is fairly obvious since you are, after all, calling "commit".

But then again, I am probably way too deep in this topic to provide a regular git user's perspective of what is obvious.

-Peff
Previous: Junio C HamanoNext: James P. Howard, II
Message 13 of 15 in “Add commit.infodisplay option to give message editor empty file”
  1. Add commit.infodisplay option to give message editor empty fileJames P. Howard, II, Dec 4, 2009
  2. Junio C HamanoDec 5, 2009
  3. James P. Howard, IIDec 5, 2009
  4. Jeff KingDec 5, 2009
  5. James P. Howard, IIDec 5, 2009
  6. Jeff KingDec 6, 2009
  7. Junio C HamanoDec 6, 2009
  8. Jeff KingDec 6, 2009
  9. Add commit.status, --status, and --no-statusJames P. Howard, II, Dec 7, 2009
  10. James PickensDec 8, 2009
  11. Jeff KingDec 8, 2009
  12. Junio C HamanoDec 8, 2009
  13. Jeff KingDec 8, 2009
  14. James P. Howard, IIDec 8, 2009
  15. James P. Howard, IIDec 7, 2009

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.