Merge branch 'jk/output-prefix-cleanup'
Code clean-up. * jk/output-prefix-cleanup: diff: store graph prefix buf in git_graph struct diff: return line_prefix directly when possible diff: return const char from output_prefix callback diff: drop line_prefix_length field line-log: use diff_line_prefix() instead of custom helper
This commit is contained in:
@ -922,12 +922,7 @@ int log_tree_diff_flush(struct rev_info *opt)
|
||||
* diff/diffstat output for readability.
|
||||
*/
|
||||
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
|
||||
if (opt->diffopt.output_prefix) {
|
||||
struct strbuf *msg = NULL;
|
||||
msg = opt->diffopt.output_prefix(&opt->diffopt,
|
||||
opt->diffopt.output_prefix_data);
|
||||
fwrite(msg->buf, msg->len, 1, opt->diffopt.file);
|
||||
}
|
||||
fputs(diff_line_prefix(&opt->diffopt), opt->diffopt.file);
|
||||
|
||||
/*
|
||||
* We may have shown three-dashes line early
|
||||
|
Reference in New Issue
Block a user