bisect: display first bad commit without forking a new process
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 28 May 2009 21:21:16 +0000 (23:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 May 2009 05:39:59 +0000 (22:39 -0700)
commite22278c0a0784d4285f0e3173794caad4e542658
tree81574c477a379740d784e6fab3d10ddc7fb7f785
parent7a8e3895f68e9ae4e44e521c78fc98768c2a88ec
bisect: display first bad commit without forking a new process

Previously "git diff-tree --pretty COMMIT" was run using
"run_command_v_opt" to display information about the first bad
commit.

The goal of this patch is to avoid a "fork" and an "exec" call
when displaying that information.

To do that, we manually setup revision information as
"git diff-tree --pretty" would do it, and then use the
"log_tree_commit" function.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c