Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH/RFC] Implemented return value for rev-list --quiet

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:05

Jonas Gehring [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help