aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-05-23 13:35:12 -0700
committerJunio C Hamano <gitster@pobox.com>2012-05-23 13:35:12 -0700
commitc0f31b83a63f8b3aef0ec28225a50b6bae542d68 (patch)
treea4bbc20e12bc040995137beec4f4f1b53ddc763d /t
parent4809ff858b78c94ada8bd8a61a89ae8d39eda193 (diff)
parent176a33542eddc6e319bfef4ca726813ce0b9af55 (diff)
downloadgit-c0f31b83a63f8b3aef0ec28225a50b6bae542d68.tar.gz
git-c0f31b83a63f8b3aef0ec28225a50b6bae542d68.tar.xz
Merge branch 'bp/diff-no-index-strbuf-fix'
Fix regressions to "git diff --no-index" when it recurses down. By Bobby Powers * bp/diff-no-index-strbuf-fix: diff --no-index: don't leak buffers in queue_diff diff --no-index: reset temporary buffer lengths on directory iteration
Diffstat (limited to 't')
-rwxr-xr-xt/t4053-diff-no-index.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/t4053-diff-no-index.sh b/t/t4053-diff-no-index.sh
new file mode 100755
index 000000000..4dc8c67ed
--- /dev/null
+++ b/t/t4053-diff-no-index.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+test_description='diff --no-index'
+
+. ./test-lib.sh
+
+test_expect_success 'setup' '
+ mkdir a &&
+ mkdir b &&
+ echo 1 >a/1 &&
+ echo 2 >a/2
+'
+
+test_expect_success 'git diff --no-index directories' '
+ git diff --no-index a b >cnt
+ test $? = 1 && test_line_count = 14 cnt
+'
+
+test_done