diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-12-21 22:24:03 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-21 23:12:25 -0800 |
commit | 68cb7b6f85aa032c33e49137364da9b76b1d95a1 (patch) | |
tree | 3552a94ffe51b2312c4354996a51680808511c70 /builtin/log.c | |
parent | ce37596c137aef257b9b75dce1c6b2fd498bab23 (diff) | |
download | git-68cb7b6f85aa032c33e49137364da9b76b1d95a1.tar.gz |
builtin/log.c: stop using global patch_suffix
The suffix for the output filename is found in rev->patch_suffix; do
not keep using the global that is only used to parse the command
line and configuration.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
-rw-r--r-- | builtin/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/log.c b/builtin/log.c index f1d086e68b..7cf157e3ea 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -673,7 +673,7 @@ static int reopen_stdout(struct commit *commit, const char *subject, struct rev_info *rev, int quiet) { struct strbuf filename = STRBUF_INIT; - int suffix_len = strlen(fmt_patch_suffix) + 1; + int suffix_len = strlen(rev->patch_suffix) + 1; if (output_directory) { strbuf_addstr(&filename, output_directory); @@ -684,7 +684,7 @@ static int reopen_stdout(struct commit *commit, const char *subject, strbuf_addch(&filename, '/'); } - get_patch_filename(commit, subject, rev->nr, fmt_patch_suffix, &filename); + get_patch_filename(commit, subject, rev->nr, rev->patch_suffix, &filename); if (!quiet) fprintf(realstdout, "%s\n", filename.buf + outdir_offset); |