From: Junio C Hamano <gitster@pobox.com>
To: "Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Harald Nordgren <haraldnordgren@gmail.com>
Subject: Re: [PATCH 3/3] bisect: add --auto-reset to leave when done
Date: Thu, 16 Jul 2026 10:22:20 -0700 [thread overview]
Message-ID: <xmqqse5ihmsz.fsf@gitster.g> (raw)
In-Reply-To: <a9194b1d00b260a7a7852eccec54c872618b5fdf.1784180159.git.gitgitgadget@gmail.com> (Harald Nordgren via GitGitGadget's message of "Thu, 16 Jul 2026 05:35:59 +0000")
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Harald Nordgren <haraldnordgren@gmail.com>
>
> When a bisection finished, "git bisect" reported the first bad commit
> but left the session active until "git bisect reset" was run by hand.
If this gives an observation of the behavior of the current code,
please write it in the present tense.
> Add an "--auto-reset" option, accepted by both "git bisect start" and
> "git bisect run", that resets as soon as the first bad commit is found,
> returning to the commit checked out before "git bisect start". The flag
> is persisted in a BISECT_AUTO_RESET state file and the restoring
> checkout is done quietly.
I often find myself, after the culprit is found, running 'git
reset --hard' or 'git bisect reset' to jump to the problematic
commit to investigate further. If '--auto-reset' leaves me
checked out on that bad commit, that would be a very welcome
change. If it only returns me to where I started before the
bisection, well, 'Meh'.
next prev parent reply other threads:[~2026-07-16 17:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 5:35 [PATCH 0/3] bisect: add --auto-reset to leave when done Harald Nordgren via GitGitGadget
2026-07-16 5:35 ` [PATCH 1/3] bisect: read run output from the open descriptor Harald Nordgren via GitGitGadget
2026-07-16 5:35 ` [PATCH 2/3] bisect: let bisect_reset() optionally check out quietly Harald Nordgren via GitGitGadget
2026-07-16 5:35 ` [PATCH 3/3] bisect: add --auto-reset to leave when done Harald Nordgren via GitGitGadget
2026-07-16 17:22 ` Junio C Hamano [this message]
2026-07-16 21:22 ` Harald Nordgren
2026-07-17 5:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqse5ihmsz.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=haraldnordgren@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox