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

Adding a commit message to the index

From
CHCameron Hutchison <lists@xdna.net>
Date
Sep 18, 2010, 22:38 UTC
Message-ID
<3347.4c955dd6.4a79e@getafix.xdna.net>

Is it possible to add a commit message to the index, and have it used as the final commit message, or as the template for the final commit message?

Witnessing AKPM's ongoing efforts on linux-kernel to get better commit messages out of people, it seems it would be beneficial to be able to stage a commit message and refine it over the course of the development of the commit. The first cut is rarely the best, so being able to refine a commit message as one can refine a commit by incrementally using the index seems like a good idea.

I know I can use git-commit -F and store my commit message outside of git, but it would be nice to have it in the index with the code it comments on. That would make the commit and the message stay together with git-stash for example. Apply this to other index-modifying operations too.

Next: Joshua Juran
Message 1 of 4 in “Adding a commit message to the index”
  1. Cameron HutchisonSep 18, 2010
  2. Joshua JuranSep 19, 2010
  3. Ævar Arnfjörð BjarmasonSep 19, 2010
  4. Jakub NarebskiSep 19, 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.