tag: change --point-at to default to HEAD
[gitweb.git] / t / t7004-tag.sh
index 5823de16aac752d3e2f89c85d52fdb4950605903..3529c3009caa4d70113e64fce15d2c9622a2a2cc 100755 (executable)
@@ -1534,7 +1534,8 @@ do
        "
        test_expect_success "Doing 'git tag --list-like $option <commit> <pattern> is permitted" "
                git tag -n $option HEAD HEAD &&
-               git tag $option HEAD HEAD
+               git tag $option HEAD HEAD &&
+               git tag $option
        "
 done
 
@@ -1546,6 +1547,12 @@ test_expect_success '--points-at can be used in non-list mode' '
        test_cmp expect actual
 '
 
+test_expect_success '--points-at is a synonym for --points-at HEAD' '
+       echo v4.0 >expect &&
+       git tag --points-at >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success '--points-at finds lightweight tags' '
        echo v4.0 >expect &&
        git tag --points-at v4.0 >actual &&