diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-30 14:46:09 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-30 14:46:09 -0800 |
commit | 9eba92f684ad9fb1b2e9b99f3f406048fece266d (patch) | |
tree | 2d611269e5e0441d3e23c37fb0b8fa9a41ea5aea | |
parent | 045c05048530b8c57c410886e5f64d91a44c2c83 (diff) | |
parent | 7e93d3b9e58a359a1073460e8f2cb3fef0368bd7 (diff) | |
download | git-9eba92f684ad9fb1b2e9b99f3f406048fece266d.tar.gz |
Merge branch 'fc/maint-format-patch-pathspec-dashes'
Conflicts:
t/t4014-format-patch.sh
-rw-r--r-- | builtin-log.c | 3 | ||||
-rwxr-xr-x | t/t4014-format-patch.sh | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c index 33fa6ea6c8..1766349550 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -976,7 +976,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) */ argc = parse_options(argc, argv, prefix, builtin_format_patch_options, builtin_format_patch_usage, - PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN); + PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN | + PARSE_OPT_KEEP_DASHDASH); if (do_signoff) { const char *committer; diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh index 7f267f9ed1..3bc1cccf88 100755 --- a/t/t4014-format-patch.sh +++ b/t/t4014-format-patch.sh @@ -552,4 +552,9 @@ test_expect_success 'format-patch --numstat should produce a patch' ' git format-patch --numstat --stdout master..side > output && test 6 = $(grep "^diff --git a/" output | wc -l)' +test_expect_success 'format-patch -- <path>' ' + git format-patch master..side -- file 2>error && + ! grep "Use .--" error +' + test_done |