On Wed, Apr 24, 2013 at 11:41 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Ramkumar Ramachandra <artag...@gmail.com> writes:
>
>> What are your thoughts on inventing a new syntax A~B = $(git
>> merge-base A B) B which can be used by both range commands like log
>> and non-range commands like diff ?  (In other words, why shouldn't log
>> be able to do this?).
>
> The idea for a new syntax to denote a merge base may be an
> interesting one.

Sorry I wasn't clear.  A~B = $(git merge-base A B) B to diff and $(git
merge-base A B)..B to log.  I don't mind a hybrid command as long as
we document it properly.  rev-parse will parse it into B ^${git
merge-base A B) just fine.  Implementation: diff should swap the
arguments if the second argument is UNINTERESTING: it already does
this :)

Basically, I want to be able to do git log master~rebase.autostash
(without having to rebase).  I'm also considering making the first
argument optional (just git log ~rebase.autostash), and defaulting to
mean [nearest fork point].

What do you think?
--
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

Reply via email to