diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-29 11:01:07 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-29 11:28:30 +0400 |
commit | d410e43b35a8044472606a7e7018aa64d96a5f0f (patch) | |
tree | ac3fd4d01d26be1a6b2436ed2ab276ea0b52397b /t/t4013-diff-various.sh | |
parent | 47979d5d5bb86d058dce77801648734abe1e593b (diff) |
t4013: add format-patch tests.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t4013-diff-various.sh')
-rwxr-xr-x | t/t4013-diff-various.sh | 10 |
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 |