-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
t4013: add more tests around -c and --cc
Signed-off-by: Junio C Hamano <junkio@cox.net>
- Loading branch information
Junio C Hamano
committed
Jun 27, 2006
1 parent
3c2f75b
commit 47979d5
Showing
18 changed files
with
1,263 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$ git diff-tree --cc --patch-with-stat --summary master | ||
176b998f5d647cbd77a9d8acf4531e930754d16d | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
2 files changed, 5 insertions(+), 0 deletions(-) | ||
|
||
|
||
diff --cc dir/sub | ||
index cead32e,7289e35..992913c | ||
--- a/dir/sub | ||
+++ b/dir/sub | ||
@@@ -1,6 -1,4 +1,8 @@@ | ||
A | ||
B | ||
+C | ||
+D | ||
+E | ||
+F | ||
+ 1 | ||
+ 2 | ||
diff --cc file0 | ||
index b414108,f4615da..10a8a9f | ||
--- a/file0 | ||
+++ b/file0 | ||
@@@ -1,6 -1,6 +1,9 @@@ | ||
1 | ||
2 | ||
3 | ||
+4 | ||
+5 | ||
+6 | ||
+ A | ||
+ B | ||
+ C | ||
$ |
39 changes: 39 additions & 0 deletions
39
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$ git diff-tree --cc --patch-with-stat --summary side | ||
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
file3 | 4 ++++ | ||
3 files changed, 9 insertions(+), 0 deletions(-) | ||
create mode 100644 file3 | ||
|
||
diff --git a/dir/sub b/dir/sub | ||
index 35d242b..7289e35 100644 | ||
--- a/dir/sub | ||
+++ b/dir/sub | ||
@@ -1,2 +1,4 @@ | ||
A | ||
B | ||
+1 | ||
+2 | ||
diff --git a/file0 b/file0 | ||
index 01e79c3..f4615da 100644 | ||
--- a/file0 | ||
+++ b/file0 | ||
@@ -1,3 +1,6 @@ | ||
1 | ||
2 | ||
3 | ||
+A | ||
+B | ||
+C | ||
diff --git a/file3 b/file3 | ||
new file mode 100644 | ||
index 0000000..7289e35 | ||
--- /dev/null | ||
+++ b/file3 | ||
@@ -0,0 +1,4 @@ | ||
+A | ||
+B | ||
+1 | ||
+2 | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$ git diff-tree --cc --stat --summary master | ||
176b998f5d647cbd77a9d8acf4531e930754d16d | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
2 files changed, 5 insertions(+), 0 deletions(-) | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$ git diff-tree --cc --stat --summary side | ||
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
file3 | 4 ++++ | ||
3 files changed, 9 insertions(+), 0 deletions(-) | ||
create mode 100644 file3 | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$ git diff-tree --cc --stat master | ||
176b998f5d647cbd77a9d8acf4531e930754d16d | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
2 files changed, 5 insertions(+), 0 deletions(-) | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$ git diff-tree -c --stat --summary master | ||
176b998f5d647cbd77a9d8acf4531e930754d16d | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
2 files changed, 5 insertions(+), 0 deletions(-) | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$ git diff-tree -c --stat --summary side | ||
c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
file3 | 4 ++++ | ||
3 files changed, 9 insertions(+), 0 deletions(-) | ||
create mode 100644 file3 | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$ git diff-tree -c --stat master | ||
176b998f5d647cbd77a9d8acf4531e930754d16d | ||
dir/sub | 2 ++ | ||
file0 | 3 +++ | ||
2 files changed, 5 insertions(+), 0 deletions(-) | ||
$ |
72 changes: 72 additions & 0 deletions
72
t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
$ git log --patch-with-stat --summary master -- dir/ | ||
commit 176b998f5d647cbd77a9d8acf4531e930754d16d | ||
Merge: 889b315... c7a2ab9... | ||
Author: A U Thor <author@example.com> | ||
Date: Mon Jun 26 00:04:00 2006 +0000 | ||
|
||
Merge branch 'side' | ||
|
||
commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a | ||
Author: A U Thor <author@example.com> | ||
Date: Mon Jun 26 00:03:00 2006 +0000 | ||
|
||
Side | ||
--- | ||
dir/sub | 2 ++ | ||
1 files changed, 2 insertions(+), 0 deletions(-) | ||
|
||
diff --git a/dir/sub b/dir/sub | ||
index 35d242b..7289e35 100644 | ||
--- a/dir/sub | ||
+++ b/dir/sub | ||
@@ -1,2 +1,4 @@ | ||
A | ||
B | ||
+1 | ||
+2 | ||
|
||
commit 889b315013ef9f2e2f90aa0b054b267c8a557847 | ||
Author: A U Thor <author@example.com> | ||
Date: Mon Jun 26 00:02:00 2006 +0000 | ||
|
||
Third | ||
--- | ||
dir/sub | 2 ++ | ||
1 files changed, 2 insertions(+), 0 deletions(-) | ||
|
||
diff --git a/dir/sub b/dir/sub | ||
index 8422d40..cead32e 100644 | ||
--- a/dir/sub | ||
+++ b/dir/sub | ||
@@ -2,3 +2,5 @@ A | ||
B | ||
C | ||
D | ||
+E | ||
+F | ||
|
||
commit 7952a93e09bf565b5592766a438b40cd81f4846f | ||
Author: A U Thor <author@example.com> | ||
Date: Mon Jun 26 00:01:00 2006 +0000 | ||
|
||
Second | ||
--- | ||
dir/sub | 2 ++ | ||
1 files changed, 2 insertions(+), 0 deletions(-) | ||
|
||
diff --git a/dir/sub b/dir/sub | ||
index 35d242b..8422d40 100644 | ||
--- a/dir/sub | ||
+++ b/dir/sub | ||
@@ -1,2 +1,4 @@ | ||
A | ||
B | ||
+C | ||
+D | ||
|
||
commit 444ac553ac7612cc88969031b02b3767fb8a353a | ||
Author: A U Thor <author@example.com> | ||
Date: Mon Jun 26 00:00:00 2006 +0000 | ||
|
||
Initial | ||
$ |
Oops, something went wrong.