Commit 320598c
bisect: use selected alternate terms in status output
Alternate bisect terms are helpful when the terms "good" and "bad" are
confusing such as when bisecting for the resolution of an issue (the
first good commit) rather than the introduction of a regression.
These terms must be used when marking a commit (e.g. `git bisect new`),
they will be used in reference names (e.g. refs/bisect/new) and they are
used in parts of git's log output such as "<sha> was both old and new"
in git bisect skip's output.
However, hardcoded "good"/"bad" terms are still used in a few status
messages and can cause confusion about the status of the bisect such as:
$ git bisect old
[sha] is the first bad commit
or about the required action such as:
status: waiting for bad commit, 1 good commit known
$ git bisect bad
error: Invalid command: you're currently in a new/old bisect
fatal: unknown command: 'bad'
This commit updates all remaining output messages which use hardcoded
"good" and "bad" terms to use the selected terms consistently across the
bisect output and adds tests.
Signed-off-by: Jonas Rebmann <kernel@schlaraffenlan.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent ca1db8a commit 320598c
2 files changed
Lines changed: 38 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
470 | | - | |
471 | | - | |
472 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
473 | 475 | | |
474 | | - | |
| 476 | + | |
| 477 | + | |
475 | 478 | | |
476 | 479 | | |
477 | 480 | | |
| |||
1262 | 1265 | | |
1263 | 1266 | | |
1264 | 1267 | | |
1265 | | - | |
1266 | | - | |
| 1268 | + | |
| 1269 | + | |
1267 | 1270 | | |
1268 | 1271 | | |
1269 | 1272 | | |
1270 | 1273 | | |
1271 | | - | |
1272 | | - | |
| 1274 | + | |
| 1275 | + | |
1273 | 1276 | | |
1274 | 1277 | | |
1275 | 1278 | | |
| |||
1314 | 1317 | | |
1315 | 1318 | | |
1316 | 1319 | | |
1317 | | - | |
| 1320 | + | |
1318 | 1321 | | |
1319 | 1322 | | |
1320 | 1323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
1081 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1082 | 1084 | | |
1083 | 1085 | | |
1084 | 1086 | | |
1085 | | - | |
| 1087 | + | |
1086 | 1088 | | |
1087 | 1089 | | |
1088 | 1090 | | |
| |||
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1106 | 1118 | | |
1107 | 1119 | | |
1108 | 1120 | | |
| |||
1224 | 1236 | | |
1225 | 1237 | | |
1226 | 1238 | | |
1227 | | - | |
| 1239 | + | |
1228 | 1240 | | |
1229 | | - | |
| 1241 | + | |
1230 | 1242 | | |
1231 | | - | |
| 1243 | + | |
1232 | 1244 | | |
1233 | | - | |
| 1245 | + | |
1234 | 1246 | | |
1235 | | - | |
| 1247 | + | |
1236 | 1248 | | |
1237 | | - | |
| 1249 | + | |
1238 | 1250 | | |
1239 | 1251 | | |
1240 | 1252 | | |
1241 | 1253 | | |
1242 | 1254 | | |
1243 | | - | |
| 1255 | + | |
1244 | 1256 | | |
1245 | | - | |
| 1257 | + | |
1246 | 1258 | | |
1247 | | - | |
| 1259 | + | |
1248 | 1260 | | |
1249 | | - | |
| 1261 | + | |
1250 | 1262 | | |
1251 | 1263 | | |
1252 | 1264 | | |
| |||
0 commit comments