diff: show file creation/deletion and type change in diffstat
PATCH 1/1 diff: show file creation/deletion and type change in diffstat
A short string is appended after the path name in diffstat:
- "(new)" for new 0644 files - "(new +x)" for new 0755 files - "(new +l)" for new symlinks - "(gone)" for deleted files
- "(mode +x)" for files gaining executable permission
- "(mode -x)" for files losing executable permission
This shows most of the information from --summary, but in a more compact format. The only missing information is rewrite percentage. This makes --stat a replacement for --summary in most cases. In a diff where a lot of files are added/removed, not displaying --summary shortens the stat significantly (e.g. a pull)
Another good point is the information is now all in one line. The user does not have to match two lines from --stat and --summary of the same file anymore.
The summary piece is short enough that it will not eat too much into the diffstat estate.
---
A resurrection of [1] but without colors.
[1] http://thread.gmane.org/gmane.comp.version-control.git/207749
diff.c | 44 ++++++++++++++++++++-- t/t3404-rebase-interactive.sh | 2 +- t/t3406-rebase-message.sh | 4 +- t/t4012-diff-binary.sh | 4 +- ...diff-tree_--cc_--patch-with-stat_--summary_side | 6 +-- t/t4013/diff.diff-tree_--cc_--stat_--summary_side | 6 +-- ...pretty=oneline_--root_--patch-with-stat_initial | 6 +-- .../diff.diff-tree_--pretty_--patch-with-stat_side | 6 +-- ...-tree_--pretty_--root_--patch-with-stat_initial | 6 +-- ...f-tree_--pretty_--root_--stat_--summary_initial | 6 +-- .../diff.diff-tree_--pretty_--root_--stat_initial | 6 +-- ...diff.diff-tree_--root_--patch-with-stat_initial | 6 +-- t/t4013/diff.diff-tree_-c_--stat_--summary_side | 6 +-- .../diff.diff_--patch-with-stat_-r_initial..side | 6 +-- t/t4013/diff.diff_--patch-with-stat_initial..side | 6 +-- t/t4013/diff.diff_--stat_initial..side | 6 +-- t/t4013/diff.diff_-r_--stat_initial..side | 6 +-- ..._--attach_--stdout_--suffix=.diff_initial..side | 6 +-- ....format-patch_--attach_--stdout_initial..master | 16 ++++---- ...format-patch_--attach_--stdout_initial..master^ | 10 ++--- ...ff.format-patch_--attach_--stdout_initial..side | 6 +-- ...nline_--stdout_--numbered-files_initial..master | 16 ++++---- ...tdout_--subject-prefix=TESTCASE_initial..master | 16 ++++---- ....format-patch_--inline_--stdout_initial..master | 16 ++++---- ...format-patch_--inline_--stdout_initial..master^ | 10 ++--- ...ormat-patch_--inline_--stdout_initial..master^^ | 6 +-- ...ff.format-patch_--inline_--stdout_initial..side | 6 +-- ...tch_--stdout_--cover-letter_-n_initial..master^ | 18 ++++----- ...at-patch_--stdout_--no-numbered_initial..master | 16 ++++---- ...ormat-patch_--stdout_--numbered_initial..master | 16 ++++---- t/t4013/diff.format-patch_--stdout_initial..master | 16 ++++---- .../diff.format-patch_--stdout_initial..master^ | 10 ++--- t/t4013/diff.format-patch_--stdout_initial..side | 6 +-- t/t4013/diff.log_--patch-with-stat_master | 16 ++++---- ..._--root_--cc_--patch-with-stat_--summary_master | 22 +++++------ ...f.log_--root_--patch-with-stat_--summary_master | 22 +++++------ t/t4013/diff.log_--root_--patch-with-stat_master | 22 +++++------ ...og_--root_-c_--patch-with-stat_--summary_master | 22 +++++------ t/t4013/diff.show_--patch-with-stat_--summary_side | 6 +-- t/t4013/diff.show_--patch-with-stat_side | 6 +-- t/t4013/diff.show_--stat_--summary_side | 6 +-- t/t4013/diff.show_--stat_side | 6 +-- t/t4013/diff.whatchanged_--patch-with-stat_master | 16 ++++---- ..._--root_--cc_--patch-with-stat_--summary_master | 22 +++++------ ...anged_--root_--patch-with-stat_--summary_master | 22 +++++------ ...iff.whatchanged_--root_--patch-with-stat_master | 22 +++++------ ...ed_--root_-c_--patch-with-stat_--summary_master | 22 +++++------ t/t4045-diff-relative.sh | 2 +- t/t4049-diff-stat-count.sh | 4 +- t/t4052-stat-output.sh | 18 ++++----- t/t4202-log.sh | 28 +++++++------- t/t7602-merge-octopus-many.sh | 12 +++--- 52 files changed, 327 insertions(+), 291 deletions(-)
diff.c +40 -4
@@ -1250,7 +1250,8 @@ static void fn_out_consume(void *priv, char *line, unsigned long len) } } -static char *pprint_rename (const char *a,const char *b) +static char *pprint_rename (const char *a,const char *b, +const char *summary_word) {const char *old = a;const char *new = b;
@@ -1266,6 +1267,8 @@ static char *pprint_rename(const char *a, const char *b)quote_c_style (a, &name,NULL ,0 );strbuf_addstr (&name," => " );quote_c_style (b, &name,NULL ,0 ); +if (summary_word) +strbuf_addf (&name," (%s)" , summary_word);return strbuf_detach (&name,NULL ); }
@@ -1314,6 +1317,8 @@ static char *pprint_rename(const char *a, const char *b)strbuf_addch (&name,'}' );strbuf_add (&name, a + len_a - sfx_length, sfx_length); } +if (summary_word) +strbuf_addf (&name," (%s)" , summary_word);return strbuf_detach (&name,NULL ); }
@@ -1324,6 +1329,7 @@ struct diffstat_t {char *from_name;char *name;char *print_name; +char *summary_word; unsigned is_unmerged:1; unsigned is_binary:1; unsigned is_renamed:1;
@@ -1407,14 +1413,17 @@ static void fill_print_name(struct diffstat_file *file)if (!file->is_renamed) {struct strbuf buf =STRBUF_INIT ; -if (quote_c_style (file->name, &buf,NULL ,0 )) { +if (quote_c_style (file->name, &buf,NULL ,0 ) || + file->summary_word) { +strbuf_addf (&buf," (%s)" , file->summary_word); pname =strbuf_detach (&buf,NULL ); }else { pname = file->name;strbuf_release (&buf); } }else { - pname =pprint_rename (file->from_name, file->name); + pname =pprint_rename (file->from_name, file->name, + file->summary_word); } file->print_name = pname; }
@@ -2424,6 +2433,32 @@ static void builtin_diff(const char *name_a,return ; } +static char *get_summary_word (const struct diff_filepair *p,int is_renamed) +{ +if (!is_renamed) { +if (p->status ==DIFF_STATUS_ADDED ) { +if (S_ISLNK (p->two->mode)) +return "new +l" ; +else if ((p->two->mode &0777 ) ==0755 ) +return "new +x" ; +else +return "new" ; + }else if (p->status ==DIFF_STATUS_DELETED ) +return "gone" ; + } +if (S_ISLNK (p->one->mode) && !S_ISLNK (p->two->mode)) +return "mode -l" ; +else if (!S_ISLNK (p->one->mode) &&S_ISLNK (p->two->mode)) +return "mode +l" ; +else if ((p->one->mode &0777 ) ==0644 && + (p->two->mode &0777 ) ==0755 ) +return "mode +x" ; +else if ((p->one->mode &0777 ) ==0755 && + (p->two->mode &0777 ) ==0644 ) +return "mode -x" ; +return NULL ; +} + static void builtin_diffstat(const char *name_a, const char *name_b, struct diff_filespec *one, struct diff_filespec *two,
@@ -2443,6 +2478,7 @@ static void builtin_diffstat(const char *name_a, const char *name_b, data =diffstat_add (diffstat, name_a, name_b); data->is_interesting = p->status !=DIFF_STATUS_UNKNOWN ; + data->summary_word =get_summary_word (p, data->is_renamed);if (!one || !two) { data->is_unmerged =1 ;
@@ -4165,7 +4201,7 @@ static void show_mode_change(FILE *file, struct diff_filepair *p, int show_name,static void show_rename_copy (FILE *file,const char *renamecopy,struct diff_filepair *p,const char *line_prefix) { -char *names =pprint_rename (p->one->path, p->two->path); +char *names =pprint_rename (p->one->path, p->two->path,NULL );fprintf (file," %s %s (%d%%)\n" , renamecopy, names,similarity_index (p));free (names);
t/t3404-rebase-interactive.sh +1 -1
@@ -329,7 +329,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' '
t/t3406-rebase-message.sh +2 -2
@@ -45,14 +45,14 @@ test_expect_success 'rebase -m' ' test_expect_success 'rebase --stat' ' git reset --hard start && git rebase --stat master >diffstat.txt && - grep "^ fileX | *1 +$" diffstat.txt + grep "^ fileX (new) | *1 +$" diffstat.txt ' test_expect_success 'rebase w/config rebase.stat' ' git reset --hard start && git config rebase.stat true && git rebase master >diffstat.txt && - grep "^ fileX | *1 +$" diffstat.txt + grep "^ fileX (new) | *1 +$" diffstat.txt ' test_expect_success 'rebase -n overrides config rebase.stat config' '
t/t4012-diff-binary.sh +2 -2
@@ -114,8 +114,8 @@ test_expect_success 'diff --no-index with binary creation' ' ' cat >expect <<EOF - binfile | Bin 0 -> 1026 bytes - textfile | 10000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + binfile (new) | Bin 0 -> 1026 bytes + textfile (new) | 10000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ EOF test_expect_success 'diff --stat with binary files and big change count' '
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.diff-tree_--cc_--stat_--summary_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3 $
t/t4013/diff.diff-tree_--pretty=oneline_--root_--patch-with-stat_initial +3 -3
@@ -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 (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff-tree_--pretty_--patch-with-stat_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff-tree_--pretty_--root_--patch-with-stat_initial +3 -3
@@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff-tree_--pretty_--root_--stat_--summary_initial +3 -3
@@ -5,9 +5,9 @@ Date: Mon Jun 26 00:00:00 2006 +0000 Initial - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.diff-tree_--pretty_--root_--stat_initial +3 -3
@@ -5,8 +5,8 @@ Date: Mon Jun 26 00:00:00 2006 +0000 Initial - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) $
t/t4013/diff.diff-tree_--root_--patch-with-stat_initial +3 -3
@@ -1,8 +1,8 @@ $ git diff-tree --root --patch-with-stat initial 444ac553ac7612cc88969031b02b3767fb8a353a - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff-tree_-c_--stat_--summary_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3 $
t/t4013/diff.diff_--patch-with-stat_-r_initial..side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff_--patch-with-stat_initial..side +3 -3
@@ -1,7 +1,7 @@ $ git diff --patch-with-stat initial..side - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ + dir/sub | 2 ++ + file0 | 3 +++ + file3 (new) | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.diff_--stat_initial..side +3 -3
@@ -1,6 +1,6 @@ $ git diff --stat initial..side - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ + dir/sub | 2 ++ + file0 | 3 +++ + file3 (new) | 4 ++++ 3 files changed, 9 insertions(+) $
t/t4013/diff.diff_-r_--stat_initial..side +3 -3
@@ -1,6 +1,6 @@ $ git diff -r --stat initial..side - dir/sub | 2 ++ - file0 | 3 +++ - file3 | 4 ++++ + dir/sub | 2 ++ + file0 | 3 +++ + file3 (new) | 4 ++++ 3 files changed, 9 insertions(+) $
t/t4013/diff.format-patch_--attach_--stdout_--suffix=.diff_initial..side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--attach_--stdout_initial..master +8 -8
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--attach_--stdout_initial..master^ +5 -5
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
t/t4013/diff.format-patch_--attach_--stdout_initial..side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master +8 -8
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master +8 -8
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--inline_--stdout_initial..master +8 -8
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--inline_--stdout_initial..master^ +5 -5
@@ -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 (gone) | 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 Content-Transfer-Encoding: 8bit --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ +3 -3
@@ -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 (gone) | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 file2
t/t4013/diff.format-patch_--inline_--stdout_initial..side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ +9 -9
@@ -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 (new) | 3 +++ + file2 (gone) | 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 This is the second commit. --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- + dir/sub | 2 ++ + file0 | 3 +++ + file2 (gone) | 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 Subject: [DIFFERENT_PREFIX 2/2] Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master +8 -8
@@ -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 (gone) | 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 Subject: [PATCH] Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--stdout_--numbered_initial..master +8 -8
@@ -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 (gone) | 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 Subject: [PATCH 2/3] Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--stdout_initial..master +8 -8
@@ -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 (gone) | 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 Subject: [PATCH 2/3] Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.format-patch_--stdout_initial..master^ +5 -5
@@ -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 (gone) | 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 Subject: [PATCH 2/2] Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
t/t4013/diff.format-patch_--stdout_initial..side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.log_--patch-with-stat_master +8 -8
@@ -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 (new) | 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 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 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 This is the second commit. --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- + dir/sub | 2 ++ + file0 | 3 +++ + file2 (gone) | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dir/sub b/dir/sub
t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.log_--root_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -55,8 +55,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.log_--root_--patch-with-stat_master +11 -11
@@ -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 (new) | 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 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 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 This is the second commit. --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- + dir/sub | 2 ++ + file0 | 3 +++ + file2 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.show_--patch-with-stat_--summary_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
t/t4013/diff.show_--patch-with-stat_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.show_--stat_--summary_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3 $
t/t4013/diff.show_--stat_side +3 -3
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) $
t/t4013/diff.whatchanged_--patch-with-stat_master +8 -8
@@ -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 (new) | 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 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 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 This is the second commit. --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- + dir/sub | 2 ++ + file0 | 3 +++ + file2 (gone) | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dir/sub b/dir/sub
t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -48,8 +48,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4013/diff.whatchanged_--root_--patch-with-stat_master +11 -11
@@ -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 (new) | 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 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 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 This is the second commit. --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 --- + dir/sub | 2 ++ + file0 | 3 +++ + file2 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dir/sub b/dir/sub
t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master +11 -11
@@ -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 (new) | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 file3
@@ -87,8 +87,8 @@ Date: Mon Jun 26 00:02:00 2006 +0000 Third --- - dir/sub | 2 ++ - file1 | 3 +++ + dir/sub | 2 ++ + file1 (new) | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 file1
@@ -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 (gone) | 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 Initial --- - dir/sub | 2 ++ - file0 | 3 +++ - file2 | 3 +++ + dir/sub (new) | 2 ++ + file0 (new) | 3 +++ + file2 (new) | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 dir/sub create mode 100644 file0
t/t4045-diff-relative.sh +1 -1
@@ -44,7 +44,7 @@ test_expect_success "--numstat $*" " check_stat() { expect=$1; shift cat >expected <<EOF - $expect | 1 + + $expect (new) | 1 + 1 file changed, 1 insertion(+) EOF test_expect_success "--stat $*" "
t/t4049-diff-stat-count.sh +2 -2
@@ -19,8 +19,8 @@ test_expect_success 'mode-only change show as a 0-line change' ' echo a >a && echo c >c && cat >expect <<-\EOF - a | 1 + - b | 0 + a | 1 + + b (mode +x) | 0 ... 4 files changed, 2 insertions(+) EOF
t/t4052-stat-output.sh +9 -9
@@ -223,10 +223,10 @@ test_expect_success 'preparation for long filename tests' ' ' cat >expect <<'EOF' - ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++ + ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 ++++++++++++ EOF cat >expect-graph <<'EOF' -| ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++ +| ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 ++++++++++++ EOF while read cmd args do
@@ -251,16 +251,16 @@ log -1 --stat EOF cat >expect80 <<'EOF' - ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++++++++++ + ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 ++++++++++++++++++++ EOF cat >expect80-graph <<'EOF' -| ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++++++++++ +| ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 ++++++++++++++++++++ EOF cat >expect200 <<'EOF' - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ EOF cat >expect200-graph <<'EOF' -| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ EOF while read verb expect cmd args do
@@ -285,10 +285,10 @@ respects expect200 log -1 --stat EOF cat >expect1 <<'EOF' - ...aaaaaaa | 1000 ++++++ + ...a (new) | 1000 ++++++ EOF cat >expect1-graph <<'EOF' -| ...aaaaaaa | 1000 ++++++ +| ...a (new) | 1000 ++++++ EOF while read verb expect cmd args do
@@ -325,7 +325,7 @@ test_expect_success 'merge --stat respects COLUMNS (big change)' ' ' cat >expect <<'EOF' - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++++++++++++++++ + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (new) | 1000 +++++++++++++++++++++++++++++++++ EOF test_expect_success 'merge --stat respects COLUMNS (long filename)' ' COLUMNS=100 git merge --stat --no-ff master >output &&
t/t4202-log.sh +14 -14
@@ -554,7 +554,7 @@ cat >expect <<\EOF | | | | reach | | --- -| | reach.t | 1 + +| | reach.t (new) | 1 + | | 1 file changed, 1 insertion(+) | | | | diff --git a/reach.t b/reach.t
@@ -577,7 +577,7 @@ cat >expect <<\EOF | | | | | | octopus-b | | | --- -| | | octopus-b.t | 1 + +| | | octopus-b.t (new) | 1 + | | | 1 file changed, 1 insertion(+) | | | | | | diff --git a/octopus-b.t b/octopus-b.t
@@ -593,7 +593,7 @@ cat >expect <<\EOF | | | | octopus-a | | --- -| | octopus-a.t | 1 + +| | octopus-a.t (new) | 1 + | | 1 file changed, 1 insertion(+) | | | | diff --git a/octopus-a.t b/octopus-a.t
@@ -609,7 +609,7 @@ cat >expect <<\EOF | | seventh | --- -| seventh.t | 1 + +| seventh.t (new) | 1 + | 1 file changed, 1 insertion(+) | | diff --git a/seventh.t b/seventh.t
@@ -643,7 +643,7 @@ cat >expect <<\EOF | | | | | | | | tangle-a | | | | --- -| | | | tangle-a | 1 + +| | | | tangle-a (new) | 1 + | | | | 1 file changed, 1 insertion(+) | | | | | | | | diff --git a/tangle-a b/tangle-a
@@ -665,7 +665,7 @@ cat >expect <<\EOF | |/| | | | | | side-2 | | | | --- -| | | | 2 | 1 + +| | | | 2 (new) | 1 + | | | | 1 file changed, 1 insertion(+) | | | | | | | | diff --git a/2 b/2
@@ -681,7 +681,7 @@ cat >expect <<\EOF | | | | | | | | side-1 | | | | --- -| | | | 1 | 1 + +| | | | 1 (new) | 1 + | | | | 1 file changed, 1 insertion(+) | | | | | | | | diff --git a/1 b/1
@@ -697,7 +697,7 @@ cat >expect <<\EOF | | | | | | | | Second | | | | --- -| | | | one | 1 + +| | | | one (new) | 1 + | | | | 1 file changed, 1 insertion(+) | | | | | | | | diff --git a/one b/one
@@ -713,7 +713,7 @@ cat >expect <<\EOF |/| | | | | sixth | | | --- -| | | a/two | 1 - +| | | a/two (gone) | 1 - | | | 1 file changed, 1 deletion(-) | | | | | | diff --git a/a/two b/a/two
@@ -729,7 +729,7 @@ cat >expect <<\EOF | | | | | | fifth | | | --- -| | | a/two | 1 + +| | | a/two (new) | 1 + | | | 1 file changed, 1 insertion(+) | | | | | | diff --git a/a/two b/a/two
@@ -745,7 +745,7 @@ cat >expect <<\EOF | | | | fourth | | --- -| | ein | 1 + +| | ein (new) | 1 + | | 1 file changed, 1 insertion(+) | | | | diff --git a/ein b/ein
@@ -761,8 +761,8 @@ cat >expect <<\EOF | | third | --- -| ichi | 1 + -| one | 1 - +| ichi (new) | 1 + +| one (gone) | 1 - | 2 files changed, 1 insertion(+), 1 deletion(-) | | diff --git a/ichi b/ichi
@@ -801,7 +801,7 @@ cat >expect <<\EOF initial --- - one | 1 + + one (new) | 1 + 1 file changed, 1 insertion(+) diff --git a/one b/one
t/t7602-merge-octopus-many.sh +6 -6
@@ -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 (new) | 1 + + c3.c (new) | 1 + + c4.c (new) | 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' ' cat >expected <<\EOF Merge made by the 'recursive' strategy. - c5.c | 1 + + c5.c (new) | 1 + 1 file changed, 1 insertion(+) create mode 100644 c5.c 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 (new) | 1 + + c2.c (new) | 1 + 2 files changed, 2 insertions(+) create mode 100644 c1.c create mode 100644 c2.c
Signature · 1 line
1.8.0.rc2.23.g1fb49df