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

Re: [PATCH v11 4/7] bisect: introduce support for --no-checkout option.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 1, 2011, 18:13 UTC
Message-ID
<7vmxfthuf8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1312199777-10144-5-git-send-email-jon.seymour@gmail.com>
Jon Seymour <jon.seymour@gmail.com> writes:
Show 17 quoted lines
> diff --git a/bisect.c b/bisect.c
> index dd7e8ed..534da2c 100644
> --- a/bisect.c
> +++ b/bisect.c
> ...
> -	res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
> -	if (res)
> -		exit(res);
> +	if (no_checkout) {
> +	  argv_update_ref[3] = bisect_rev_hex;
> +	  if (run_command_v_opt(argv_update_ref, RUN_GIT_CMD))
> +	    die("update-ref --no-deref HEAD failed on %s", bisect_rev_hex);
> +	} else {
> +	  res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
> +	  if (res)
> +	    exit(res);
> +	}
Please. No indentations with just a few SPs.
Previous: Jon SeymourNext: Jon Seymour
Message 6 of 10 in “bisect: Add support for --no-checkout option.”
  1. 0/7 bisect: Add support for --no-checkout option.Jon Seymour, Aug 1, 2011
  2. 1/7 bisect: move argument parsing before state modification.Jon Seymour, Aug 1, 2011
  3. 2/7 bisect: use && to connect statements that are deferred with eval.Jon Seymour, Aug 1, 2011
  4. 3/7 bisect: add tests to document expected behaviour in presence of broken trees.Jon Seymour, Aug 1, 2011
  5. 4/7 bisect: introduce support for --no-checkout option.Jon Seymour, Aug 1, 2011
  6. Junio C HamanoAug 1, 2011
  7. bisect: introduce support for --no-checkout option.Jon Seymour, Aug 1, 2011
  8. 5/7 bisect: introduce --no-checkout support into porcelain.Jon Seymour, Aug 1, 2011
  9. 6/7 bisect: add tests for the --no-checkout option.Jon Seymour, Aug 1, 2011
  10. 7/7 bisect: add documentation for --no-checkout option.Jon Seymour, Aug 1, 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.