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

[PATCH 0/5] bisect: Add support for a --no-checkout option.

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jul 30, 2011, 08:28 UTC
Message-ID
<1312014511-7157-1-git-send-email-jon.seymour@gmail.com>
For some bisection tasks, checking out the commit at each stage of the bisection process is unecessary or undesirable.
This series adds support for a --no-checkout[=<ref>] option to git-bisect.
If specified, this option causes git-bisect to update the specified reference at each stage of the bisection process instead of checking out the commit at that point. If <ref> is not specified, HEAD is assumed.
One application of this option is to find, within a partially damaged repository, the earliest commit such that the graph of commits, trees and blobs reachable from the parents of that commit is completely reachable. 
For example:
    git bisect start HEAD <known-good-commit> [ <damaged-or-missing-commit> ... ]
    git bisect run eval '
    	git rev-list --objects HEAD > /dev/null && 
	git rev-list --objects HEAD | git pack-objects --stdout >/dev/null || 
	false'
Assuming this git bisect run completes successfully, bisect/bad will refer to the first commit whose parents have completely reachable graphs.
This series is a reworking of an earlier series "bisect: allow git bisect to be used with repos containing damaged trees." that incorporates Junio's suggestion to add a --no-checkout option instead of an --ignore-checkout-failure option.
Jon Seymour (5):
  bisect: add tests to document expected behaviour in presence of
    broken trees.
  bisect: introduce support for --no-checkout=<ref> option.
  bisect: introduce --no-checkout[=<ref>] support into porcelain.
  bisect: add tests for the --no-checkout option.
  bisect: add documentation for --no-checkout[=<ref>] option.
 Documentation/git-bisect.txt |   26 ++++++++-
 bisect.c                     |   26 +++++++-
 bisect.h                     |    2 +-
 builtin/bisect--helper.c     |    7 ++-
 git-bisect.sh                |   45 ++++++++++++--
 t/t6030-bisect-porcelain.sh  |  132 ++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 223 insertions(+), 15 deletions(-)
-- 
1.7.6.387.g991c2
Next: Jon Seymour
Message 1 of 26 in “bisect: Add support for a --no-checkout option.”
  1. 0/5 bisect: Add support for a --no-checkout option.Jon Seymour, Jul 30, 2011
  2. 1/5 bisect: add tests to document expected behaviour in presence of broken trees.Jon Seymour, Jul 30, 2011
  3. 2/5 bisect: introduce support for --no-checkout=<ref> option.Jon Seymour, Jul 30, 2011
  4. Christian CouderJul 30, 2011
  5. 3/5 bisect: introduce --no-checkout[=<ref>] support into porcelain.Jon Seymour, Jul 30, 2011
  6. Christian CouderJul 30, 2011
  7. Jon SeymourJul 30, 2011
  8. Christian CouderJul 31, 2011
  9. Junio C HamanoAug 1, 2011
  10. Christian CouderAug 1, 2011
  11. 4/5 bisect: add tests for the --no-checkout option.Jon Seymour, Jul 30, 2011
  12. 5/5 bisect: add documentation for --no-checkout[=<ref>] option.Jon Seymour, Jul 30, 2011
  13. Jon SeymourJul 30, 2011
  14. Christian CouderJul 30, 2011
  15. Jon SeymourJul 30, 2011
  16. Christian CouderJul 30, 2011
  17. Junio C HamanoAug 1, 2011
  18. Christian CouderAug 1, 2011
  19. Jon SeymourAug 1, 2011
  20. Junio C HamanoAug 1, 2011
  21. Jon SeymourAug 1, 2011
  22. Junio C HamanoAug 1, 2011
  23. Jon SeymourAug 2, 2011
  24. Jon SeymourAug 2, 2011
  25. Junio C HamanoAug 2, 2011
  26. Jon SeymourAug 2, 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.