Re: [Q] Determing if a commit is reachable from the HEAD ?

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

 



On Fri, Jan 20, 2012 at 7:03 PM, Brian Foster <brian.foster@xxxxxxxxxxxx> wrote:
>
> Hello,
>
>  Whilst I have found answers to my question on the Web,
>  only one seems to do exactly what I want ....
>
>                         x---Y---y---y---y  HEAD
>                        /
>  ...--o---o---C---o---S
>                        \
>                         n---n---N---*---*  other
>
>  In a script, how can I determine commit Y is reachable
>  from the current HEAD ?   And, much more importantly

I've been using 'git rev-list HEAD..Y'.  If it produces any output, Y
is not reachable from HEAD (there is something in Y that is not in
HEAD).
--
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]