commit: refactor option parsing
authorJeff King <peff@peff.net>
Mon, 7 May 2012 19:18:26 +0000 (15:18 -0400)
committerJeff King <peff@peff.net>
Tue, 8 May 2012 08:51:07 +0000 (04:51 -0400)
commit036dbbfb2d9127dcef3d742b99ac8677006f6d33
treeacb70804a68ca37bfaf97dd41d4d372c624f8967
parentedf141218e4e4ecca3a8ab0c8fa9eafe381b3838
commit: refactor option parsing

The options are declared as a static global, but really they
need only be accessible from cmd_commit.  Additionally,
declare the "struct wt_status" in cmd_commit and cmd_status
as static at the top of each function; this will let the
options lists reference them directly, which will facilitate
further cleanups.

Signed-off-by: Jeff King <peff@peff.net>
builtin/commit.c