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

Re: [PATCH] sequencer: make it clearer that commit descriptions are just comments

From
RReto <reto@slightlybroken.com>
Date
May 15, 2025, 04:42 UTC
Message-ID
<5voz3jolpff7wbs5yg7jvz5dt7omcikhna7j7646veagr63quv@kkxhzxxf4uf2>
In-Reply-To
<pull.1923.git.1747275627422.gitgitgadget@gmail.com>
On Thu, May 15, 2025 at 02:20:27AM +0000, Elijah Newren via GitGitGadget wrote:
Show 5 quoted lines
> Every once in a while, users report that editing the commit summaries
> in the todo list does not get reflected in the rebase operation,
> suggesting that users are (a) only using one-line commit messages, and
> (b) not understanding that the commit summaries are merely helpful
> comments to help them find the right hashes.

As with everything in git, you can learn that this is the case. You could as well just add a explanatory comment to the footer.

Show 5 quoted lines
> It may be difficult to correct users' poor commit messages, but we can
> at least try to make it clearer that the commit summaries are not
> directives of some sort by inserting a comment character.  Hopefully
> that leads to them looking a little further and noticing the hints at
> the bottom to use 'reword' or 'edit' directives.

For fancy things/editors that recognize comments, this will *dim* the commit messages, to light grey or such. This is decidedly not what I'd like to happen at least. The commit messages there are my primary way of navigating the commit, given that I'm not learning the commit shas by hard ;)

While I appreciate the motivation, I don't think the comment string is a good approach here.

Cheers, Reto

Previous: Elijah Newren via GitGitGadgetNext: Phillip Wood
Message 2 of 11 in “sequencer: make it clearer that commit descriptions are just comments”
  1. sequencer: make it clearer that commit descriptions are just commentsElijah Newren via GitGitGadget, May 15, 2025
  2. RetoMay 15, 2025
  3. Phillip WoodMay 15, 2025
  4. Phillip WoodMay 15, 2025
  5. Phillip WoodMay 15, 2025
  6. Junio C HamanoMay 15, 2025
  7. Ben KnobleMay 16, 2025
  8. Elijah NewrenMay 16, 2025
  9. Junio C HamanoMay 16, 2025
  10. Junio C HamanoMay 15, 2025
  11. sequencer: make it clearer that commit descriptions are just commentsElijah Newren via GitGitGadget, May 16, 2025

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.