From: Junio C Hamano <gitster@pobox.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: git@vger.kernel.org
Subject: Re: [minor usability suggestion] git rebase <upstream> --onto <newbase> ?
Date: Fri, 07 Nov 2008 10:23:42 -0800 [thread overview]
Message-ID: <7vej1ngztd.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20081107092035.GA1339@elte.hu> (Ingo Molnar's message of "Fri, 7 Nov 2008 10:20:35 +0100")
Ingo Molnar <mingo@elte.hu> writes:
> 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? ;-)
next prev parent reply other threads:[~2008-11-07 18:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 9:20 [minor usability suggestion] git rebase <upstream> --onto <newbase> ? Ingo Molnar
2008-11-07 18:23 ` Junio C Hamano [this message]
2008-11-07 20:10 ` Daniel Barkalow
2008-11-07 21:06 ` Junio C Hamano
2008-11-08 11:49 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vej1ngztd.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox