commit-tree: resurrect command line parsing updates
commit9aab1b511892b7af86c037b49ff80ec5b4b2c191
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2012 20:05:13 +0000 (17 13:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2012 20:05:13 +0000 (17 13:05 -0700)
treedc273435ce5dba033fb76beb6ba9f59d0b2f2532
parentba3c69a9ee1894de397b60d3b548383e13ef49e3
commit-tree: resurrect command line parsing updates

79a9312 (commit-tree: update the command line parsing, 2011-11-09)
updated the command line parser to understand the usual "flags first
and then non-flag arguments" order, in addition to the original and
a bit unusual "tree comes first and then zero or more -p <parent>".

Unfortunately, ba3c69a (commit: teach --gpg-sign option, 2011-10-05)
broke it by mistake.  Resurrect it, and protect the feature with a
test from future breakages.

Noticed by Keshav Kini
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-tree.c
t/t1100-commit-tree-options.sh