commit: factor status configuration is a helper function
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Thu, 12 Sep 2013 10:50:04 +0000 (12:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2013 18:45:03 +0000 (11:45 -0700)
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>
No differences found