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

Re: rebase -i: quick/inline reword

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2020, 04:52 UTC
Message-ID
<xmqqzhak4a9o.fsf@gitster.c.googlers.com>
In-Reply-To
<CANtMP6oKN6Ueu=fqFYv2VhUP5S-ifbSzPTARvbEg4eV0pcRcHw@mail.gmail.com>
Solomon Ucko <solly.ucko@gmail.com> writes:
Show 5 quoted lines
> ... 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.

Equally a bad idea, but perhaps slightly less evil, would be to add a new verb that can be used to replace "pick" with, say, "retitle", and teach the sequencing machinery to pay attention to the updated title line only in that case.

Besides, neither is really workable, as the single line text after the abbreviated commit object name in the todo list is meant as an output only "informational" comment on each step, and there are plans to add more than just the squashed title paragraph there (cf. *1* for an example). Even without such a future change, the material there may not be just the commit title, if I am reading the code correctly, when rebase.instructionFormat is in use.

[Reference]
*1* https://lore.kernel.org/git/pull.757.v3.git.git.1586573067.gitgitgadget@gmail.com/
Previous: Solomon UckoNext: Jeff King
Message 2 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.