From: Jonathan Nieder Date: Wed, 27 Sep 2017 23:15:16 GMT Subject: Re: [PATCH] diff: correct newline in summary for renamed files Message-ID: <20170927231516.GG19555@aiede.mtv.corp.google.com> In-Reply-To: <20170927225126.4836-1-sbeller@google.com> Stefan Beller wrote: > In 146fdb0dfe (diff.c: emit_diff_symbol learns about DIFF_SYMBOL_SUMMARY, > 2017-06-29), the conversion from direct printing to the symbol emission > dropped the new line character for renamed, copied and rewritten files. > > Add the emission of a newline, add a test for this case. > > Reported-by: Linus Torvalds > Helped-by: Jeff King > Signed-off-by: Stefan Beller > --- > diff.c | 1 + > t/t4013-diff-various.sh | 12 ++++++++++++ > t/t4013/diff.diff-tree_--stat_initial_mode | 4 ++++ > t/t4013/diff.diff-tree_--summary_initial_mode | 3 +++ > t/t4013/diff.diff-tree_initial_mode | 3 +++ > t/t4013/diff.log_--decorate=full_--all | 6 ++++++ > t/t4013/diff.log_--decorate_--all | 6 ++++++ > 7 files changed, 35 insertions(+) > create mode 100644 t/t4013/diff.diff-tree_--stat_initial_mode > create mode 100644 t/t4013/diff.diff-tree_--summary_initial_mode > create mode 100644 t/t4013/diff.diff-tree_initial_mode Reviewed-by: Jonathan Nieder Thanks.