format-patch: pass a commit to reopen_stdout()
commitcd2ef591c8e753fe5295ac3c6f1dee481f00a185
authorStephen Boyd <bebarino@gmail.com>
Mon, 23 Mar 2009 02:14:03 +0000 (22 19:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2009 04:37:56 +0000 (22 21:37 -0700)
tree3ea4e885d93552c1693a52ce83abd1d734d6b96f
parent6df514af9dfb44f104baa9b581e91de22af89b8d
format-patch: pass a commit to reopen_stdout()

We use the commit to generate the patch filename in reopen_stdout()
before we redirect stdout. The cover letter codepath creates a dummy
commit with the desired subject line 'cover letter'.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c