How to find the first commit belonging to any branch

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

 



Hi all!

I have a question about git: I have one commit sha1, and I would like to know the nearest commit that appears in *any* other branch. The sha1 that I have does not belong to any branch.

The obvious thing to do would be to make a for loop and iterate over existing branches while calling git merge-base, but I'm wondering if there's a more clever method.

Regards
Kristian Amlie
--
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