branch.c: use 'ref-filter' APIs
[gitweb.git] / t / t3203-branch-output.sh
index f51d0f3cadcb4f97f4cf9f2d79aad9ed401781d8..a427163c4d31c37990ebbff4d517393425bdac1c 100755 (executable)
@@ -143,4 +143,15 @@ EOF
        test_i18ncmp expect actual
 '
 
+test_expect_success 'git branch `--sort` option' '
+       cat >expect <<-\EOF &&
+         branch-two
+       * (HEAD detached from fromtag)
+         branch-one
+         master
+       EOF
+       git branch --sort=objectsize >actual &&
+       test_i18ncmp expect actual
+'
+
 test_done