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

Re: [PATCH v15 5/7] bisect: introduce --no-checkout support into porcelain.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Aug 3, 2011, 19:33 UTC
Message-ID
<201108032133.19854.chriscool@tuxfamily.org>
In-Reply-To
<CAH3Anrrt-FPqWmDhv0ucQfGKmgVbGLFBE5Pf8ma1LWroydNWLQ@mail.gmail.com>
On Wednesday 03 August 2011 17:32:09 Jon Seymour wrote:
Show 11 quoted lines
> On Thu, Aug 4, 2011 at 1:03 AM, Jon Seymour <jon.seymour@gmail.com> wrote:
>         rm -f "$GIT_DIR/head-name" &&
> 
> > -
> > -       rm -f "$GIT_DIR/BISECT_START"
> > +       rm -f "$GIT_DIR/BISECT_START" &&
> > +       git update-ref -d BISECT_HEAD
> >  }
> 
> I'll reverse the order of the last two statements and restore the blank
> line...
Great!

It would be nice too if the "git update-ref" call that creates the ref in the first place was after the creation of the $GIT_DIR/BISECT_START file. This way we start by creating the $GIT_DIR/BISECT_START file and we finish by deleting it.

That is change this:
...
+       test "$mode" != "--no-checkout" ||
+       git update-ref --no-deref BISECT_HEAD "$start_head" &&
        echo "$start_head" >"$GIT_DIR/BISECT_START" &&
 
into something like this:
        echo "$start_head" >"$GIT_DIR/BISECT_START" &&
+	{
+		test "$mode" != "--no-checkout" ||
+       	git update-ref --no-deref BISECT_HEAD "$start_head"
+	} &&
...

Thanks, Christian.

Previous: Jon SeymourNext: Jon Seymour
Message 8 of 12 in “bisect: Add support for --no-checkout option”
  1. 0/7 bisect: Add support for --no-checkout optionJon Seymour, Aug 3, 2011
  2. 1/7 bisect: move argument parsing before state modification.Jon Seymour, Aug 3, 2011
  3. 2/7 bisect: use && to connect statements that are deferred with eval.Jon Seymour, Aug 3, 2011
  4. 3/7 bisect: add tests to document expected behaviour in presence of broken trees.Jon Seymour, Aug 3, 2011
  5. 4/7 bisect: introduce support for --no-checkout option.Jon Seymour, Aug 3, 2011
  6. 5/7 bisect: introduce --no-checkout support into porcelain.Jon Seymour, Aug 3, 2011
  7. Jon SeymourAug 3, 2011
  8. Christian CouderAug 3, 2011
  9. 6/7 bisect: add tests for the --no-checkout option.Jon Seymour, Aug 3, 2011
  10. 7/7 bisect: add documentation for --no-checkout option.Jon Seymour, Aug 3, 2011
  11. Junio C HamanoAug 3, 2011
  12. Jon SeymourAug 3, 2011

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.