Re: Using "-" for "previous branch" failing with rebase
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 17, 2014, 06:37 UTC
- Message-ID
- <7vppll2uvp.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20140315152924.26c3294e@bigbox.christie.dr>
Tim Chase <git@tim.thechases.com> writes:
> Is this just an interface inconsistency or is there a some technical > reason this doesn't work (or, has it been addressed/fixed, and just > not pulled into Debian Stable's 1.7.10.4 version of git)?
It is merely that nobody thought "rebase" would benefit from such a short-hand, I think.
Teach more commands that operate on branch names about "-"
shorthand for "the branch we were previously on", like we did
for "git merge -" sometime after we introduced "git checkout -"has been sitting in my "leftover bits" list at
http://git-blame.blogspot.com/p/leftover-bits.html
for quite some time. Hint, hint...