am: add --show-current-patch
[gitweb.git] / t / t4150-am.sh
index 73b67b4280b99e0328e201e6b69c3d88b766ea84..23abf42abcf1851a7921d034629a55efb319893a 100755 (executable)
@@ -662,6 +662,11 @@ test_expect_success 'am pauses on conflict' '
        test -d .git/rebase-apply
 '
 
+test_expect_success 'am --show-current-patch' '
+       git am --show-current-patch >actual.patch &&
+       test_cmp .git/rebase-apply/0001 actual.patch
+'
+
 test_expect_success 'am --skip works' '
        echo goodbye >expected &&
        git am --skip &&