branch: add '--points-at' option
[gitweb.git] / t / t3203-branch-output.sh
index a427163c4d31c37990ebbff4d517393425bdac1c..f1ae5ff662efa3941748f29a7958f23d9519dda1 100755 (executable)
@@ -154,4 +154,13 @@ test_expect_success 'git branch `--sort` option' '
        test_i18ncmp expect actual
 '
 
+test_expect_success 'git branch --points-at option' '
+       cat >expect <<-\EOF &&
+         branch-one
+         master
+       EOF
+       git branch --points-at=branch-one >actual &&
+       test_cmp expect actual
+'
+
 test_done