This repository was archived by the owner on Sep 11, 2020. It is now read-only.
Commit 33f05f3
committed
improve ResolveRevision's Ref lookup path
1) lookups on an annotated tag oid now work
2) there was a lot of complexity around detection of ambiguity, but
unlike git, ambiguous refs are rejected (which causes bugs like
#823). The new code matches rev-parse's behavior (prefer the OID),
though there is no warning path to report the same warning.
Signed-off-by: Mike Lundy <[email protected]>1 parent 52fcf7d commit 33f05f3
2 files changed
+42
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | 1309 | | |
1320 | 1310 | | |
1321 | 1311 | | |
| |||
1336 | 1326 | | |
1337 | 1327 | | |
1338 | 1328 | | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1342 | 1337 | | |
1343 | 1338 | | |
1344 | | - | |
| 1339 | + | |
1345 | 1340 | | |
1346 | 1341 | | |
| 1342 | + | |
1347 | 1343 | | |
1348 | 1344 | | |
1349 | 1345 | | |
1350 | 1346 | | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
1357 | 1359 | | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | 1360 | | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1369 | 1374 | | |
1370 | 1375 | | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
| 1376 | + | |
1385 | 1377 | | |
1386 | 1378 | | |
| 1379 | + | |
1387 | 1380 | | |
1388 | 1381 | | |
1389 | 1382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2415 | 2415 | | |
2416 | 2416 | | |
2417 | 2417 | | |
2418 | | - | |
| 2418 | + | |
2419 | 2419 | | |
2420 | 2420 | | |
2421 | 2421 | | |
| |||
2427 | 2427 | | |
2428 | 2428 | | |
2429 | 2429 | | |
2430 | | - | |
| 2430 | + | |
| 2431 | + | |
2431 | 2432 | | |
2432 | 2433 | | |
2433 | 2434 | | |
2434 | 2435 | | |
2435 | 2436 | | |
2436 | | - | |
| 2437 | + | |
2437 | 2438 | | |
2438 | 2439 | | |
2439 | 2440 | | |
| |||
2459 | 2460 | | |
2460 | 2461 | | |
2461 | 2462 | | |
2462 | | - | |
2463 | 2463 | | |
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | | - | |
| 2467 | + | |
2468 | 2468 | | |
2469 | 2469 | | |
2470 | 2470 | | |
| |||
0 commit comments