commit-tree: update the command line parsing
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Nov 2011 19:33:55 +0000 (11:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Nov 2011 06:27:17 +0000 (22:27 -0800)
commit79a9312cc99f9c2f2949e1211c708896e6037f64
treed51ca47e38a9c3a8491737f10f106743fed41568
parented7a42a0752fd71cf04273b8e691966dd2c33ebe
commit-tree: update the command line parsing

We have kept the original "git commit-tree <tree> -p <parent> ..." syntax
forever, but "git commit-tree -p <parent> -p <parent> ... <tree>" would be
more intuitive way to spell it. Dashed flags along with their arguments
come first and then the "thing" argument after the flags.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-tree.c