format-patch: --numbered-files and --stdout aren't mutually exclusive
authorStephen Boyd <bebarino@gmail.com>
Mon, 23 Mar 2009 02:14:06 +0000 (19:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2009 04:46:02 +0000 (21:46 -0700)
commit747e25050bfef8f3a7c882954b654cf6d97fc63e
treeabb4e83e574c2eb061b4fdc14efb7ddc72301686
parent108dab2811701c20d6d6e8d9fe8af88e41d65d77
format-patch: --numbered-files and --stdout aren't mutually exclusive

For example:

    git format-patch --numbered-files --stdout --attach HEAD~~

will create two messages with files 1 and 2 attached respectively.
There is no effect when using --numbered-files and --stdout together
without an --attach or --inline, the --numbered-files option will be
ignored. Add a test to show this.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4013-diff-various.sh
t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master [new file with mode: 0644]