diff options
author | Adam Spiers <git@adamspiers.org> | 2013-01-06 16:58:06 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-06 14:26:37 -0800 |
commit | 52ed1894b04e7664feaee85c0f14360b415a755c (patch) | |
tree | d5ace7ee667c3ff31096205e3d9ea4afedbc5acb /dir.h | |
parent | 270be8160493eb25ee43eb7db8dda2504343dc65 (diff) | |
download | git-52ed1894b04e7664feaee85c0f14360b415a755c.tar.gz |
dir.c: improve docs for match_pathspec() and match_pathspec_depth()
Fix a grammatical issue in the description of these functions, and
make it more obvious how and why seen[] can be reused across multiple
invocations.
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r-- | dir.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -116,6 +116,12 @@ struct dir_struct { char basebuf[PATH_MAX]; }; +/* + * The ordering of these constants is significant, with + * higher-numbered match types signifying "closer" (i.e. more + * specific) matches which will override lower-numbered match types + * when populating the seen[] array. + */ #define MATCHED_RECURSIVELY 1 #define MATCHED_FNMATCH 2 #define MATCHED_EXACTLY 3 |