git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: Renaming "git rebase --onto"
@ 2015-03-30 20:49 Jonathon Mah
  2015-03-30 21:03 ` Jonathan Nieder
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jonathon Mah @ 2015-03-30 20:49 UTC (permalink / raw)
  To: git, Junio C Hamano

During a few years of discussing git operations with colleagues, I’ve found the “git rebase --onto” operation particularly ambiguous. The reason is that I always describe a rebase operation as “onto” something else (because of the English phrase “A is based on B”). For example: 

$ git rebase new-base  # “Rebase HEAD onto new-base (from merge-base of HEAD and new-base)"
$ git rebase new-base my-branch  # “Rebase my-branch onto new-base (from merge-base of my-branch and new-base)”

Personally, I understand “git-rebase --onto new-base old-base” as meaning “rebase from old-base to new-base”. Some prepositions that might make this clearer:

$ git rebase --from old-base new-base  # “Rebase HEAD onto new-base, from old-base"
$ git rebase --after old-base new-base  # “Rebase commits on HEAD after old-base HEAD onto new-base"
$ git rebase --excluding old-base new-base  # “Rebase HEAD onto new-base, excluding commit old-base (and its parents)"

In all cases this would change the order of the arguments compared to --onto, making it more consistent with the  no-option rebase.

What do others think? Is my view of “onto” common or unusual?



Jonathon Mah
me@JonathonMah.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-02 16:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 20:49 RFC: Renaming "git rebase --onto" Jonathon Mah
2015-03-30 21:03 ` Jonathan Nieder
2015-03-30 21:12 ` Junio C Hamano
2015-04-02 16:40   ` Michael J Gruber
2015-03-30 21:53 ` Max Kirillov

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).