Documentation/config: don't list date formats
[gitweb.git] / t / t6300-for-each-ref.sh
index 24fc2ba55da38232f07c58346c628b61822af44a..c7f368c77c057619a1bce93d0586c0c499699e4f 100755 (executable)
@@ -227,6 +227,14 @@ test_expect_success 'Check format "rfc2822" date fields output' '
        test_cmp expected actual
 '
 
+test_expect_success 'Check format of strftime date fields' '
+       echo "my date is 2006-07-03" >expected &&
+       git for-each-ref \
+         --format="%(authordate:format:my date is %Y-%m-%d)" \
+         refs/heads >actual &&
+       test_cmp expected actual
+'
+
 cat >expected <<\EOF
 refs/heads/master
 refs/remotes/origin/master