Browse Source

diff --stat: use less columns for change counts

Number of columns required for change counts is now computed based on
the maximum number of changed lines instead of being fixed. This means
that usually a few more columns will be available for the filenames
and the graph.

The graph width logic is also modified to include enough space for
"Bin XXX -> YYY bytes".

If changes to binary files are mixed with changes to text files,
change counts are padded to take at least three columns. And the other
way around, if change counts require more than three columns, then
"Bin"s are padded to align with the change count. This way, the +-
part starts in the same column as "XXX -> YYY" part for binary files.
This makes the graph easier to parse visually thanks to the empty
column. This mimics the layout of diff --stat before this change.

Tests and the tutorial are updated to reflect the new --stat output.
This means either the removal of extra padding and/or the addition of
up to three extra characters to truncated filenames. One test is added
to check the graph alignment when a binary file change and text file
change of more than 999 lines are committed together.

Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Zbigniew Jędrzejewski-Szmek 13 years ago committed by Junio C Hamano
parent
commit
dc801e71a7
  1. 4
      Documentation/gitcore-tutorial.txt
  2. 48
      diff.c
  3. 2
      t/t0023-crlf-am.sh
  4. 4
      t/t1200-tutorial.sh
  5. 2
      t/t3404-rebase-interactive.sh
  6. 2
      t/t3903-stash.sh
  7. 19
      t/t4012-diff-binary.sh
  8. 4
      t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master
  9. 6
      t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side
  10. 4
      t/t4013/diff.diff-tree_--cc_--patch-with-stat_master
  11. 4
      t/t4013/diff.diff-tree_--cc_--stat_--summary_master
  12. 6
      t/t4013/diff.diff-tree_--cc_--stat_--summary_side
  13. 4
      t/t4013/diff.diff-tree_--cc_--stat_master
  14. 6
      t/t4013/diff.diff-tree_--pretty=oneline_--root_--patch-with-stat_initial
  15. 6
      t/t4013/diff.diff-tree_--pretty_--patch-with-stat_side
  16. 6
      t/t4013/diff.diff-tree_--pretty_--root_--patch-with-stat_initial
  17. 6
      t/t4013/diff.diff-tree_--pretty_--root_--stat_--summary_initial
  18. 6
      t/t4013/diff.diff-tree_--pretty_--root_--stat_initial
  19. 6
      t/t4013/diff.diff-tree_--root_--patch-with-stat_initial
  20. 4
      t/t4013/diff.diff-tree_-c_--stat_--summary_master
  21. 6
      t/t4013/diff.diff-tree_-c_--stat_--summary_side
  22. 4
      t/t4013/diff.diff-tree_-c_--stat_master
  23. 6
      t/t4013/diff.diff_--patch-with-stat_-r_initial..side
  24. 6
      t/t4013/diff.diff_--patch-with-stat_initial..side
  25. 6
      t/t4013/diff.diff_--stat_initial..side
  26. 6
      t/t4013/diff.diff_-r_--stat_initial..side
  27. 6
      t/t4013/diff.format-patch_--attach_--stdout_--suffix=.diff_initial..side
  28. 16
      t/t4013/diff.format-patch_--attach_--stdout_initial..master
  29. 10
      t/t4013/diff.format-patch_--attach_--stdout_initial..master^
  30. 6
      t/t4013/diff.format-patch_--attach_--stdout_initial..side
  31. 16
      t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master
  32. 16
      t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master
  33. 16
      t/t4013/diff.format-patch_--inline_--stdout_initial..master
  34. 10
      t/t4013/diff.format-patch_--inline_--stdout_initial..master^
  35. 6
      t/t4013/diff.format-patch_--inline_--stdout_initial..master^^
  36. 6
      t/t4013/diff.format-patch_--inline_--stdout_initial..side
  37. 18
      t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^
  38. 16
      t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master
  39. 16
      t/t4013/diff.format-patch_--stdout_--numbered_initial..master
  40. 16
      t/t4013/diff.format-patch_--stdout_initial..master
  41. 10
      t/t4013/diff.format-patch_--stdout_initial..master^
  42. 6
      t/t4013/diff.format-patch_--stdout_initial..side
  43. 6
      t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_
  44. 16
      t/t4013/diff.log_--patch-with-stat_master
  45. 6
      t/t4013/diff.log_--patch-with-stat_master_--_dir_
  46. 26
      t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master
  47. 22
      t/t4013/diff.log_--root_--patch-with-stat_--summary_master
  48. 22
      t/t4013/diff.log_--root_--patch-with-stat_master
  49. 26
      t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master
  50. 6
      t/t4013/diff.show_--patch-with-stat_--summary_side
  51. 6
      t/t4013/diff.show_--patch-with-stat_side
  52. 6
      t/t4013/diff.show_--stat_--summary_side
  53. 6
      t/t4013/diff.show_--stat_side
  54. 6
      t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_
  55. 16
      t/t4013/diff.whatchanged_--patch-with-stat_master
  56. 6
      t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_
  57. 26
      t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master
  58. 22
      t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master
  59. 22
      t/t4013/diff.whatchanged_--root_--patch-with-stat_master
  60. 26
      t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master
  61. 14
      t/t4016-diff-quote.sh
  62. 2
      t/t4030-diff-textconv.sh
  63. 2
      t/t4045-diff-relative.sh
  64. 4
      t/t4049-diff-stat-count.sh
  65. 6
      t/t4052-stat-output.sh
  66. 30
      t/t4202-log.sh
  67. 2
      t/t5100/patch0001
  68. 2
      t/t5100/patch0002
  69. 2
      t/t5100/patch0003
  70. 4
      t/t5100/patch0005
  71. 2
      t/t5100/patch0006
  72. 2
      t/t5100/patch0010
  73. 2
      t/t5100/patch0011
  74. 2
      t/t5100/patch0014
  75. 2
      t/t5100/patch0014--scissors
  76. 18
      t/t5100/sample.mbox
  77. 12
      t/t7602-merge-octopus-many.sh

4
Documentation/gitcore-tutorial.txt

@ -1002,8 +1002,8 @@ would be different) @@ -1002,8 +1002,8 @@ would be different)
----------------
Updating from ae3a2da... to a80b4aa....
Fast-forward (no commit created; -m option ignored)
example | 1 +
hello | 1 +
example | 1 +
hello | 1 +
2 files changed, 2 insertions(+)
----------------


48
diff.c

@ -1443,8 +1443,8 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1443,8 +1443,8 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
{
int i, len, add, del, adds = 0, dels = 0;
uintmax_t max_change = 0, max_len = 0;
int total_files = data->nr;
int width, name_width, graph_width, number_width = 4, count;
int total_files = data->nr, count;
int width, name_width, graph_width, number_width = 0, bin_width = 0;
const char *reset, *add_c, *del_c;
const char *line_prefix = "";
int extra_shown = 0;
@ -1480,8 +1480,21 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1480,8 +1480,21 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
if (max_len < len)
max_len = len;

if (file->is_binary || file->is_unmerged)
if (file->is_unmerged) {
/* "Unmerged" is 8 characters */
bin_width = bin_width < 8 ? 8 : bin_width;
continue;
}
if (file->is_binary) {
/* "Bin XXX -> YYY bytes" */
int w = 14 + decimal_width(file->added)
+ decimal_width(file->deleted);
bin_width = bin_width < w ? w : bin_width;
/* Display change counts aligned with "Bin" */
number_width = 3;
continue;
}

if (max_change < change)
max_change = change;
}
@ -1506,12 +1519,22 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1506,12 +1519,22 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
* stat_name_width fixes the maximum width of the filename,
* and is also used to divide available columns if there
* aren't enough.
*
* Binary files are displayed with "Bin XXX -> YYY bytes"
* instead of the change count and graph. This part is treated
* similarly to the graph part, except that it is not
* "scaled". If total width is too small to accomodate the
* guaranteed minimum width of the filename part and the
* separators and this message, this message will "overflow"
* making the line longer than the maximum width.
*/

if (options->stat_width == -1)
width = term_columns();
else
width = options->stat_width ? options->stat_width : 80;
number_width = decimal_width(max_change) > number_width ?
decimal_width(max_change) : number_width;

if (options->stat_graph_width == -1)
options->stat_graph_width = diff_stat_graph_width;
@ -1525,10 +1548,14 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1525,10 +1548,14 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)

/*
* First assign sizes that are wanted, ignoring available width.
* strlen("Bin XXX -> YYY bytes") == bin_width, and the part
* starting from "XXX" should fit in graph_width.
*/
graph_width = (options->stat_graph_width &&
options->stat_graph_width < max_change) ?
options->stat_graph_width : max_change;
graph_width = max_change + 4 > bin_width ? max_change : bin_width - 4;
if (options->stat_graph_width &&
options->stat_graph_width < graph_width)
graph_width = options->stat_graph_width;

name_width = (options->stat_name_width > 0 &&
options->stat_name_width < max_len) ?
options->stat_name_width : max_len;
@ -1583,7 +1610,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1583,7 +1610,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
if (data->files[i]->is_binary) {
fprintf(options->file, "%s", line_prefix);
show_name(options->file, prefix, name, len);
fprintf(options->file, " Bin ");
fprintf(options->file, " %*s ", number_width, "Bin");
fprintf(options->file, "%s%"PRIuMAX"%s",
del_c, deleted, reset);
fprintf(options->file, " -> ");
@ -1596,7 +1623,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1596,7 +1623,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
else if (data->files[i]->is_unmerged) {
fprintf(options->file, "%s", line_prefix);
show_name(options->file, prefix, name, len);
fprintf(options->file, " Unmerged\n");
fprintf(options->file, " Unmerged\n");
continue;
}

@ -1625,8 +1652,9 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options) @@ -1625,8 +1652,9 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
}
fprintf(options->file, "%s", line_prefix);
show_name(options->file, prefix, name, len);
fprintf(options->file, "%5"PRIuMAX"%s", added + deleted,
added + deleted ? " " : "");
fprintf(options->file, " %*"PRIuMAX"%s",
number_width, added + deleted,
added + deleted ? " " : "");
show_graph(options->file, '+', add, add_c, reset);
show_graph(options->file, '-', del, del_c, reset);
fprintf(options->file, "\n");

2
t/t0023-crlf-am.sh

@ -11,7 +11,7 @@ Date: Thu, 23 Aug 2007 13:00:00 +0200 @@ -11,7 +11,7 @@ Date: Thu, 23 Aug 2007 13:00:00 +0200
Subject: test1

---
foo | 1 +
foo | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 foo


4
t/t1200-tutorial.sh

@ -154,8 +154,8 @@ test_expect_success 'git show-branch' ' @@ -154,8 +154,8 @@ test_expect_success 'git show-branch' '
cat > resolve.expect << EOF
Updating VARIABLE..VARIABLE
FASTFORWARD (no commit created; -m option ignored)
example | 1 +
hello | 1 +
example | 1 +
hello | 1 +
2 files changed, 2 insertions(+)
EOF


2
t/t3404-rebase-interactive.sh

@ -323,7 +323,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' ' @@ -323,7 +323,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' '
echo resolved > file1 &&
git add file1 &&
git rebase --continue > output &&
grep "^ file1 | 2 +-$" output
grep "^ file1 | 2 +-$" output
'

test_expect_success 'multi-squash only fires up editor once' '

2
t/t3903-stash.sh

@ -443,7 +443,7 @@ test_expect_success 'stash show format defaults to --stat' ' @@ -443,7 +443,7 @@ test_expect_success 'stash show format defaults to --stat' '
STASH_ID=$(git stash create) &&
git reset --hard &&
cat >expected <<-EOF &&
file | 1 +
file | 1 +
1 file changed, 1 insertion(+)
EOF
git stash show ${STASH_ID} >actual &&

19
t/t4012-diff-binary.sh

@ -107,4 +107,23 @@ test_expect_success 'diff --no-index with binary creation' ' @@ -107,4 +107,23 @@ test_expect_success 'diff --no-index with binary creation' '
test_cmp expected actual
'

cat >expect <<EOF
binfile | Bin 0 -> 1026 bytes
textfile | 10000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
EOF

test_expect_success 'diff --stat with binary files and big change count' '
echo X | dd of=binfile bs=1k seek=1 &&
git add binfile &&
i=0 &&
while test $i -lt 10000; do
echo $i &&
i=$(($i + 1))
done >textfile &&
git add textfile &&
git diff --cached --stat binfile textfile >output &&
grep " | " output >actual &&
test_cmp expect actual
'

test_done

4
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
$ git diff-tree --cc --patch-with-stat --summary master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --cc dir/sub

6
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
$ git diff-tree --cc --patch-with-stat --summary side
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


4
t/t4013/diff.diff-tree_--cc_--patch-with-stat_master

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
$ git diff-tree --cc --patch-with-stat master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --cc dir/sub

4
t/t4013/diff.diff-tree_--cc_--stat_--summary_master

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff-tree --cc --stat --summary master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)
$

6
t/t4013/diff.diff-tree_--cc_--stat_--summary_side

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
$ git diff-tree --cc --stat --summary side
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3
$

4
t/t4013/diff.diff-tree_--cc_--stat_master

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff-tree --cc --stat master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)
$

6
t/t4013/diff.diff-tree_--pretty=oneline_--root_--patch-with-stat_initial

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
$ git diff-tree --pretty=oneline --root --patch-with-stat initial
444ac553ac7612cc88969031b02b3767fb8a353a Initial
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.diff-tree_--pretty_--patch-with-stat_side

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.diff-tree_--pretty_--root_--patch-with-stat_initial

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.diff-tree_--pretty_--root_--stat_--summary_initial

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial

dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

6
t/t4013/diff.diff-tree_--pretty_--root_--stat_initial

@ -5,8 +5,8 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -5,8 +5,8 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial

dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
$

6
t/t4013/diff.diff-tree_--root_--patch-with-stat_initial

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
$ git diff-tree --root --patch-with-stat initial
444ac553ac7612cc88969031b02b3767fb8a353a
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)

diff --git a/dir/sub b/dir/sub

4
t/t4013/diff.diff-tree_-c_--stat_--summary_master

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff-tree -c --stat --summary master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)
$

6
t/t4013/diff.diff-tree_-c_--stat_--summary_side

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
$ git diff-tree -c --stat --summary side
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3
$

4
t/t4013/diff.diff-tree_-c_--stat_master

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff-tree -c --stat master
59d314ad6f356dd08601a4cd5e530381da3e3c64
dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)
$

6
t/t4013/diff.diff_--patch-with-stat_-r_initial..side

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
$ git diff --patch-with-stat -r initial..side
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.diff_--patch-with-stat_initial..side

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
$ git diff --patch-with-stat initial..side
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.diff_--stat_initial..side

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff --stat initial..side
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
$

6
t/t4013/diff.diff_-r_--stat_initial..side

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
$ git diff -r --stat initial..side
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
$

6
t/t4013/diff.format-patch_--attach_--stdout_--suffix=.diff_initial..side

@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--attach_--stdout_initial..master

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


10
t/t4013/diff.format-patch_--attach_--stdout_initial..master^

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1


6
t/t4013/diff.format-patch_--attach_--stdout_initial..side

@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--inline_--stdout_initial..master

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -121,9 +121,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


10
t/t4013/diff.format-patch_--inline_--stdout_initial..master^

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -73,8 +73,8 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1


6
t/t4013/diff.format-patch_--inline_--stdout_initial..master^^

@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit @@ -14,9 +14,9 @@ Content-Transfer-Encoding: 8bit

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2


6
t/t4013/diff.format-patch_--inline_--stdout_initial..side

@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed @@ -12,9 +12,9 @@ Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


18
t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^

@ -10,10 +10,10 @@ A U Thor (2): @@ -10,10 +10,10 @@ A U Thor (2):
Second
Third

dir/sub | 4 ++++
file0 | 3 +++
file1 | 3 +++
file2 | 3 ---
dir/sub | 4 ++++
file0 | 3 +++
file1 | 3 +++
file2 | 3 ---
4 files changed, 10 insertions(+), 3 deletions(-)
create mode 100644 file1
delete mode 100644 file2
@ -28,9 +28,9 @@ Subject: [DIFFERENT_PREFIX 1/2] Second @@ -28,9 +28,9 @@ Subject: [DIFFERENT_PREFIX 1/2] Second

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -73,8 +73,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000 @@ -73,8 +73,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000
Subject: [DIFFERENT_PREFIX 2/2] Third

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1


16
t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master

@ -6,9 +6,9 @@ Subject: [PATCH] Second @@ -6,9 +6,9 @@ Subject: [PATCH] Second

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000 @@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000
Subject: [PATCH] Third

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000 @@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000
Subject: [PATCH] Side

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--stdout_--numbered_initial..master

@ -6,9 +6,9 @@ Subject: [PATCH 1/3] Second @@ -6,9 +6,9 @@ Subject: [PATCH 1/3] Second

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000 @@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000
Subject: [PATCH 2/3] Third

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000 @@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000
Subject: [PATCH 3/3] Side

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


16
t/t4013/diff.format-patch_--stdout_initial..master

@ -6,9 +6,9 @@ Subject: [PATCH 1/3] Second @@ -6,9 +6,9 @@ Subject: [PATCH 1/3] Second

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000 @@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000
Subject: [PATCH 2/3] Third

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000 @@ -85,9 +85,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000
Subject: [PATCH 3/3] Side

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


10
t/t4013/diff.format-patch_--stdout_initial..master^

@ -6,9 +6,9 @@ Subject: [PATCH 1/2] Second @@ -6,9 +6,9 @@ Subject: [PATCH 1/2] Second

This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000 @@ -51,8 +51,8 @@ Date: Mon, 26 Jun 2006 00:02:00 +0000
Subject: [PATCH 2/2] Third

---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1


6
t/t4013/diff.format-patch_--stdout_initial..side

@ -5,9 +5,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000 @@ -5,9 +5,9 @@ Date: Mon, 26 Jun 2006 00:03:00 +0000
Subject: [PATCH] Side

---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


6
t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_

@ -12,7 +12,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -12,7 +12,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -31,7 +31,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -31,7 +31,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -53,7 +53,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -53,7 +53,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub

16
t/t4013/diff.log_--patch-with-stat_master

@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -54,8 +54,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -54,8 +54,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -86,9 +86,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -86,9 +86,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.log_--patch-with-stat_master_--_dir_

@ -12,7 +12,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -12,7 +12,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -31,7 +31,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -31,7 +31,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -53,7 +53,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -53,7 +53,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub

26
t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master

@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000 @@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000

Merge branch 'side'

dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --cc dir/sub
@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

22
t/t4013/diff.log_--root_--patch-with-stat_--summary_master

@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -55,8 +55,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -55,8 +55,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -88,9 +88,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -88,9 +88,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -130,9 +130,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -130,9 +130,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

22
t/t4013/diff.log_--root_--patch-with-stat_master

@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -12,9 +12,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -54,8 +54,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -54,8 +54,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -86,9 +86,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -86,9 +86,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dir/sub b/dir/sub
@ -127,9 +127,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -127,9 +127,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)

diff --git a/dir/sub b/dir/sub

26
t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master

@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000 @@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000

Merge branch 'side'

dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --combined dir/sub
@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

6
t/t4013/diff.show_--patch-with-stat_--summary_side

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3


6
t/t4013/diff.show_--patch-with-stat_side

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.show_--stat_--summary_side

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side

dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3
$

6
t/t4013/diff.show_--stat_side

@ -5,8 +5,8 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,8 +5,8 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side

dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
$

6
t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_

@ -5,7 +5,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,7 +5,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -24,7 +24,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -24,7 +24,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -46,7 +46,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -46,7 +46,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub

16
t/t4013/diff.whatchanged_--patch-with-stat_master

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -47,8 +47,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -47,8 +47,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -79,9 +79,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -79,9 +79,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dir/sub b/dir/sub

6
t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_

@ -5,7 +5,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,7 +5,7 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -24,7 +24,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -24,7 +24,7 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -46,7 +46,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -46,7 +46,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
dir/sub | 2 ++
1 file changed, 2 insertions(+)

diff --git a/dir/sub b/dir/sub

26
t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master

@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000 @@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000

Merge branch 'side'

dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --cc dir/sub
@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

22
t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -48,8 +48,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -48,8 +48,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -81,9 +81,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -81,9 +81,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -123,9 +123,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -123,9 +123,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

22
t/t4013/diff.whatchanged_--root_--patch-with-stat_master

@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -5,9 +5,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -47,8 +47,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -47,8 +47,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)

diff --git a/dir/sub b/dir/sub
@ -79,9 +79,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -79,9 +79,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dir/sub b/dir/sub
@ -120,9 +120,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -120,9 +120,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)

diff --git a/dir/sub b/dir/sub

26
t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master

@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000 @@ -6,8 +6,8 @@ Date: Mon Jun 26 00:04:00 2006 +0000

Merge branch 'side'

dir/sub | 2 ++
file0 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
2 files changed, 5 insertions(+)

diff --combined dir/sub
@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000 @@ -44,9 +44,9 @@ Date: Mon Jun 26 00:03:00 2006 +0000

Side
---
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
dir/sub | 2 ++
file0 | 3 +++
file3 | 4 ++++
3 files changed, 9 insertions(+)
create mode 100644 file3

@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 @@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000

Third
---
dir/sub | 2 ++
file1 | 3 +++
dir/sub | 2 ++
file1 | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 file1

@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000 @@ -120,9 +120,9 @@ Date: Mon Jun 26 00:01:00 2006 +0000
This is the second commit.
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 ---
3 files changed, 5 insertions(+), 3 deletions(-)
delete mode 100644 file2

@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 @@ -162,9 +162,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000

Initial
---
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
dir/sub | 2 ++
file0 | 3 +++
file2 | 3 +++
3 files changed, 8 insertions(+)
create mode 100644 dir/sub
create mode 100644 file0

14
t/t4016-diff-quote.sh

@ -73,13 +73,13 @@ test_expect_success TABS_IN_FILENAMES 'git diff --numstat -M HEAD' ' @@ -73,13 +73,13 @@ test_expect_success TABS_IN_FILENAMES 'git diff --numstat -M HEAD' '

test_expect_success TABS_IN_FILENAMES 'git diff --stat -M HEAD' '
cat >expect <<-\EOF &&
pathname.1 => "Rpathname\twith HT.0" | 0
pathname.3 => "Rpathname\nwith LF.0" | 0
"pathname\twith HT.3" => "Rpathname\nwith LF.1" | 0
pathname.2 => Rpathname with SP.0 | 0
"pathname\twith HT.2" => Rpathname with SP.1 | 0
pathname.0 => Rpathname.0 | 0
"pathname\twith HT.0" => Rpathname.1 | 0
pathname.1 => "Rpathname\twith HT.0" | 0
pathname.3 => "Rpathname\nwith LF.0" | 0
"pathname\twith HT.3" => "Rpathname\nwith LF.1" | 0
pathname.2 => Rpathname with SP.0 | 0
"pathname\twith HT.2" => Rpathname with SP.1 | 0
pathname.0 => Rpathname.0 | 0
"pathname\twith HT.0" => Rpathname.1 | 0
7 files changed, 0 insertions(+), 0 deletions(-)
EOF
git diff --stat -M HEAD >actual &&

2
t/t4030-diff-textconv.sh

@ -85,7 +85,7 @@ test_expect_success 'status -v produces text' ' @@ -85,7 +85,7 @@ test_expect_success 'status -v produces text' '
'

cat >expect.stat <<'EOF'
file | Bin 2 -> 4 bytes
file | Bin 2 -> 4 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
EOF
test_expect_success 'diffstat does not run textconv' '

2
t/t4045-diff-relative.sh

@ -44,7 +44,7 @@ test_expect_success "--numstat $*" " @@ -44,7 +44,7 @@ test_expect_success "--numstat $*" "
check_stat() {
expect=$1; shift
cat >expected <<EOF
$expect | 1 +
$expect | 1 +
1 file changed, 1 insertion(+)
EOF
test_expect_success "--stat $*" "

4
t/t4049-diff-stat-count.sh

@ -14,8 +14,8 @@ test_expect_success setup ' @@ -14,8 +14,8 @@ test_expect_success setup '
echo a >a &&
echo b >b &&
cat >expect <<-\EOF
a | 1 +
b | 1 +
a | 1 +
b | 1 +
2 files changed, 2 insertions(+)
EOF
git diff --stat --stat-count=2 >actual &&

6
t/t4052-stat-output.sh

@ -22,7 +22,7 @@ test_expect_success 'preparation' ' @@ -22,7 +22,7 @@ test_expect_success 'preparation' '
while read cmd args
do
cat >expect <<-'EOF'
...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
EOF
test_expect_success "$cmd: small change with long name gives more space to the name" '
git $cmd $args >output &&
@ -31,7 +31,7 @@ do @@ -31,7 +31,7 @@ do
'

cat >expect <<-'EOF'
...aaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
...aaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
EOF
test_expect_success "$cmd --stat=width: a long name is given more room when the bar is short" '
git $cmd $args --stat=40 >output &&
@ -46,7 +46,7 @@ do @@ -46,7 +46,7 @@ do
'

cat >expect <<-'EOF'
...aaaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
...aaaaaaaaaaaaaaaaaaaaaaaaaaa | 1 +
EOF
test_expect_success "$cmd --stat=...,name-width with long name" '
git $cmd $args --stat=60,30 >output &&

30
t/t4202-log.sh

@ -528,7 +528,7 @@ cat >expect <<\EOF @@ -528,7 +528,7 @@ cat >expect <<\EOF
| |
| | reach
| | ---
| | reach.t | 1 +
| | reach.t | 1 +
| | 1 file changed, 1 insertion(+)
| |
| | diff --git a/reach.t b/reach.t
@ -551,7 +551,7 @@ cat >expect <<\EOF @@ -551,7 +551,7 @@ cat >expect <<\EOF
| | |
| | | octopus-b
| | | ---
| | | octopus-b.t | 1 +
| | | octopus-b.t | 1 +
| | | 1 file changed, 1 insertion(+)
| | |
| | | diff --git a/octopus-b.t b/octopus-b.t
@ -567,7 +567,7 @@ cat >expect <<\EOF @@ -567,7 +567,7 @@ cat >expect <<\EOF
| |
| | octopus-a
| | ---
| | octopus-a.t | 1 +
| | octopus-a.t | 1 +
| | 1 file changed, 1 insertion(+)
| |
| | diff --git a/octopus-a.t b/octopus-a.t
@ -583,7 +583,7 @@ cat >expect <<\EOF @@ -583,7 +583,7 @@ cat >expect <<\EOF
|
| seventh
| ---
| seventh.t | 1 +
| seventh.t | 1 +
| 1 file changed, 1 insertion(+)
|
| diff --git a/seventh.t b/seventh.t
@ -617,7 +617,7 @@ cat >expect <<\EOF @@ -617,7 +617,7 @@ cat >expect <<\EOF
| | | |
| | | | tangle-a
| | | | ---
| | | | tangle-a | 1 +
| | | | tangle-a | 1 +
| | | | 1 file changed, 1 insertion(+)
| | | |
| | | | diff --git a/tangle-a b/tangle-a
@ -639,7 +639,7 @@ cat >expect <<\EOF @@ -639,7 +639,7 @@ cat >expect <<\EOF
| |/| |
| | | | side-2
| | | | ---
| | | | 2 | 1 +
| | | | 2 | 1 +
| | | | 1 file changed, 1 insertion(+)
| | | |
| | | | diff --git a/2 b/2
@ -655,7 +655,7 @@ cat >expect <<\EOF @@ -655,7 +655,7 @@ cat >expect <<\EOF
| | | |
| | | | side-1
| | | | ---
| | | | 1 | 1 +
| | | | 1 | 1 +
| | | | 1 file changed, 1 insertion(+)
| | | |
| | | | diff --git a/1 b/1
@ -671,7 +671,7 @@ cat >expect <<\EOF @@ -671,7 +671,7 @@ cat >expect <<\EOF
| | | |
| | | | Second
| | | | ---
| | | | one | 1 +
| | | | one | 1 +
| | | | 1 file changed, 1 insertion(+)
| | | |
| | | | diff --git a/one b/one
@ -687,7 +687,7 @@ cat >expect <<\EOF @@ -687,7 +687,7 @@ cat >expect <<\EOF
|/| |
| | | sixth
| | | ---
| | | a/two | 1 -
| | | a/two | 1 -
| | | 1 file changed, 1 deletion(-)
| | |
| | | diff --git a/a/two b/a/two
@ -703,7 +703,7 @@ cat >expect <<\EOF @@ -703,7 +703,7 @@ cat >expect <<\EOF
| | |
| | | fifth
| | | ---
| | | a/two | 1 +
| | | a/two | 1 +
| | | 1 file changed, 1 insertion(+)
| | |
| | | diff --git a/a/two b/a/two
@ -719,7 +719,7 @@ cat >expect <<\EOF @@ -719,7 +719,7 @@ cat >expect <<\EOF
| |
| | fourth
| | ---
| | ein | 1 +
| | ein | 1 +
| | 1 file changed, 1 insertion(+)
| |
| | diff --git a/ein b/ein
@ -735,8 +735,8 @@ cat >expect <<\EOF @@ -735,8 +735,8 @@ cat >expect <<\EOF
|
| third
| ---
| ichi | 1 +
| one | 1 -
| ichi | 1 +
| one | 1 -
| 2 files changed, 1 insertion(+), 1 deletion(-)
|
| diff --git a/ichi b/ichi
@ -759,7 +759,7 @@ cat >expect <<\EOF @@ -759,7 +759,7 @@ cat >expect <<\EOF
|
| second
| ---
| one | 2 +-
| one | 2 +-
| 1 file changed, 1 insertion(+), 1 deletion(-)
|
| diff --git a/one b/one
@ -775,7 +775,7 @@ cat >expect <<\EOF @@ -775,7 +775,7 @@ cat >expect <<\EOF

initial
---
one | 1 +
one | 1 +
1 file changed, 1 insertion(+)

diff --git a/one b/one

2
t/t5100/patch0001

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo

2
t/t5100/patch0002

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo

2
t/t5100/patch0003

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo

4
t/t5100/patch0005

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
---

Documentation/git-cvsimport-script.txt | 9 ++++++++-
git-cvsimport-script | 4 ++--
Documentation/git-cvsimport-script.txt | 9 ++++++++-
git-cvsimport-script | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)

50452f9c0c2df1f04d83a26266ba704b13861632

2
t/t5100/patch0006

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo

2
t/t5100/patch0010

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
builtin-mailinfo.c | 2 +-
builtin-mailinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c

2
t/t5100/patch0011

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
builtin-mailinfo.c | 4 ++--
builtin-mailinfo.c | 4 ++--

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 3e5fe51..aabfe5c 100644

2
t/t5100/patch0014

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c

2
t/t5100/patch0014--scissors

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
---
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c

18
t/t5100/sample.mbox

@ -12,7 +12,7 @@ Subject: [PATCH] a commit. @@ -12,7 +12,7 @@ Subject: [PATCH] a commit.
Here is a patch from A U Thor.

---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo
@ -52,7 +52,7 @@ two truly blank and another full of spaces in between. @@ -52,7 +52,7 @@ two truly blank and another full of spaces in between.
Hope this helps.

---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo
@ -83,7 +83,7 @@ Message-Id: <nitpicker.12121212@example.net> @@ -83,7 +83,7 @@ Message-Id: <nitpicker.12121212@example.net>
Hopefully this would fix the problem stated there.

---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo
@ -249,8 +249,8 @@ actual flags. @@ -249,8 +249,8 @@ actual flags.
Signed-off-by: David K=E5gedal <davidk@lysator.liu.se>
---

Documentation/git-cvsimport-script.txt | 9 ++++++++-
git-cvsimport-script | 4 ++--
Documentation/git-cvsimport-script.txt | 9 ++++++++-
git-cvsimport-script | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)

50452f9c0c2df1f04d83a26266ba704b13861632
@ -379,7 +379,7 @@ Subject: [PATCH] a commit. @@ -379,7 +379,7 @@ Subject: [PATCH] a commit.
Here is a patch from A U Thor.

---
foo | 2 +-
foo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/foo b/foo
@ -449,7 +449,7 @@ memcmp("Subject: ", header[i], 7) will never match. @@ -449,7 +449,7 @@ memcmp("Subject: ", header[i], 7) will never match.
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
builtin-mailinfo.c | 2 +-
builtin-mailinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
@ -482,7 +482,7 @@ Content-Transfer-Encoding: quoted-printable @@ -482,7 +482,7 @@ Content-Transfer-Encoding: quoted-printable
Here comes a commit log message, and
its second line is here.
---
builtin-mailinfo.c | 4 ++--
builtin-mailinfo.c | 4 ++--

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 3e5fe51..aabfe5c 100644
@ -587,7 +587,7 @@ everything before it in the message body. @@ -587,7 +587,7 @@ everything before it in the message body.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
builtin-mailinfo.c | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c

12
t/t7602-merge-octopus-many.sh

@ -54,9 +54,9 @@ Trying simple merge with c2 @@ -54,9 +54,9 @@ Trying simple merge with c2
Trying simple merge with c3
Trying simple merge with c4
Merge made by the 'octopus' strategy.
c2.c | 1 +
c3.c | 1 +
c4.c | 1 +
c2.c | 1 +
c3.c | 1 +
c4.c | 1 +
3 files changed, 3 insertions(+)
create mode 100644 c2.c
create mode 100644 c3.c
@ -71,7 +71,7 @@ test_expect_success 'merge output uses pretty names' ' @@ -71,7 +71,7 @@ test_expect_success 'merge output uses pretty names' '

cat >expected <<\EOF
Merge made by the 'recursive' strategy.
c5.c | 1 +
c5.c | 1 +
1 file changed, 1 insertion(+)
create mode 100644 c5.c
EOF
@ -85,8 +85,8 @@ cat >expected <<\EOF @@ -85,8 +85,8 @@ cat >expected <<\EOF
Fast-forwarding to: c1
Trying simple merge with c2
Merge made by the 'octopus' strategy.
c1.c | 1 +
c2.c | 1 +
c1.c | 1 +
c2.c | 1 +
2 files changed, 2 insertions(+)
create mode 100644 c1.c
create mode 100644 c2.c

Loading…
Cancel
Save