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

Re: [GSoC Proposal/RFC] Rolling commit message writing

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 30, 2010, 03:05 UTC
Message-ID
<20100330030508.GA2887@progeny.tock>
In-Reply-To
<32541b131003291331y3ae5ca23la33466d588c1b9e1@mail.gmail.com>
Hi,
Avery Pennarun wrote:
> Given these existing capabilities, is it still worth adding the
> feature you propose?
I think it might be, in some modified form.

Suppose I am working on a medium-sized change that for reasons of bisectability or ontology has to be one commit. In the middle of working, I notice I needed to do something nonobvious. Currently when this happens, I get out a pad of paper and write it down, so I can be sure to mention it in the commit message.

Wouldn’t it be nicer in such situations to be able to say git add --commit-message or similar, open an editor, and write the note right away?

In other words, it would be nice to have a file in .git that is
 - cleared on successful commit
 - automatically used to fill COMMIT_EDITMSG, like MERGE_MSG is

I suspect something like this can be achieved by the combination of the commit.template configuration variable and a post-commit hook to clear the file, but I haven’t tried it.

Regards, Jonathan

Previous: Avery PennarunNext: Avery Pennarun
Message 3 of 7 in “[GSoC Proposal/RFC] Rolling commit message writing”
  1. Daniel ThomasMar 28, 2010
  2. Avery PennarunMar 29, 2010
  3. Jonathan NiederMar 30, 2010
  4. Avery PennarunMar 30, 2010
  5. the careless committer and fear of commitment (rebase -i vs add -p)Jonathan Nieder, Mar 30, 2010
  6. Ramkumar RamachandraMar 30, 2010
  7. Jeff KingMar 30, 2010

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.