]> git.ipfire.org Git - thirdparty/git.git/commit
dir: revert "dir: select directories correctly"
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 19 Nov 2021 14:13:49 +0000 (09:13 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Nov 2021 22:53:23 +0000 (14:53 -0800)
commit33c5d6c8456ecb1e89450483586f5f3f115ffa93
tree5706a3cdf0db7b5d86eb158b4b35a60792e306c8
parent5ceb663e926bd22248d1d72d70fa701c558587ea
dir: revert "dir: select directories correctly"

This reverts commit f6526728f950cacfd5b5e42bcc65f2c47f3da654.

The change in f652672 (dir: select directories correctly, 2021-09-24)
caused a regression in directory-based matches with non-cone-mode
patterns, especially for .gitignore patterns. A test is included to
prevent this regression in the future.

The commit ed495847 (dir: fix pattern matching on dirs, 2021-09-24) was
reverted in 5ceb663 (dir: fix directory-matching bug, 2021-11-02) for
similar reasons. Neither commit changed tests, and tests added later in
the series continue to pass when these commits are reverted.

Reported-by: Danial Alihosseini <danial.alihosseini@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
t/t0008-ignores.sh