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

Re: [PATCH v14 8/8] bisect: change bisect function to update BISECT_HEAD, rather than HEAD.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Aug 3, 2011, 04:43 UTC
Message-ID
<201108030643.09014.chriscool@tuxfamily.org>
In-Reply-To
<1312323362-20096-9-git-send-email-jon.seymour@gmail.com>
I think a better title for this patch would be something like:
bisect: update BISECT_HEAD, rather than HEAD, when using --no-checkout

But anyway in my opinion the patch series would be better if this patch was squashed into the previous patches.

On Wednesday 03 August 2011 00:16:02 Jon Seymour wrote:
> This function modifies git-bisect so that the --no-checkout option
> uses BISECT_HEAD rather than HEAD to record the current bisection
> head.
s/This function/This patch/
 
> The intent is to reduce the confusion that uses of --no-checkout
s/uses/users/
Show 27 quoted lines
> may experience when using the --no-checkout option since the bisection
> process will no longer introduce spurious differences between the
> HEAD reference and the working tree and index.
> 
> Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
> ---
>  Documentation/git-bisect.txt |    8 ++++----
>  bisect.c                     |    2 +-
>  builtin/bisect--helper.c     |    2 +-
>  git-bisect.sh                |   17 +++++++++++++----
>  t/t6030-bisect-porcelain.sh  |   30 +++++++++++++++---------------
>  5 files changed, 34 insertions(+), 25 deletions(-)
> 
> diff --git a/Documentation/git-bisect.txt b/Documentation/git-bisect.txt
> index 2014894..a9b217b 100644
> --- a/Documentation/git-bisect.txt
> +++ b/Documentation/git-bisect.txt
> @@ -267,9 +267,9 @@ OPTIONS
>  -------
>  --no-checkout::
>  +
> -This option is used to specify that 'git bisect' should not modify the
> working -tree or index on each iteration of the bisection process but
> should -update HEAD instead.
> +This option is used to specify that 'git bisect' should not checkout the
> +new working tree at each iteration of the bisection process but should
> +instead update BISECT_HEAD.
I would say something like:

Do not checkout the new working tree at each iteration of the bisection process. Instead just update a special reference named 'BISECT_HEAD' to make it point to the commit that should be tested.

>  +
>  This option is useful in circumstances in which checkout is either not
>  possible (because of a damaged respository) or is otherwise not required.

Thanks, Christian.

Previous: Jon Seymour
Message 20 of 20 in “bisect: Add support for --no-checkout option”
  1. 0/8 bisect: Add support for --no-checkout optionJon Seymour, Aug 2, 2011
  2. 1/8 bisect: move argument parsing before state modification.Jon Seymour, Aug 2, 2011
  3. 2/8 bisect: use && to connect statements that are deferred with eval.Jon Seymour, Aug 2, 2011
  4. 3/8 bisect: add tests to document expected behaviour in presence of broken trees.Jon Seymour, Aug 2, 2011
  5. 4/8 bisect: introduce support for --no-checkout option.Jon Seymour, Aug 2, 2011
  6. 5/8 bisect: introduce --no-checkout support into porcelain.Jon Seymour, Aug 2, 2011
  7. Junio C HamanoAug 2, 2011
  8. Junio C HamanoAug 2, 2011
  9. Christian CouderAug 3, 2011
  10. Jon SeymourAug 3, 2011
  11. Jon SeymourAug 3, 2011
  12. Junio C HamanoAug 3, 2011
  13. Jonathan NiederAug 3, 2011
  14. Jon SeymourAug 3, 2011
  15. Jonathan NiederAug 3, 2011
  16. Christian CouderAug 3, 2011
  17. 6/8 bisect: add tests for the --no-checkout option.Jon Seymour, Aug 2, 2011
  18. 7/8 bisect: add documentation for --no-checkout option.Jon Seymour, Aug 2, 2011
  19. 8/8 bisect: change bisect function to update BISECT_HEAD, rather than HEAD.Jon Seymour, Aug 2, 2011
  20. Christian CouderAug 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.