diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-05-23 13:35:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-23 13:35:12 -0700 |
commit | c0f31b83a63f8b3aef0ec28225a50b6bae542d68 (patch) | |
tree | a4bbc20e12bc040995137beec4f4f1b53ddc763d /t | |
parent | 4809ff858b78c94ada8bd8a61a89ae8d39eda193 (diff) | |
parent | 176a33542eddc6e319bfef4ca726813ce0b9af55 (diff) | |
download | git-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-x | t/t4053-diff-no-index.sh | 19 |
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 |