Determining if two commits are on a separate branch

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

 



We are making extensive use of submodules at work and we have created
a number of extra scripts to simplify our usage.  For example, there
is git-rstatus, which recursively reports status of all submodules.

I am working on another script to check whether or not a change to any
submodules jump branches.  If we have commits like this:

A--B--C
   \--D

I don't care if a submodule moves from A to C or B to C, but I do care
if a commit of the super-project would cause a jump from D to C or
revert from C to B, effectively dropping previously committed code on
the floor.

So, is there a "correct" or "best" way to determine if one commit's
SHA follows directly from another's SHA in the commit history?
--
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