Code

format-patch: add test for parsing of "--"
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 26 Nov 2009 19:12:00 +0000 (21:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Nov 2009 05:23:55 +0000 (21:23 -0800)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4014-format-patch.sh

index 531f5b795c197d942223db3cdc2d2030208e9beb..437807e41ecf3fbde2b1b717960b4a384bc66bab 100755 (executable)
@@ -515,4 +515,9 @@ test_expect_success 'format-patch --signoff' '
        grep "^Signed-off-by: $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"
 '
 
+test_expect_success 'format-patch -- <path>' '
+       git format-patch master..side -- file 2>error &&
+       ! grep "Use .--" error
+'
+
 test_done