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

Re: rebase -i: quick/inline reword

From
Jeff King <peff@peff.net>
Date
May 7, 2020, 11:46 UTC
Message-ID
<20200507114630.GC3027470@coredump.intra.peff.net>
In-Reply-To
<xmqqzhak4a9o.fsf@gitster.c.googlers.com>
On Wed, May 06, 2020 at 09:52:19PM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> Solomon Ucko <solly.ucko@gmail.com> writes:
> 
> > ... It would be much easier
> > if there were a mode where any changes to the commit titles in the list
> > modified the commits' titles. Maybe `git rebase -i --reword`?
> >
> > Any thoughts, suggestions, questions, etc.?
> 
> It is probably a bad idea, as it encourages a single-liner commit
> message without any body.

There is another legitimate use (or at least one I have wished for many times): when manipulating the todo list in my editor to choose patches for editing, I sometimes notice a typo in the title and correct it. And of course that does no good, and I get annoyed. You'd think I would have learned after all these years, but I continue to make the same mistake. ;)

I've often wished that changes there would be quietly persisted. Your "retitle" suggestion would help, but I'd have to remember to use it (I could equally well just remember to use "reword", which I clearly don't).

So I've thought about suggesting this myself in the past, but I held back for the reasons you mentioned below (i.e., that it's not a trustworthy version of the subject in the first place).

I'm not sure if it's solvable or worth solving, but I thought I'd add my 2 cents that the _desire_ at least isn't totally without merit.

-Peff
Previous: Junio C HamanoNext: Sergey Organov
Message 3 of 13 in “rebase -i: quick/inline reword”
  1. Solomon UckoMay 7, 2020
  2. Junio C HamanoMay 7, 2020
  3. Jeff KingMay 7, 2020
  4. Sergey OrganovMay 7, 2020
  5. Solomon UckoMay 7, 2020
  6. Sergey OrganovMay 7, 2020
  7. brian m. carlsonMay 8, 2020
  8. Sergey OrganovMay 8, 2020
  9. Johannes AltmanningerAug 16, 2020
  10. Junio C HamanoAug 16, 2020
  11. Sergey OrganovAug 16, 2020
  12. Junio C HamanoAug 16, 2020
  13. Sergey OrganovAug 16, 2020

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.