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

Re: Using two-dot range notation in `git rebase`?

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 29, 2021, 19:33 UTC
Message-ID
<xmqq5yws6hjv.fsf@gitster.g>
In-Reply-To
<YQLldzh5OEY+mPLY@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> Potentially it opens the door for stuff like:
>
>   git rebase ^A B C D
>
> but I am not sure if that is helpful or horrifying. ;)

It is the "you might be forgetting that 'rebase' is a tool to rebase a single branch, and is not a tool to replay a history on a commit" example.

The "multi-pick" variant of "git cherry-pick" probably has a lot more affinity with the idea of specifying general sub-graph of history to be replayed, expressed in the "externded SHA-1" syntax, I would think.

Thanks.
Previous: Jeff King
Message 10 of 10 in “Using two-dot range notation in `git rebase`?”
  1. Philip OakleyJul 28, 2021
  2. Daniel Knittl-FrankJul 28, 2021
  3. Philip OakleyJul 29, 2021
  4. Jeff KingJul 29, 2021
  5. Philip OakleyJul 29, 2021
  6. Junio C HamanoJul 29, 2021
  7. Sergey OrganovJul 29, 2021
  8. Junio C HamanoJul 29, 2021
  9. Jeff KingJul 29, 2021
  10. Junio C HamanoJul 29, 2021

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.