pr-git-2335/HaraldNordgren/bisect-auto-reset-v3
tagged this
20 Jul 09:10
Add a --reset-when-found option to git bisect that resets the bisect session when culprit is found. 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 | 146 +++++++++++++++++++++++++++++----- t/t6030-bisect-porcelain.sh | 109 +++++++++++++++++++++++++ 4 files changed, 250 insertions(+), 21 deletions(-) base-commit: 41365c2a9ba347870b80881c0d67454edd22fd49 Submitted-As: https://lore.kernel.org/git/pull.2335.v3.git.git.1784538619.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