Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 68cb7b6

Browse files
committed
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 <[email protected]>
1 parent ce37596 commit 68cb7b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ static int reopen_stdout(struct commit *commit, const char *subject,
673673
struct rev_info *rev, int quiet)
674674
{
675675
struct strbuf filename = STRBUF_INIT;
676-
int suffix_len = strlen(fmt_patch_suffix) + 1;
676+
int suffix_len = strlen(rev->patch_suffix) + 1;
677677

678678
if (output_directory) {
679679
strbuf_addstr(&filename, output_directory);
@@ -684,7 +684,7 @@ static int reopen_stdout(struct commit *commit, const char *subject,
684684
strbuf_addch(&filename, '/');
685685
}
686686

687-
get_patch_filename(commit, subject, rev->nr, fmt_patch_suffix, &filename);
687+
get_patch_filename(commit, subject, rev->nr, rev->patch_suffix, &filename);
688688

689689
if (!quiet)
690690
fprintf(realstdout, "%s\n", filename.buf + outdir_offset);

0 commit comments

Comments
 (0)