]> git.ipfire.org Git - thirdparty/git.git/commit - bisect.c
bisect: report the found commit with "show"
authorPeter Krefting <peter@softwolves.pp.se>
Sat, 13 Apr 2024 20:14:48 +0000 (21:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2024 18:29:09 +0000 (11:29 -0700)
commit8198993c817b6c3b42f91c7345469c113c6eeabc
treed140cbac24467d1245d772a15275b0b53556da10
parent8f7582d995682f785e80e344197cc715e6bc7d8e
bisect: report the found commit with "show"

When "git bisect" finds the first bad commit and shows it to the user,
it calls "git diff-tree" to do so, whose output is meant to be stable
and deliberately ignores end-user customizations.

As the output is supposed to be consumed by humans, replace this with
a call to "git show". This command honors configuration options (such
as "log.date" and "log.mailmap") and other UI improvements (renames
are detected).

Pass some hard-coded options to "git show" to make the output similar
to the one we are replacing, such as showing a patch summary only.

Reported-by: Michael Osipov <michael.osipov@innomotics.com>
Signed-off-By: Peter Krefting <peter@softwolves.pp.se>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c