From 52ed1894b04e7664feaee85c0f14360b415a755c Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sun, 6 Jan 2013 16:58:06 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- dir.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dir.h') diff --git a/dir.h b/dir.h index dd42a3a061..136e8383fb 100644 --- a/dir.h +++ b/dir.h @@ -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 -- cgit v1.2.1