git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
bf66ee210b2cf96ba88719fc54ca3cf3a7a86be8 blob 4108 bytes (raw)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
 
#!/bin/sh

USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|replay|log|run]'
LONG_USAGE='git bisect help
	print this long help message.
git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
		 [--no-checkout] [<bad> [<good>...]] [--] [<pathspec>...]
	reset bisect state and start bisection.
git bisect (bad|new) [<rev>]
	mark <rev> a known-bad revision/
		a revision after change in a given property.
git bisect (good|old) [<rev>...]
	mark <rev>... known-good revisions/
		revisions before change in a given property.
git bisect terms [--term-good | --term-bad]
	show the terms used for old and new commits (default: bad, good)
git bisect skip [(<rev>|<range>)...]
	mark <rev>... untestable revisions.
git bisect next
	find next bisection to test and check it out.
git bisect reset [<commit>]
	finish bisection search and go back to commit.
git bisect visualize
	show bisect status in gitk.
git bisect replay <logfile>
	replay bisection log.
git bisect log
	show bisect log.
git bisect run <cmd>...
	use <cmd>... to automatically bisect.

Please use "git help bisect" to get the full man page.'

OPTIONS_SPEC=
. git-sh-setup

_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
TERM_BAD=bad
TERM_GOOD=good

bisect_skip() {
	all=''
	for arg in "$@"
	do
		case "$arg" in
		*..*)
			revs=$(git rev-list "$arg") || die "$(eval_gettext "Bad rev input: \$arg")" ;;
		*)
			revs=$(git rev-parse --sq-quote "$arg") ;;
		esac
		all="$all $revs"
	done
	eval git bisect--helper --bisect-state 'skip' $all
}

bisect_visualize() {
	git bisect--helper --bisect-next-check $TERM_GOOD $TERM_BAD fail || exit

	if test $# = 0
	then
		if test -n "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" &&
			type gitk >/dev/null 2>&1
		then
			set gitk
		else
			set git log
		fi
	else
		case "$1" in
		git*|tig) ;;
		-*)	set git log "$@" ;;
		*)	set git "$@" ;;
		esac
	fi

	eval '"$@"' --bisect -- $(cat "$GIT_DIR/BISECT_NAMES")
}

bisect_run () {
	git bisect--helper --bisect-next-check $TERM_GOOD $TERM_BAD fail || exit

	while true
	do
		command="$@"
		eval_gettextln "running \$command"
		"$@"
		res=$?

		# Check for really bad run error.
		if [ $res -lt 0 -o $res -ge 128 ]
		then
			eval_gettextln "bisect run failed:
exit code \$res from '\$command' is < 0 or >= 128" >&2
			exit $res
		fi

		# Find current state depending on run success or failure.
		# A special exit code of 125 means cannot test.
		if [ $res -eq 125 ]
		then
			state='skip'
		elif [ $res -gt 0 ]
		then
			state="$TERM_BAD"
		else
			state="$TERM_GOOD"
		fi

		# We have to use a subshell because "--bisect-state" can exit.
		( git bisect--helper --bisect-state $state >"$GIT_DIR/BISECT_RUN" )
		res=$?

		cat "$GIT_DIR/BISECT_RUN"

		if sane_grep "first $TERM_BAD commit could be any of" "$GIT_DIR/BISECT_RUN" \
			>/dev/null
		then
			gettextln "bisect run cannot continue any more" >&2
			exit $res
		fi

		if [ $res -ne 0 ]
		then
			eval_gettextln "bisect run failed:
'git bisect--helper --bisect-state \$state' exited with error code \$res" >&2
			exit $res
		fi

		if sane_grep "is the first $TERM_BAD commit" "$GIT_DIR/BISECT_RUN" >/dev/null
		then
			gettextln "bisect run success"
			exit 0;
		fi

	done
}

get_terms () {
	if test -s "$GIT_DIR/BISECT_TERMS"
	then
		{
		read TERM_BAD
		read TERM_GOOD
		} <"$GIT_DIR/BISECT_TERMS"
	fi
}

case "$#" in
0)
	usage ;;
*)
	cmd="$1"
	get_terms
	shift
	case "$cmd" in
	help)
		git bisect -h ;;
	start)
		git bisect--helper --bisect-start "$@" ;;
	bad|good|new|old|"$TERM_BAD"|"$TERM_GOOD")
		git bisect--helper --bisect-state "$cmd" "$@" ;;
	skip)
		bisect_skip "$@" ;;
	next)
		# Not sure we want "next" at the UI level anymore.
		get_terms
		git bisect--helper --bisect-next "$@" || exit ;;
	visualize|view)
		bisect_visualize "$@" ;;
	reset)
		git bisect--helper --bisect-reset "$@" ;;
	replay)
		git bisect--helper --bisect-replay "$@" ;;
	log)
		git bisect--helper --bisect-log ;;
	run)
		bisect_run "$@" ;;
	terms)
		git bisect--helper --bisect-terms "$@" || exit;;
	*)
		usage ;;
	esac
esac
debug log:

solving bf66ee2 ...
found bf66ee2 in https://public-inbox.org/git/01020156b73fe6d7-6cd42223-f46c-4e4c-a15f-516fc13a4521-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020157c38b1b29-65f79716-42c6-4327-acda-8c8d0fe05471-000000@eu-west-1.amazonses.com/
found a47e3b5 in https://public-inbox.org/git/01020157c38b1b18-b81203b0-122f-4244-bfb2-9fac8ae71767-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6d5-6a363195-eb91-48a0-9a3c-3159fba6d327-000000@eu-west-1.amazonses.com/
found a9eebbb in https://public-inbox.org/git/01020157c38b1b54-0ac61448-98b1-4c7d-bfdd-47af95f52153-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6d0-ae35967b-556e-4c72-9ae7-363aa1921e90-000000@eu-west-1.amazonses.com/
found cd56551 in https://public-inbox.org/git/01020157c38b1b1a-067117ef-cd0d-469b-ba80-ea1a1169f694-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6d7-8b80c663-7c77-469e-811f-40200ec6dbb1-000000@eu-west-1.amazonses.com/
found d574c44 in https://public-inbox.org/git/01020156b73fe6ce-3b204354-849b-40fd-93ff-2ebcf77df91c-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020157c38b1af0-5d688c2e-868d-4d8c-a8fd-9a675f7f01da-000000@eu-west-1.amazonses.com/
found f0896b3 in https://public-inbox.org/git/01020157c38b1ad3-ea75ed97-2514-427e-8e57-9f10efd4e6e9-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6b9-5e500c96-9bc3-4a6b-beb9-b5988dc9ee85-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145d3-b12a4da0-9df9-4d16-92aa-eea8c52dbda3-000000@eu-west-1.amazonses.com/
found d6c8b5a in https://public-inbox.org/git/01020157c38b1ad5-0f90c88e-2077-4155-94e9-7d71dbbac38f-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6b3-3ccd9de5-604d-4e7d-919d-a3adae869ebf-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145cf-2a5f9f2d-d863-4f6d-8903-7d1b339b8fd3-000000@eu-west-1.amazonses.com/
found fe6c9d0 in https://public-inbox.org/git/01020156b73fe6ae-27df9d50-59b2-4ee2-8c5b-89e7e70a2dd0-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145c7-823bdd3d-88da-4e87-9170-9d95b48607dd-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020157c38b1adb-ab4c90ed-d084-40b5-a037-f62c76e52ec4-000000@eu-west-1.amazonses.com/
found bdf2227 in https://public-inbox.org/git/01020157c38b1aca-0c26fb8c-404f-4f57-afe7-7ebb552a1002-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6ab-552239e5-6d82-4bef-80b6-06066bdd79c3-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145c3-24771223-aca5-4838-b60f-a73a31d0eaf7-000000@eu-west-1.amazonses.com/
found dfdec33 in https://public-inbox.org/git/01020157c38b1ad1-f3a59b1f-9cdb-4d91-b28e-2501facdcb45-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe6a7-2e9df745-e3f4-4830-a1af-4acae7964c11-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145b7-f7c8dc41-d388-4f3b-914a-1b2896e96671-000000@eu-west-1.amazonses.com/
found c3e43248 in https://public-inbox.org/git/01020157c38b1ab6-bda8420e-9a63-47d7-9b99-47465b6333d9-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe69f-6b734e3c-806c-431d-aa52-c96b3783f248-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145b7-a23cda02-9f19-4948-ae45-3ed899906044-000000@eu-west-1.amazonses.com/
found 442397b in https://public-inbox.org/git/01020156b73fe69a-13136cfb-4daa-4f5d-9b56-537adf2c6942-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020157c38b1aa0-0c1fed14-e058-4621-9958-973113d7e45f-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145b6-e0aee940-119b-42b1-b0c4-80263426cd6e-000000@eu-west-1.amazonses.com/
found f1202df in https://public-inbox.org/git/01020157c38b1a82-dc1c5b57-3e93-4996-87e7-4a1d83cb5817-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156b73fe66f-bfad6316-39d4-4577-8f75-d1b4b2031263-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a48145a8-d2a03d0a-e6e8-42ae-9960-2effc5547b7c-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/5ca7a863-5b85-23b1-4432-cf74dcc7c4e0@ramsayjones.plus.com/
found 9ef6cb8 in https://public-inbox.org/git/01020156b73fe658-9c0fcb5f-3dc0-43e4-a1ac-2ef9de7b0ef6-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020157c38b1a84-d3b8c27a-aeb6-4cfd-8b9f-1db291331b2f-000000@eu-west-1.amazonses.com/ ||
	https://public-inbox.org/git/01020156a4814596-b3b6ff6c-ab4a-492e-baa0-801dadf09a4e-000000@eu-west-1.amazonses.com/
found a727c59 in git.git.git
preparing index
index prepared:
100755 a727c59250f13b08ccbc559f50b0c1c60a3dc2ba	git-bisect.sh

applying [1/38] https://public-inbox.org/git/01020156b73fe658-9c0fcb5f-3dc0-43e4-a1ac-2ef9de7b0ef6-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index a727c59..9ef6cb8 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020157c38b1a84-d3b8c27a-aeb6-4cfd-8b9f-1db291331b2f-000000@eu-west-1.amazonses.com/ for 9ef6cb8
skipping https://public-inbox.org/git/01020156a4814596-b3b6ff6c-ab4a-492e-baa0-801dadf09a4e-000000@eu-west-1.amazonses.com/ for 9ef6cb8
index at:
100755 9ef6cb84b4fe4aa6eb771b62023fba34c0f0db63	git-bisect.sh

applying [2/38] https://public-inbox.org/git/01020157c38b1a82-dc1c5b57-3e93-4996-87e7-4a1d83cb5817-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index 9ef6cb8..f1202df 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe66f-bfad6316-39d4-4577-8f75-d1b4b2031263-000000@eu-west-1.amazonses.com/ for f1202df
skipping https://public-inbox.org/git/01020156a48145a8-d2a03d0a-e6e8-42ae-9960-2effc5547b7c-000000@eu-west-1.amazonses.com/ for f1202df
skipping https://public-inbox.org/git/5ca7a863-5b85-23b1-4432-cf74dcc7c4e0@ramsayjones.plus.com/ for f1202df
index at:
100755 f1202dfb4ce42932d858bf82fdaf36631243464f	git-bisect.sh

applying [3/38] https://public-inbox.org/git/01020156b73fe69a-13136cfb-4daa-4f5d-9b56-537adf2c6942-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index f1202df..442397b 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020157c38b1aa0-0c1fed14-e058-4621-9958-973113d7e45f-000000@eu-west-1.amazonses.com/ for 442397b
skipping https://public-inbox.org/git/01020156a48145b6-e0aee940-119b-42b1-b0c4-80263426cd6e-000000@eu-west-1.amazonses.com/ for 442397b
index at:
100755 442397b9329c9e01bfc941239967dd1e356a8fe2	git-bisect.sh

applying [4/38] https://public-inbox.org/git/01020157c38b1ab6-bda8420e-9a63-47d7-9b99-47465b6333d9-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index 442397b..c3e43248 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe69f-6b734e3c-806c-431d-aa52-c96b3783f248-000000@eu-west-1.amazonses.com/ for c3e43248
skipping https://public-inbox.org/git/01020156a48145b7-a23cda02-9f19-4948-ae45-3ed899906044-000000@eu-west-1.amazonses.com/ for c3e43248
index at:
100755 c3e43248347e7a1eae140d21fbcad13bd6606689	git-bisect.sh

applying [5/38] https://public-inbox.org/git/01020157c38b1ad1-f3a59b1f-9cdb-4d91-b28e-2501facdcb45-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index c3e43248..dfdec33 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6a7-2e9df745-e3f4-4830-a1af-4acae7964c11-000000@eu-west-1.amazonses.com/ for dfdec33
skipping https://public-inbox.org/git/01020156a48145b7-f7c8dc41-d388-4f3b-914a-1b2896e96671-000000@eu-west-1.amazonses.com/ for dfdec33
index at:
100755 dfdec33757b3ef49b02daddfb3e48184dd32ce62	git-bisect.sh

applying [6/38] https://public-inbox.org/git/01020157c38b1aca-0c26fb8c-404f-4f57-afe7-7ebb552a1002-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index dfdec33..bdf2227 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6ab-552239e5-6d82-4bef-80b6-06066bdd79c3-000000@eu-west-1.amazonses.com/ for bdf2227
skipping https://public-inbox.org/git/01020156a48145c3-24771223-aca5-4838-b60f-a73a31d0eaf7-000000@eu-west-1.amazonses.com/ for bdf2227
index at:
100755 bdf2227f218a7809d6cc1cf9e04aedd24461901b	git-bisect.sh

applying [7/38] https://public-inbox.org/git/01020156b73fe6ae-27df9d50-59b2-4ee2-8c5b-89e7e70a2dd0-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index bdf2227..fe6c9d0 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156a48145c7-823bdd3d-88da-4e87-9170-9d95b48607dd-000000@eu-west-1.amazonses.com/ for fe6c9d0
skipping https://public-inbox.org/git/01020157c38b1adb-ab4c90ed-d084-40b5-a037-f62c76e52ec4-000000@eu-west-1.amazonses.com/ for fe6c9d0
index at:
100755 fe6c9d0806aabb7a976630507eceac03cee2e13a	git-bisect.sh

applying [8/38] https://public-inbox.org/git/01020157c38b1ad5-0f90c88e-2077-4155-94e9-7d71dbbac38f-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index fe6c9d0..d6c8b5a 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6b3-3ccd9de5-604d-4e7d-919d-a3adae869ebf-000000@eu-west-1.amazonses.com/ for d6c8b5a
skipping https://public-inbox.org/git/01020156a48145cf-2a5f9f2d-d863-4f6d-8903-7d1b339b8fd3-000000@eu-west-1.amazonses.com/ for d6c8b5a
index at:
100755 d6c8b5af4795bb2c233df8d883d989ce2c118b7d	git-bisect.sh

applying [9/38] https://public-inbox.org/git/01020157c38b1ad3-ea75ed97-2514-427e-8e57-9f10efd4e6e9-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index d6c8b5a..f0896b3 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6b9-5e500c96-9bc3-4a6b-beb9-b5988dc9ee85-000000@eu-west-1.amazonses.com/ for f0896b3
skipping https://public-inbox.org/git/01020156a48145d3-b12a4da0-9df9-4d16-92aa-eea8c52dbda3-000000@eu-west-1.amazonses.com/ for f0896b3
index at:
100755 f0896b32a8e7b5f19110df3b02e5728b4531792f	git-bisect.sh

applying [10/38] https://public-inbox.org/git/01020156b73fe6ce-3b204354-849b-40fd-93ff-2ebcf77df91c-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index f0896b3..d574c44 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020157c38b1af0-5d688c2e-868d-4d8c-a8fd-9a675f7f01da-000000@eu-west-1.amazonses.com/ for d574c44
index at:
100755 d574c448e0fd446a34e2f28789cb54209d4a8fbd	git-bisect.sh

applying [11/38] https://public-inbox.org/git/01020157c38b1b1a-067117ef-cd0d-469b-ba80-ea1a1169f694-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index d574c44..cd56551 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6d7-8b80c663-7c77-469e-811f-40200ec6dbb1-000000@eu-west-1.amazonses.com/ for cd56551
index at:
100755 cd56551c78984c25d39e9d9868dad24ea7c583c3	git-bisect.sh

applying [12/38] https://public-inbox.org/git/01020157c38b1b54-0ac61448-98b1-4c7d-bfdd-47af95f52153-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index cd56551..a9eebbb 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6d0-ae35967b-556e-4c72-9ae7-363aa1921e90-000000@eu-west-1.amazonses.com/ for a9eebbb
index at:
100755 a9eebbb089ff945e5232128a29942bd4f5381243	git-bisect.sh

applying [13/38] https://public-inbox.org/git/01020157c38b1b18-b81203b0-122f-4244-bfb2-9fac8ae71767-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index a9eebbb..a47e3b5 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020156b73fe6d5-6a363195-eb91-48a0-9a3c-3159fba6d327-000000@eu-west-1.amazonses.com/ for a47e3b5
index at:
100755 a47e3b5b8a2d4022d609071d214b2c6ca94c041b	git-bisect.sh

applying [14/38] https://public-inbox.org/git/01020156b73fe6d7-6cd42223-f46c-4e4c-a15f-516fc13a4521-000000@eu-west-1.amazonses.com/
diff --git a/git-bisect.sh b/git-bisect.sh
index a47e3b5..bf66ee2 100755

Checking patch git-bisect.sh...
Applied patch git-bisect.sh cleanly.

skipping https://public-inbox.org/git/01020157c38b1b29-65f79716-42c6-4327-acda-8c8d0fe05471-000000@eu-west-1.amazonses.com/ for bf66ee2
index at:
100755 bf66ee210b2cf96ba88719fc54ca3cf3a7a86be8	git-bisect.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).