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

Re: rebase -i: quick/inline reword

From
Sergey Organov <sorganov@gmail.com>
Date
May 7, 2020, 10:49 UTC
Message-ID
<87imh8m346.fsf@osv.gnss.ru>
In-Reply-To
<CANtMP6oKN6Ueu=fqFYv2VhUP5S-ifbSzPTARvbEg4eV0pcRcHw@mail.gmail.com>
Solomon Ucko <solly.ucko@gmail.com> writes:
Show 10 quoted lines
> Currently, `rebase -i` allows modifying the commit titles in the list, and
> the modified title is shown in the lists of previous and next commands, but
> the changes are not saved. Currently, modifying just the titles of many
> commits requires `reword`ing each one and separately and consecutively editing
> each message, which is annoying when making small, repetitive edits, especially
> since it requires double-checking each one separately. 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.?
Yes, thanks for raising the issue!

I've needed the feature many times myself, but then, as Junio already described in his reply, I realized it's likely a no-go with current design of the todo lists. Changing just the titles probably still could be implemented in a useful way (as with your --reword suggestion), but its application is in fact rather limited, so maybe isn't worth the trouble.

It'd be really nice if it were possible to, say, search&replace in, or spell-check, interactively, all the commit messages (including titles) of a bunch of commits to be published, all in a single file handled by single rebase run.

This is a feature that I'd like to see being considered if and when we decide to design a history editing feature that is more powerful than current dos-batch-files-alike processing enhanced with comefrom labels.

-- Sergey
Previous: Solomon UckoNext: brian m. carlson
Message 6 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.