Merge branch 'vl/grep-configurable-threads'
[gitweb.git] / t / t3203-branch-output.sh
index 16efe7af03d210cb349337e978c6105cb22d80e8..d3913f9088950a3ca848b8994abfddfecd3f6706 100755 (executable)
@@ -156,4 +156,24 @@ EOF
        test_i18ncmp expect actual
 '
 
+test_expect_success 'git branch `--sort` option' '
+       cat >expect <<-\EOF &&
+       * (HEAD detached from fromtag)
+         branch-two
+         branch-one
+         master
+       EOF
+       git branch --sort=objectsize >actual &&
+       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