1436
EOF
1437
'
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' '
1440
test_completion "git switch -c new-branch " <<-\EOF
1441
HEAD Z
1442
master Z
1447
EOF
1448
'
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' '
1451
test_completion "git switch -C new-branch " <<-\EOF
1452
HEAD Z
1453
master Z
1458
EOF
1459
'
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' '
1462
test_completion "git switch -c new-branch --track " <<-EOF
1463
HEAD Z
1464
master Z
1469
EOF
1470
'
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' '
1473
test_completion "git switch -C new-branch --track " <<-EOF
1474
HEAD Z
1475
master Z
1480
EOF
1481
'
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' '
1484
test_completion "git switch -c new-branch --no-track " <<-\EOF
1485
HEAD Z
1486
master Z
1491
EOF
1492
'
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' '
1495
test_completion "git switch -C new-branch --no-track " <<-\EOF
1496
HEAD Z
1497
master Z
1502
EOF
1503
'
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' '
1506
test_completion "git checkout -b new-branch " <<-\EOF
1507
HEAD Z
1508
master Z
1513
EOF
1514
'
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' '
1517
test_completion "git checkout -B new-branch " <<-\EOF
1518
HEAD Z
1519
master Z
1524
EOF
1525
'
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' '
1528
test_completion "git checkout -b new-branch --track " <<-EOF
1529
HEAD Z
1530
master Z
1535
EOF
1536
'
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' '
1539
test_completion "git checkout -B new-branch --track " <<-EOF
1540
HEAD Z
1541
master Z
1614
EOF
1615
'
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' '
1618
test_completion "git checkout -b " <<-\EOF
1619
branch-in-other Z
1620
master Z
1623
EOF
1624
'
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' '
1627
test_completion "git checkout -B " <<-\EOF
1628
branch-in-other Z
1629
master Z
1632
EOF
1633
'
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' '
1636
test_completion "git checkout --no-guess -b " <<-\EOF
1637
master Z
1638
matching-branch Z
1639
EOF
1640
'
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' '
1643
test_completion "git checkout --no-guess -B " <<-\EOF
1644
master Z
1645
matching-branch Z
1646
EOF
1647
'
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' '
1650
test_completion "git checkout --no-track -b " <<-\EOF
1651
master Z
1652
matching-branch Z
1653
EOF
1654
'
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' '
1657
test_completion "git checkout --no-track -B " <<-\EOF
1658
master Z
1659
matching-branch Z