@@ -1436,8 +1436,7 @@ test_expect_success 'git checkout - with --no-track, complete only local referen
1436
1436
EOF
1437
1437
'
1438
1438
1439
- # TODO: completing the start point of -c/-C should not include DWIM references
1440
- test_expect_failure ' git switch - with -c, complete all references' '
1439
+ test_expect_success ' git switch - with -c, complete all references' '
1441
1440
test_completion "git switch -c new-branch " <<-\EOF
1442
1441
HEAD Z
1443
1442
master Z
@@ -1448,8 +1447,7 @@ test_expect_failure 'git switch - with -c, complete all references' '
1448
1447
EOF
1449
1448
'
1450
1449
1451
- # TODO: completing the start point of -c/-C should not include DWIM references
1452
- test_expect_failure ' git switch - with -C, complete all references' '
1450
+ test_expect_success ' git switch - with -C, complete all references' '
1453
1451
test_completion "git switch -C new-branch " <<-\EOF
1454
1452
HEAD Z
1455
1453
master Z
@@ -1460,8 +1458,7 @@ test_expect_failure 'git switch - with -C, complete all references' '
1460
1458
EOF
1461
1459
'
1462
1460
1463
- # TODO: completing the start point of -c/-C should include all references, not just local branches
1464
- test_expect_failure ' git switch - with -c and --track, complete all references' '
1461
+ test_expect_success ' git switch - with -c and --track, complete all references' '
1465
1462
test_completion "git switch -c new-branch --track " <<-EOF
1466
1463
HEAD Z
1467
1464
master Z
@@ -1472,8 +1469,7 @@ test_expect_failure 'git switch - with -c and --track, complete all references'
1472
1469
EOF
1473
1470
'
1474
1471
1475
- # TODO: completing the start point of -c/-C should include all references, not just local branches
1476
- test_expect_failure ' git switch - with -C and --track, complete all references' '
1472
+ test_expect_success ' git switch - with -C and --track, complete all references' '
1477
1473
test_completion "git switch -C new-branch --track " <<-EOF
1478
1474
HEAD Z
1479
1475
master Z
@@ -1484,8 +1480,7 @@ test_expect_failure 'git switch - with -C and --track, complete all references'
1484
1480
EOF
1485
1481
'
1486
1482
1487
- # TODO: completing the start point of -c/-C should include all references, not just local branches
1488
- test_expect_failure ' git switch - with -c and --no-track, complete all references' '
1483
+ test_expect_success ' git switch - with -c and --no-track, complete all references' '
1489
1484
test_completion "git switch -c new-branch --no-track " <<-\EOF
1490
1485
HEAD Z
1491
1486
master Z
@@ -1496,8 +1491,7 @@ test_expect_failure 'git switch - with -c and --no-track, complete all reference
1496
1491
EOF
1497
1492
'
1498
1493
1499
- # TODO: completing the start point of -c/-C should include all references, not just local branches
1500
- test_expect_failure ' git switch - with -C and --no-track, complete all references' '
1494
+ test_expect_success ' git switch - with -C and --no-track, complete all references' '
1501
1495
test_completion "git switch -C new-branch --no-track " <<-\EOF
1502
1496
HEAD Z
1503
1497
master Z
@@ -1508,8 +1502,7 @@ test_expect_failure 'git switch - with -C and --no-track, complete all reference
1508
1502
EOF
1509
1503
'
1510
1504
1511
- # TODO: completing the start point of -b/-B should not include DWIM references
1512
- test_expect_failure ' git checkout - with -b, complete all references' '
1505
+ test_expect_success ' git checkout - with -b, complete all references' '
1513
1506
test_completion "git checkout -b new-branch " <<-\EOF
1514
1507
HEAD Z
1515
1508
master Z
@@ -1520,8 +1513,7 @@ test_expect_failure 'git checkout - with -b, complete all references' '
1520
1513
EOF
1521
1514
'
1522
1515
1523
- # TODO: completing the start point of -b/-B should not include DWIM references
1524
- test_expect_failure ' git checkout - with -B, complete all references' '
1516
+ test_expect_success ' git checkout - with -B, complete all references' '
1525
1517
test_completion "git checkout -B new-branch " <<-\EOF
1526
1518
HEAD Z
1527
1519
master Z
@@ -1532,8 +1524,7 @@ test_expect_failure 'git checkout - with -B, complete all references' '
1532
1524
EOF
1533
1525
'
1534
1526
1535
- # TODO: completing the start point of -b/-B should not include DWIM references
1536
- test_expect_failure ' git checkout - with -b and --track, complete all references' '
1527
+ test_expect_success ' git checkout - with -b and --track, complete all references' '
1537
1528
test_completion "git checkout -b new-branch --track " <<-EOF
1538
1529
HEAD Z
1539
1530
master Z
@@ -1544,8 +1535,7 @@ test_expect_failure 'git checkout - with -b and --track, complete all references
1544
1535
EOF
1545
1536
'
1546
1537
1547
- # TODO: completing the start point of -b/-B should not include DWIM references
1548
- test_expect_failure ' git checkout - with -B and --track, complete all references' '
1538
+ test_expect_success ' git checkout - with -B and --track, complete all references' '
1549
1539
test_completion "git checkout -B new-branch --track " <<-EOF
1550
1540
HEAD Z
1551
1541
master Z
@@ -1624,8 +1614,7 @@ test_expect_success 'git switch - for -C with --no-track, complete local branche
1624
1614
EOF
1625
1615
'
1626
1616
1627
- # TODO: -b/-B argument completion should not include all references
1628
- test_expect_failure ' git checkout - for -b, complete local branches and unique remote branches' '
1617
+ test_expect_success ' git checkout - for -b, complete local branches and unique remote branches' '
1629
1618
test_completion "git checkout -b " <<-\EOF
1630
1619
branch-in-other Z
1631
1620
master Z
@@ -1634,8 +1623,7 @@ test_expect_failure 'git checkout - for -b, complete local branches and unique r
1634
1623
EOF
1635
1624
'
1636
1625
1637
- # TODO: -b/-B argument completion should not include all references
1638
- test_expect_failure ' git checkout - for -B, complete local branches and unique remote branches' '
1626
+ test_expect_success ' git checkout - for -B, complete local branches and unique remote branches' '
1639
1627
test_completion "git checkout -B " <<-\EOF
1640
1628
branch-in-other Z
1641
1629
master Z
@@ -1644,32 +1632,28 @@ test_expect_failure 'git checkout - for -B, complete local branches and unique r
1644
1632
EOF
1645
1633
'
1646
1634
1647
- # TODO: -b/-B argument completion should not include all references
1648
- test_expect_failure ' git checkout - for -b with --no-guess, complete local branches only' '
1635
+ test_expect_success ' git checkout - for -b with --no-guess, complete local branches only' '
1649
1636
test_completion "git checkout --no-guess -b " <<-\EOF
1650
1637
master Z
1651
1638
matching-branch Z
1652
1639
EOF
1653
1640
'
1654
1641
1655
- # TODO: -b/-B argument completion should not include all references
1656
- test_expect_failure ' git checkout - for -B with --no-guess, complete local branches only' '
1642
+ test_expect_success ' git checkout - for -B with --no-guess, complete local branches only' '
1657
1643
test_completion "git checkout --no-guess -B " <<-\EOF
1658
1644
master Z
1659
1645
matching-branch Z
1660
1646
EOF
1661
1647
'
1662
1648
1663
- # TODO: -b/-B argument completion should not include all references
1664
- test_expect_failure ' git checkout - for -b with --no-track, complete local branches only' '
1649
+ test_expect_success ' git checkout - for -b with --no-track, complete local branches only' '
1665
1650
test_completion "git checkout --no-track -b " <<-\EOF
1666
1651
master Z
1667
1652
matching-branch Z
1668
1653
EOF
1669
1654
'
1670
1655
1671
- # TODO: -b/-B argument completion should not include all references
1672
- test_expect_failure ' git checkout - for -B with --no-track, complete local branches only' '
1656
+ test_expect_success ' git checkout - for -B with --no-track, complete local branches only' '
1673
1657
test_completion "git checkout --no-track -B " <<-\EOF
1674
1658
master Z
1675
1659
matching-branch Z
0 commit comments