summaryrefslogtreecommitdiff
path: root/t/t4013-diff-various.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-29 00:01:07 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-29 00:28:30 -0700
commitd410e43b35a8044472606a7e7018aa64d96a5f0f (patch)
treeac3fd4d01d26be1a6b2436ed2ab276ea0b52397b /t/t4013-diff-various.sh
parent47979d5d5bb86d058dce77801648734abe1e593b (diff)
downloadgit-d410e43b35a8044472606a7e7018aa64d96a5f0f.tar.gz
t4013: add format-patch tests.
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 22984e3db7..f4f3c3a56d 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