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

Re: git rebase command and docs questions

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Apr 9, 2010, 21:23 UTC
Message-ID
<l2nfabb9a1e1004091423te78b692btd8bbb03785f94a16@mail.gmail.com>
In-Reply-To
<7vhbnk1gc6.fsf@alter.siamese.dyndns.org>
Heya,
On Fri, Apr 9, 2010 at 23:11, Junio C Hamano <gitster@pobox.com> wrote:
> Hmm, re*base* means "change the base to _this one_"; the above is more
> like "replay these on master", which is often a useful operation but is
> different.
Yes, I guess that's true.
> If you _had_ your "replay" command, the workflow for this would be:
>
>    $ git checkout -b maint-fixes origin/maint
>    $ git replay origin..fixes
True again.
> Before somebody else makes useless noises, "cherry-pick" could be a good
> command in the existing UI set to do that kind of thing.
I still think the UI for --onto is awkward. At the very least it should be:
git rebase --fork-at=origin origin/maint fixes

Or something like that. Since currently you suddenly have to specify an argument to --onto that was previously positional. Does that make sense?

Case 1: git rebase origin fixes git rebase <new_base> <tip>

Case 2: git rebase --onto origin/maint origin fixes git rebase --onto=<new_base> <fork_point> <tip>

I know that in the --onto case <new_base> is not an argument to --onto, but that's what it looks/feels like. Said differently, it's just _really weird_ that a new argument (for a different mode) shows up between two other arguments. It should either be at the beginning, or at the end, but in the middle is just awkward, no?

So another solution might be to change the position of the <fork_point> in the --onto case.

-- 
Cheers,

Sverre Rabbelier
Previous: Junio C HamanoNext: Eugene Sajine
Message 5 of 8 in “git rebase command and docs questions”
  1. Eugene SajineApr 9, 2010
  2. Sverre RabbelierApr 9, 2010
  3. Eugene SajineApr 9, 2010
  4. Junio C HamanoApr 9, 2010
  5. Sverre RabbelierApr 9, 2010
  6. Eugene SajineApr 10, 2010
  7. Sverre RabbelierApr 10, 2010
  8. Eugene SajineApr 10, 2010

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.