Code

commit: refer to commit template as s->fp
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 26 Feb 2011 05:10:49 +0000 (23:10 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2011 20:10:02 +0000 (12:10 -0800)
commit3c624a30fa3f047d401e08cf019d39b3a79095ea
treec558fc140b5bb279d0a7742f8633acb6a1affa2f
parente0335fcdad28da578904bb33fcf1dfbcdf172599
commit: refer to commit template as s->fp

Instead of maintaining a local variable for it, use s->fp to keep
track of where the commit message template should be written.

This prepares us to take advantage of the status_printf functions,
which use a struct wt_status instead of a FILE pointer to determine
where to send their output.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c