Browse Source

diff/log -G<pattern>: tests

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 14 years ago
parent
commit
bf1dfc3103
  1. 3
      t/t4013-diff-various.sh
  2. 27
      t/t4013/diff.log_-GF_-p_--pickaxe-all_master
  3. 18
      t/t4013/diff.log_-GF_-p_master
  4. 7
      t/t4013/diff.log_-GF_master

3
t/t4013-diff-various.sh

@ -210,6 +210,9 @@ log -m -p master @@ -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


27
t/t4013/diff.log_-GF_-p_--pickaxe-all_master

@ -0,0 +1,27 @@ @@ -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
t/t4013/diff.log_-GF_-p_master

@ -0,0 +1,18 @@ @@ -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
t/t4013/diff.log_-GF_master

@ -0,0 +1,7 @@ @@ -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
$
Loading…
Cancel
Save