]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: add commentary explaining match_pathspec_item's return value
authorElijah Newren <newren@gmail.com>
Tue, 17 Sep 2019 16:34:59 +0000 (09:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2019 19:20:35 +0000 (12:20 -0700)
commit29b577b96082d87b7237fdc57bf95cfe0914c53d
tree7451b9ce3536f96a8b3cf6c74db45cebfebcf707
parent89a1f4aaf7650288b976c6022b2c5854950d52c6
dir: add commentary explaining match_pathspec_item's return value

The way match_pathspec_item() handles names and pathspecs with trailing
slash characters, in conjunction with special options like
DO_MATCH_DIRECTORY and DO_MATCH_LEADING_PATHSPEC were non-obvious, and
broken until this patch series.  Add a table in a comment explaining the
intent of how these work.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c