* Suggestion: rebase [--onto <newbase>] [<upstream>][..[<branch>]]
@ 2012-01-17 16:44 Hallvard Breien Furuseth
2012-01-17 20:17 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Hallvard Breien Furuseth @ 2012-01-17 16:44 UTC (permalink / raw)
To: git
I think
git rebase [--onto <newbase>] [<upstream>][..[<branch>]]
would be a more readable syntax for what rebase is doing. Easier
to see which argument means what without staring at the manpage.
"..[<branch>]" without <upstream> implies --root.
--
Hallvard
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Suggestion: rebase [--onto <newbase>] [<upstream>][..[<branch>]]
2012-01-17 16:44 Suggestion: rebase [--onto <newbase>] [<upstream>][..[<branch>]] Hallvard Breien Furuseth
@ 2012-01-17 20:17 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2012-01-17 20:17 UTC (permalink / raw)
To: Hallvard Breien Furuseth; +Cc: git
Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> writes:
> I think
> git rebase [--onto <newbase>] [<upstream>][..[<branch>]]
> would be a more readable syntax for what rebase is doing. Easier
> to see which argument means what without staring at the manpage.
> "..[<branch>]" without <upstream> implies --root.
I do not offhand see a huge issue if you come up with a patch that allows
users to additionally say:
$ git rebase upstream..topic
$ git rebase --onto there upstream..topic
what they express with
$ git rebase upstream topic
$ git rebase --onto there upstream topic
today.
However, "git rebase ..topic" to mean "everything down to root from topic"
is not OK; lack of one side in dotted range defaults to HEAD everywhere
else and such a change will introduce a huge discrepancy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-17 20:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17 16:44 Suggestion: rebase [--onto <newbase>] [<upstream>][..[<branch>]] Hallvard Breien Furuseth
2012-01-17 20:17 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).