Merge branch 'jk/log-graph-name-only'
"git log --graph" did not work well with "--name-only", even though other forms of "diff" output were handled correctly. * jk/log-graph-name-only: diff: print line prefix for --name-only output
This commit is contained in:
1
diff.c
1
diff.c
@ -4450,6 +4450,7 @@ static void flush_one_pair(struct diff_filepair *p, struct diff_options *opt)
|
||||
name_a = p->two->path;
|
||||
name_b = NULL;
|
||||
strip_prefix(opt->prefix_length, &name_a, &name_b);
|
||||
fprintf(opt->file, "%s", diff_line_prefix(opt));
|
||||
write_name_quoted(name_a, opt->file, opt->line_termination);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user