Re: [PATCH/RFC] Implemented return value for rev-list --quiet
Jonas Gehring <jonas.gehring@boolsoft.org> writes:
Show 6 quoted lines
> 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.