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:12:43 +0000 (12:12 -0800)
commit37f3012ff2a1a23dc7f8d390fde959d292fcc4e8
treec558fc140b5bb279d0a7742f8633acb6a1affa2f
parentbecbdae82bb8bb193c2f1e9d8b32a60bdef8b0e4
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