in_merge_bases(): use paint_down_to_common()
commit6440fdbab430bc10fdac37e86ae25607c93d3903
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Aug 2012 22:04:13 +0000 (30 15:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Aug 2012 00:25:57 +0000 (30 17:25 -0700)
treed4b9895656c446c0d8bc6bc4cba910f33056a6d9
parentda1f515641f4853a6b7c4710392796ed08efaa6f
in_merge_bases(): use paint_down_to_common()

With paint_down_to_common(), we can tell if "commit" is reachable
from "reference" by simply looking at its object flag, instead of
iterating over the merge bases.

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