commit: --cleanup is a message optionmaster
commitc6bb10a3ebb2a77f7e03170bf75f2a9bd29cd7c2
authorGreg Price <price@ksplice.com>
Tue, 29 Dec 2009 19:24:29 +0000 (29 14:24 -0500)
committerGreg Price <price@ksplice.com>
Tue, 29 Dec 2009 19:29:49 +0000 (29 14:29 -0500)
treec1eb0408a5050c69770e0d33260d00b84de85b1f
parent05114f7ed41332155e7079fe38df3ac93114fac2
commit: --cleanup is a message option

In the usage message for "git commit", the --cleanup option appeared
at the end, as one of the "contents options":

usage: git commit [options] [--] <filepattern>...
...
Commit message options
...
Commit contents options
...
    --allow-empty         ok to record an empty change
    --cleanup <default>   how to strip spaces and #comments from message

This is confusing, in part because it makes it ambiguous whether
--allow-empty, just above, refers to an empty diff or an empty message.

Move --cleanup into the 'message options' group.  Also add a pair of
comments to prevent similar oversights in the future.

Signed-off-by: Greg Price <price@ksplice.com>
builtin-commit.c