test-reach: test is_descendant_of
commit6255232ec13b038a48326135f2e479797cd0d1f9
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 20 Jul 2018 16:33:18 +0000 (20 16:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 22:38:55 +0000 (20 15:38 -0700)
tree4c0c45a54e5480b0d15aef52395d11ef91206e9e
parent5cd52de3264a0a93fad8a0a770445657438bf660
test-reach: test is_descendant_of

The is_descendant_of method takes a single commit as its first parameter
and a list of commits as its second parameter. Extend the input of the
'test-tool reach' command to take multiple lines of the form
"X:<committish>" to construct a list of commits. Pass these to
is_descendant_of and create tests that check each result.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-reach.c
t/t6600-test-reach.sh