Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4041 (diff-submodule-option): don't hardcode SHA-1 in expected outputs
author
Ramkumar Ramachandra
<artagnon@gmail.com>
Mon, 26 Nov 2012 13:54:28 +0000
(19:24 +0530)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 27 Nov 2012 17:47:42 +0000
(09:47 -0800)
The expected SHA-1 digests are always available in variables. Use
them instead of hardcoding.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4041-diff-submodule-option.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
77b598b
)
diff --git
a/t/t4041-diff-submodule-option.sh
b/t/t4041-diff-submodule-option.sh
index 57e8a9dacb789b5718e3345d1af90991b9f012c5..537763916f61c837377aaf6d937d20b7a939afd3 100755
(executable)
--- a/
t/t4041-diff-submodule-option.sh
+++ b/
t/t4041-diff-submodule-option.sh
@@
-62,7
+62,7
@@
test_expect_success '--submodule=short overrides diff.submodule' "
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
new file mode 160000
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
new file mode 160000
-index 0000000..
a2c4dab
+index 0000000..
$head1
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
@@
-77,7
+77,7
@@
test_expect_success 'diff.submodule does not affect plumbing' '
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
new file mode 160000
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
new file mode 160000
- index 0000000..
a2c4dab
+ index 0000000..
$head1
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
@@
-173,10
+173,10
@@
mv sm1-bak sm1
test_expect_success 'typechanged submodule(submodule->blob), --cached' "
git diff --submodule=log --cached >actual &&
cat >expected <<-EOF &&
test_expect_success 'typechanged submodule(submodule->blob), --cached' "
git diff --submodule=log --cached >actual &&
cat >expected <<-EOF &&
-Submodule sm1
41fbea9
...0000000 (submodule deleted)
+Submodule sm1
$head4
...0000000 (submodule deleted)
diff --git a/sm1 b/sm1
new file mode 100644
diff --git a/sm1 b/sm1
new file mode 100644
-index 0000000..
9da5fb8
+index 0000000..
$head5
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
--- /dev/null
+++ b/sm1
@@ -0,0 +1 @@
@@
-190,7
+190,7
@@
test_expect_success 'typechanged submodule(submodule->blob)' "
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
deleted file mode 100644
cat >expected <<-EOF &&
diff --git a/sm1 b/sm1
deleted file mode 100644
-index
9da5fb8
..0000000
+index
$head5
..0000000
--- a/sm1
+++ /dev/null
@@ -1 +0,0 @@
--- a/sm1
+++ /dev/null
@@ -1 +0,0 @@