]> git.ipfire.org Git - thirdparty/git.git/commit
bisect: no longer try to clean up left-over `.git/head-name` files
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 12 Jan 2023 15:19:14 +0000 (16:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 22:17:14 +0000 (14:17 -0800)
commitde54b5fec45b8e51e94fbe4efbf174f88b38af4e
tree0080dcc52d57550f100af94aab91464a67c4c3df
parent70d3dbfea9e9f59772d358796413725dac158599
bisect: no longer try to clean up left-over `.git/head-name` files

As per the code comment, the `.git/head-name` files were cleaned up for
backwards-compatibility: an old version of `git bisect` could have left
them behind.

Now, just how old would such a version be? As of 0f497e75f05 (Eliminate
confusing "won't bisect on seeked tree" failure, 2008-02-23), `git
bisect` does not write that file anymore. Which corresponds to Git
v1.5.4.4.

Even if the likelihood is non-nil that there might still be users out
there who use such an old version to start a bisection, but then decide
to continue bisecting with a current Git version, it is highly
improbable.

So let's remove that code, at long last.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
t/t6030-bisect-porcelain.sh