]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4014-format-patch.sh
format-patch: add an option to suppress commit hash
[thirdparty/git.git] / t / t4014-format-patch.sh
index 890db1174f75172ee6b342e26cbbc58e3e4cd03f..2737ca63464193d79776790e14c1a215a0bca7ed 100755 (executable)
@@ -1431,4 +1431,11 @@ test_expect_success 'cover letter auto user override' '
        test_line_count = 2 list
 '
 
+test_expect_success 'format-patch --zero-commit' '
+       git format-patch --zero-commit --stdout v2..v1 >patch2 &&
+       grep "^From " patch2 | sort | uniq >actual &&
+       echo "From $_z40 Mon Sep 17 00:00:00 2001" >expect &&
+       test_cmp expect actual
+'
+
 test_done