Re: [PATCH RFC] rebase: add --revisions flag

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Krefting
Date: Thursday, December 10, 2009 - 1:43 am

Björn Steinbrink:


I know, this is the one "feature" of CVS that I sometimes miss in Git, that 
I cannot "merge" just parts of a history, and have that recorded in the 
history tree. I know it's wrong, I know I could do it better, but sometimes 
it's the shortcut that would make life easier for me. :-)

But the reason I mentioned it was because of the discussion on whether the 
"reverse rebase" should be an option to "cherry-pick" or not, and I 
mentioned that it could just as well be "merge" since it can be used to 
throw away history as well.


And tell "merge" to tell me that if I try, so that if I try

   $ git merge A..B

I would get a message saying something like

   Cannot merge a range of commits. Try "git cherry-pick A..B" or
   "git rebase --reverse A..B".

And perhaps we could also in the same way retire --squash?

   $ git merge --squash B
   The "--squash" option is obsolete. Please use "git cherry-pick
   --squash B".

(with a transition period where it would just call the other). Or whatever 
the options to simulate the old behaviour would be. This would make it 
clearer that "merge" preserves history while "cherry-pick" and "rebase" do 
not.

-- 
\\// Peter - http://www.softwolves.pp.se/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 7:47 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Tue Dec 8, 9:08 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 9:11 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 9:14 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Tue Dec 8, 9:37 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Tue Dec 8, 9:41 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 9:44 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 9:49 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Tue Dec 8, 12:11 pm)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Tue Dec 8, 12:13 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Tue Dec 8, 1:00 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Junio C Hamano, (Tue Dec 8, 1:22 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Sverre Rabbelier, (Tue Dec 8, 1:29 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Miles Bader, (Tue Dec 8, 9:51 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Christian Couder, (Tue Dec 8, 10:30 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Christian Couder, (Tue Dec 8, 11:52 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Peter Krefting, (Wed Dec 9, 1:47 am)
Re: [PATCH RFC] rebase: add --revisions flag, Sverre Rabbelier, (Wed Dec 9, 2:08 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 2:37 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 3:38 am)
Re: [PATCH RFC] rebase: add --revisions flag, Peter Krefting, (Wed Dec 9, 3:52 am)
Re: [PATCH RFC] rebase: add --revisions flag, Matthieu Moy, (Wed Dec 9, 3:55 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 4:22 am)
Re: [PATCH RFC] rebase: add --revisions flag, Andreas Schwab, (Wed Dec 9, 4:48 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 5:06 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 5:07 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 6:06 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 6:19 am)
Re: [PATCH RFC] rebase: add --revisions flag, Peter Krefting, (Wed Dec 9, 6:20 am)
Re: [PATCH RFC] rebase: add --revisions flag, Matthieu Moy, (Wed Dec 9, 6:30 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 6:41 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 6:45 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Wed Dec 9, 7:01 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 7:02 am)
Re: [PATCH RFC] rebase: add --revisions flag, Michael S. Tsirkin, (Wed Dec 9, 7:12 am)
Re: [PATCH RFC] rebase: add --revisions flag, Junio C Hamano, (Wed Dec 9, 12:46 pm)
Re: [PATCH RFC] rebase: add --revisions flag, Junio C Hamano, (Wed Dec 9, 1:10 pm)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Thu Dec 10, 12:43 am)
Re: [PATCH RFC] rebase: add --revisions flag, Peter Krefting, (Thu Dec 10, 1:43 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Thu Dec 10, 4:08 am)
Re: [PATCH RFC] rebase: add --revisions flag, Junio C Hamano, (Thu Dec 10, 10:20 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?iso-8859-1?Q?Bj=F6 ..., (Fri Dec 11, 4:07 am)
Re: [PATCH RFC] rebase: add --revisions flag, =?utf-8?Q?David_K=C3 ..., (Sun Dec 13, 3:47 pm)