Re: Best method of detecting if list of commit refs is a parent

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

 



On Aug 18, 2008, at 12:41 AM, Junio C Hamano wrote:

If you have bunch of commits A B C D E F and if you would want to know
which one of them is reachable from X, you could of course run merge- base
once for each of A..F.  Another way to do this would be to run:

	git rev-list A B C D E F ^X

and look at the output. The ones among A..F that appear in the output are not reachable from X. The ones that are reachable from X do not appear in
the output.

This is because "rev-list" outputs everything reachable from the given
commits without ^ prefix, excluding the ones that are reacahble from the
ones prefixed with ^.
Perfect! Now... is there built-in way to invert this to list those that 'are' reachable..... Or would the inverse really end up calculating the difference between input list and output list?

--
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]

  Powered by Linux