merge-base: avoid unnecessary postprocessing.
authorJunio C Hamano <junkio@cox.net>
Fri, 11 Nov 2005 06:41:44 +0000 (22:41 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 11 Nov 2005 18:52:31 +0000 (10:52 -0800)
commit9e5f4a5539fe0e6ed31f26f34f1832a729facf4b
tree8964221663383b46653eda3e95e0e17fdce6d066
parented9a540b2b351ea305e26bb0d9028f21c976b67c
merge-base: avoid unnecessary postprocessing.

When we have only one merge-base candidates in the result list,
there is no point going back to mark the reachable commits
again.  And that is the most common case, so try not to waste
time on it.  Suggested by Linus.

Signed-off-by: Junio C Hamano <junkio@cox.net>
merge-base.c