Skip to content

Commit

Permalink
diff/log -G<pattern>: tests
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 31, 2010
1 parent f506b8e commit bf1dfc3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/t4013-diff-various.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ log -m -p master
log -SF master
log -S F master
log -SF -p master
log -GF master
log -GF -p master
log -GF -p --pickaxe-all master
log --decorate --all
log --decorate=full --all
Expand Down
27 changes: 27 additions & 0 deletions t/t4013/diff.log_-GF_-p_--pickaxe-all_master
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
$ git log -GF -p --pickaxe-all master
commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0
Author: A U Thor <author@example.com>
Date: Mon Jun 26 00:02:00 2006 +0000

Third

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
diff --git a/file1 b/file1
new file mode 100644
index 0000000..b1e6722
--- /dev/null
+++ b/file1
@@ -0,0 +1,3 @@
+A
+B
+C
$
18 changes: 18 additions & 0 deletions t/t4013/diff.log_-GF_-p_master
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$ git log -GF -p master
commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0
Author: A U Thor <author@example.com>
Date: Mon Jun 26 00:02:00 2006 +0000

Third

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
$
7 changes: 7 additions & 0 deletions t/t4013/diff.log_-GF_master
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ git log -GF master
commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0
Author: A U Thor <author@example.com>
Date: Mon Jun 26 00:02:00 2006 +0000

Third
$

0 comments on commit bf1dfc3

Please sign in to comment.