commit: factor status configuration is a helper function
commit5c25dfaa794c7bbfa1b4d234b10f94ee371b1db0
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Thu, 12 Sep 2013 10:50:04 +0000 (12 12:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2013 18:45:03 +0000 (12 11:45 -0700)
treec2a62bf666908fca08aedff3229a3b4703b68d28
parente230c568c4b9a991e3175e5f65171a566fd8e39c
commit: factor status configuration is a helper function

cmd_commit and cmd_status use very similar code to initialize the
wt_status structure. Factor this code into a function to ensure future
changes will keep both versions consistent.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c