]> git.99rst.org Git - git.git/commit
bisect: report the found commit with "show"
authorPeter Krefting <redacted>
Sat, 13 Apr 2024 20:14:48 +0000 (21:14 +0100)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-By: Peter Krefting <redacted>
Signed-off-by: Junio C Hamano <redacted>
bisect.c
git clone https://git.99rst.org/PROJECT