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

Re: [minor usability suggestion] git rebase <upstream> --onto <newbase> ?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 7, 2008, 18:23 UTC
Message-ID
<7vej1ngztd.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20081107092035.GA1339@elte.hu>
Ingo Molnar <mingo@elte.hu> writes:
Show 5 quoted lines
>  earth4:~/tip> git rebase 685aebb --onto linus
>  Current branch core/urgent is up to date.
> ...
> For example "git log" is exemplary in this area as it accepts just 
> about any permutation of parameters thrown at it, ...
Not really.

There may be oddball commands whose parameter order have been established differently long before "git log" came, but almost all of them now use the same convention used by the "git log" family, which is flags/options then revs (and then paths if the operation makes sense with paths). And rebase is not one of the oddball ones.

Your "rebase" example is a rev then a flag/option, which is not how any other git command take its command line parameters.

> Or at least we should print some sort of warning/error?
With that I agree with.  Patches? ;-)
Previous: Ingo MolnarNext: Daniel Barkalow
Message 2 of 5 in “[minor usability suggestion] git rebase <upstream> --onto <newbase> ?”
  1. Ingo MolnarNov 7, 2008
  2. Junio C HamanoNov 7, 2008
  3. Daniel BarkalowNov 7, 2008
  4. Junio C HamanoNov 7, 2008
  5. Ingo MolnarNov 8, 2008

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.