My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38ee26b
)
t4045: make hash-size independent
author
brian m. carlson
<sandals@crustytoothpaste.net>
Mon, 28 Oct 2019 00:59:06 +0000
(
00:59
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 28 Oct 2019 02:34:58 +0000
(11:34 +0900)
Replace a hard-coded all-zeros object ID with a use of $ZERO_OID.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4045-diff-relative.sh
patch
|
blob
|
history
diff --git
a/t/t4045-diff-relative.sh
b/t/t4045-diff-relative.sh
index
36f8ed8
..
2588087
100755
(executable)
--- a/
t/t4045-diff-relative.sh
+++ b/
t/t4045-diff-relative.sh
@@
-70,7
+70,7
@@
check_raw () {
expect=$1
shift
cat >expected <<-EOF
- :000000 100644
0000000000000000000000000000000000000000 $blob A
$expect
+ :000000 100644
$ZERO_OID $blob A
$expect
EOF
test_expect_success "--raw $*" "
git -C '$dir' diff --no-abbrev --raw $* HEAD^ >actual &&