aboutsummaryrefslogtreecommitdiff
path: root/t/t4013-diff-various.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t4013-diff-various.sh')
-rwxr-xr-xt/t4013-diff-various.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh
index 22984e3db..f4f3c3a56 100755
--- a/t/t4013-diff-various.sh
+++ b/t/t4013-diff-various.sh
@@ -85,6 +85,7 @@ test_expect_success setup '
+*+ [initial] Initial
EOF
+V=`git version | sed -e 's/^git version //'`
while read cmd
do
case "$cmd" in
@@ -99,7 +100,7 @@ do
test_expect_success "git $cmd" '
{
echo "\$ git $cmd"
- git $cmd
+ git $cmd | sed -e "s/$V/g-i-t--v-e-r-s-i-o-n/"
echo "\$"
} >"$actual" &&
if test -f "$expect"
@@ -219,6 +220,13 @@ show --patch-with-stat side
show --patch-with-raw side
show --patch-with-stat --summary side
+format-patch --stdout initial..side
+format-patch --stdout initial..master^
+format-patch --stdout initial..master
+format-patch --attach --stdout initial..side
+format-patch --attach --stdout initial..master^
+format-patch --attach --stdout initial..master
+
EOF
test_done