Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4012: use test_cmp instead of cmp
author
Jeff King
<peff@peff.net>
Sun, 5 Oct 2008 21:42:35 +0000
(17:42 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 18 Oct 2008 14:20:36 +0000
(07:20 -0700)
This makes erroneous output slightly easier to see. We also
flip the argument order to match our usual style.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
t/t4012-diff-binary.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f4a75a4
)
diff --git
a/t/t4012-diff-binary.sh
b/t/t4012-diff-binary.sh
index 421f4bba3fbc666cf2ab7ec4289f10d29d61eebb..3cf5b5c4ea05d861d75aa146a52d7d273dcaa4cb 100755
(executable)
--- a/
t/t4012-diff-binary.sh
+++ b/
t/t4012-diff-binary.sh
@@
-25,11
+25,11
@@
cat > expected <<\EOF
EOF
test_expect_success 'diff without --binary' \
'git diff | git apply --stat --summary >current &&
-
cmp current expected
'
+
test_cmp expected current
'
test_expect_success 'diff with --binary' \
'git diff --binary | git apply --stat --summary >current &&
-
cmp current expected
'
+
test_cmp expected current
'
# apply needs to be able to skip the binary material correctly
# in order to report the line number of a corrupt patch.