diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-02-10 12:52:26 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-02-10 12:52:27 -0800 |
| commit | e53c7f8731f7fa66864397d3d1ec1ad7c035c23a (patch) | |
| tree | 57b415de5fbe8afd9649d592aa7af9cd10854caa /diff.c | |
| parent | Merge branch 'da/t7800-cleanup' (diff) | |
| parent | diff: print line prefix for --name-only output (diff) | |
| download | git-e53c7f8731f7fa66864397d3d1ec1ad7c035c23a.tar.gz git-e53c7f8731f7fa66864397d3d1ec1ad7c035c23a.zip | |
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
Diffstat (limited to 'diff.c')
| -rw-r--r-- | diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } } |
