On 2014-03-16 23:37, Junio C Hamano wrote:
> Tim Chase <g...@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
> > 18.104.22.168 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
> for quite some time. Hint, hint...
Not sure if the "Hint, hint" was intended for me, as I'm not exactly
a git hacker. I did find another place where I reached for it
instinctively (now that I use it regularly with checkout/merge):
git checkout some_branch
git commit -m "..."
git checkout other_branch
# hmm...what's different between these branches?
git diff -
which I would have expected to act something like
git diff some_branch..other_branch
Just for the archives.
(or possibly the reverse)
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html