git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-bisect(1) next after finding the commit

From
ACAlejandro Colomar <alx@kernel.org>
Date
Oct 3, 2026, 05:59 UTC
Message-ID
<asCY8kLEV4OAG1BG@debian>
In-Reply-To
<20261002221154.GA833115@coredump.intra.peff.net>
Hi Jeff,
Show 13 quoted lines
> Date: 2026-10-02 18:11:54-0400
> From: Jeff King <peff@peff.net>
>
> On Fri, Oct 02, 2026 at 11:49:01PM +0200, Alejandro Colomar wrote:
> 
> > Is there a plumbing command for retrieving the bisected commit after
> > a git-bisect(1) session has successfully found it (and of course before
> > resetting the session)?
> > 
> > I expected `git bisect next` would bring me to it, and then I'd rev-list
> > HEAD -1, but it doesn't bring me to it.
> 
> I'm not 100% sure, but I think "git show bisect/bad" should work.
Thanks!  It works.
I guess the plumbing version of it would be
	git rev-list -1 bisect/bad
right?
Show 5 quoted lines
> As the bisection progresses, we advance a single refs/bisect/bad from
> the bottom of the range (the top is multiple refs/bisect/good-* refs).
> So at the end, it should point to the blamed commit.
> 
> -Peff

Have a lovely day! Alex

-- 
<https://www.alejandro-colomar.es>
Previous: Alejandro ColomarNext: Jeff King
Message 5 of 7 in “git-bisect(1) next after finding the commit”
  1. Alejandro ColomarOct 2, 2026
  2. Jeff KingOct 2, 2026
  3. Junio C HamanoOct 2, 2026
  4. Alejandro ColomarOct 3, 2026
  5. Alejandro ColomarOct 3, 2026
  6. Jeff KingOct 5, 2026
  7. Alejandro ColomarOct 5, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.