summaryrefslogtreecommitdiff
path: root/t/t4030-diff-textconv.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-26 04:50:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-26 21:09:48 (GMT)
commita79b8b6623288f7d5409ad749cc6553976a4f0e8 (patch)
treee832f50094e91ae29c39a9178a34667a87fe92c5 /t/t4030-diff-textconv.sh
parent4f672ad6c77bfe73cc5dd4b240fd42303d101d2a (diff)
downloadgit-a79b8b6623288f7d5409ad749cc6553976a4f0e8.zip
git-a79b8b6623288f7d5409ad749cc6553976a4f0e8.tar.gz
git-a79b8b6623288f7d5409ad749cc6553976a4f0e8.tar.bz2
enable textconv for diff in verbose status/commit
This diff is meant for human consumption, so it makes sense to apply text conversion here, as we would for the regular diff porcelain. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4030-diff-textconv.sh')
-rwxr-xr-xt/t4030-diff-textconv.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff-textconv.sh
index 3945731..09967f5 100755
--- a/t/t4030-diff-textconv.sh
+++ b/t/t4030-diff-textconv.sh
@@ -76,6 +76,14 @@ test_expect_success 'format-patch produces binary' '
test_cmp expect.binary actual
'
+test_expect_success 'status -v produces text' '
+ git reset --soft HEAD^ &&
+ git status -v >diff &&
+ find_diff <diff >actual &&
+ test_cmp expect.text actual &&
+ git reset --soft HEAD@{1}
+'
+
cat >expect.stat <<'EOF'
file | Bin 2 -> 4 bytes
1 files changed, 0 insertions(+), 0 deletions(-)