git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] bisect: Add support for a --no-checkout option.
@ 2011-07-30  8:28 Jon Seymour
  2011-07-30  8:28 ` [PATCH 1/5] bisect: add tests to document expected behaviour in presence of broken trees Jon Seymour
                   ` (6 more replies)
  0 siblings, 7 replies; 26+ messages in thread
From: Jon Seymour @ 2011-07-30  8:28 UTC (permalink / raw)
  To: git; +Cc: j6t, gitster, jnareb, Jon Seymour

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

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2011-08-02 21:29 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-30  8:28 [PATCH 0/5] bisect: Add support for a --no-checkout option Jon Seymour
2011-07-30  8:28 ` [PATCH 1/5] bisect: add tests to document expected behaviour in presence of broken trees Jon Seymour
2011-07-30  8:28 ` [PATCH 2/5] bisect: introduce support for --no-checkout=<ref> option Jon Seymour
2011-07-30 13:49   ` Christian Couder
2011-07-30  8:28 ` [PATCH 3/5] bisect: introduce --no-checkout[=<ref>] support into porcelain Jon Seymour
2011-07-30 14:34   ` Christian Couder
2011-07-30 17:00     ` Jon Seymour
2011-07-31  0:36       ` Christian Couder
2011-08-01  0:53         ` Junio C Hamano
2011-08-01  4:35           ` Christian Couder
2011-07-30  8:28 ` [PATCH 4/5] bisect: add tests for the --no-checkout option Jon Seymour
2011-07-30  8:28 ` [PATCH 5/5] bisect: add documentation for --no-checkout[=<ref>] option Jon Seymour
2011-07-30  8:30 ` [PATCH 0/5] bisect: Add support for a --no-checkout option Jon Seymour
2011-07-30 13:48 ` Christian Couder
2011-07-30 13:58   ` Jon Seymour
2011-07-30 14:19     ` Christian Couder
2011-08-01  1:00       ` Junio C Hamano
2011-08-01  4:42         ` Christian Couder
2011-08-01  5:27         ` Jon Seymour
2011-08-01 17:33           ` Junio C Hamano
2011-08-01 22:19             ` Jon Seymour
2011-08-01 23:33               ` Junio C Hamano
2011-08-02  1:15                 ` Jon Seymour
2011-08-02  1:41                   ` Jon Seymour
2011-08-02 17:53                     ` Junio C Hamano
2011-08-02 21:27                       ` Jon Seymour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).