Git fork

Turn on recursive with --summary

This makes "git log/diff --summary" imply recursive behaviour,
whose effect is summarized in one test output:

--- a/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
+++ b/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
@@ -5,7 +5,7 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial

- create mode 040000 dir
+ create mode 100644 dir/sub
create mode 100644 file0
create mode 100644 file2
$

When a file is created in a subdirectory, we used to say just
the directory name only when that directory also was created,
which did not make sense from two reasons. It is not any more
significant to create a new file in a new directory than to
create a new file in an existing directory, and even if it were,
reportinging the new directory name without saying the actual
filename is not useful.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

authored by

Johannes Schindelin and committed by
Junio C Hamano
d7014dc0 51a7c66a

+2 -1
+1
diff.c
··· 1741 1741 */ 1742 1742 if (options->output_format & (DIFF_FORMAT_PATCH | 1743 1743 DIFF_FORMAT_DIFFSTAT | 1744 + DIFF_FORMAT_SUMMARY | 1744 1745 DIFF_FORMAT_CHECKDIFF)) 1745 1746 options->recursive = 1; 1746 1747 /*
+1 -1
t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
··· 5 5 6 6 Initial 7 7 8 - create mode 040000 dir 8 + create mode 100644 dir/sub 9 9 create mode 100644 file0 10 10 create mode 100644 file2 11 11 $