commit.c: add in_merge_bases_many()
commit4c4b27e8cefdd88d76590c5fd786d1d43fb6f898
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Mar 2013 18:16:42 +0000 (4 10:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Mar 2013 21:39:46 +0000 (5 13:39 -0800)
treefe26261bf18395c38a6a4e9936caba717a97ea52
parente895cb5135d7fbff8037ce83302aff12ee83667c
commit.c: add in_merge_bases_many()

Similar to in_merge_bases(commit, other) that returns true when
commit is an ancestor (i.e. in the merge bases between the two) of
the other commit, in_merge_bases_many(commit, n_other, other[])
checks if commit is an ancestor of any of the other[] commits.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h