Re: Rebase semantic and cherry-pick
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Mar 30, 2006, 02:54 UTC
- Message-ID
- <Pine.LNX.4.64.0603291852140.27203@g5.osdl.org>
- In-Reply-To
- <7vwtec7j37.fsf@assigned-by-dhcp.cox.net>
On Wed, 29 Mar 2006, Junio C Hamano wrote:
Show 11 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes: > > > Perhaps if possible also have > > > > git cherry-pick --whole-branch branchname > > > > meaning > > > > git cherry-pick branchname:begining..branchname:HEAD > > There is no branchname:beginning in git.
Well, in this case you don't need it. You just do
git cherry-pick HEAD..branch
and it just magically does the right thing.
For consistency reasons, we should probably allow that to be written as just "..branch", the same way we can write "branch.." to mean "everything in HEAD but not in "branch".
Linus