pr-git-2335/HaraldNordgren/bisect-auto-reset-v4
tagged this
01 Aug 09:44
Add a --reset-when-found option to git bisect that resets the bisect session when culprit is found. Changes in v4: * Simplify translation calls. * Avoid git subshell calls in tests, that can bury errors. Changes in v3: * Rename --auto-reset to --reset-when-found, including internal names. * Defer git bisect run cleanup until captured output is printed and BISECT_RUN is closed. Drop the open-descriptor preparatory change, retaining the existing filename-based output handling. Changes in v2: * Add option --auto-reset[=<where>] with option to go to final commit as well as original. * Refactored tests. Harald Nordgren (2): bisect: let bisect_reset() optionally check out quietly bisect: add --reset-when-found to leave when done Documentation/git-bisect.adoc | 14 +++- bisect.c | 2 + builtin/bisect.c | 148 +++++++++++++++++++++++++++++----- t/t6030-bisect-porcelain.sh | 121 +++++++++++++++++++++++++++ 4 files changed, 264 insertions(+), 21 deletions(-) base-commit: a97fcc37c2bc6340a8d7ce78dedf227aac4e9aa7 Submitted-As: https://lore.kernel.org/git/pull.2335.v4.git.git.1785577445.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2335.git.git.1784180159.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2335.v2.git.git.1784312854.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2335.v3.git.git.1784538619.gitgitgadget@gmail.com