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

Re: [RFC] teach --edit to git rebase

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 12, 2011, 04:44 UTC
Message-ID
<7vvcrubyz1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAMQw0oOBEjW3yS2+wcktXDuEuUiHKjfbK2qDzKvBOiwxo7Zkow@mail.gmail.com>
Jean Privat <jean.privat@gmail.com> writes:
> Yes I know "show me the code" but because I am lazy I prefer ask 1-if
> the proposal makes sense, and 2-if the following way of doing it makes
> sense.

No, no, and no we do not necessarily hate talking to lazy people but only as long as what they propose makes some sense.

The only thing you can do with this new option is "update one commit buried in the history, and rebase everything that build on top of it", as far as I can tell. It feels a shame to waste the generic word "--edit" for such a narrow option.

At the UI level, "git commit --amend HEAD~4" might be a more natural way to invoke such an operation, I would think.

Previous: Jean PrivatNext: Jean Privat
Message 3 of 4 in “[RFC] teach --edit to git rebase”
  1. Jean PrivatOct 11, 2011
  2. Jean PrivatOct 11, 2011
  3. Junio C HamanoOct 12, 2011
  4. Jean PrivatOct 12, 2011

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.