Jonas Gehring <jonas.gehring@xxxxxxxxxxxx> writes: > Thank you for this explanation, this really cleared up the intended > ... I wanted to use it for ancestry testing of two > commits,... > > After some additional digging, I realized that git-merge-base is the > right tool for my task. Either test "$(git merge-base A B)" = "$(git rev-parse A)" or test -z "$(git rev-list -1 A..B)" would be valid ways to see if A is an ancestor of B. -- 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