Skip to content

Commit

Permalink
Merge branch 'fc/maint-format-patch-pathspec-dashes'
Browse files Browse the repository at this point in the history
Conflicts:
	t/t4014-format-patch.sh
  • Loading branch information
gitster committed Nov 30, 2009
2 parents 045c050 + 7e93d3b commit 9eba92f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin-log.c
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions t/t4014-format-patch.sh
Expand Up @@ -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

0 comments on commit 9eba92f

Please sign in to comment.