Re: potential improvement to 'git log' with a range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> Jay Soffian <jaysoffian@xxxxxxxxx> writes:
>
>> Speaking of which, I'd love a switch to "git show $merge_commit" which
>> does "git log $merge_commit^..$merge_commit^2" but I've been too lazy
>> to write it. 9/10 times that I use .., it's in this context. :-)
>
> Doesn't "git show -p --first-parent $merge" work for you?

Heh, this is a totally different operation to compare the tree before and
after the merge.

What "log merge^..merge^2" does is to list the commits we merged from the
point of view of the person who did the merge.  I haven't found the need
for a short-cut for that myself, but in any case, I think such a feature
belongs less to "show" (which is about "inspecting a single object") than
to "log" (which is about "give me the sequence").

You may want to look into merge.log variable if you find yourself wanting
to do that often with your history, though.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]