diff options
author | Russell Belfer <rb@github.com> | 2014-04-06 11:20:22 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-06 11:20:22 -0700 |
commit | c7d9606066d3a9b75a87c4ca5dd3420a66d0b54f (patch) | |
tree | 89421bd9bbe9abe2c99938ac5d68077ddcdac29d | |
parent | c8c91433a8c3c144273d4b362590ebc8761c0523 (diff) | |
download | libgit2-rb/starstar-fnmatch.tar.gz |
Fix fnmatch comment to be clearerrb/starstar-fnmatch
-rw-r--r-- | src/fnmatch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fnmatch.c b/src/fnmatch.c index 8e5424b75..3846bab3c 100644 --- a/src/fnmatch.c +++ b/src/fnmatch.c @@ -55,7 +55,9 @@ p_fnmatchx(const char *pattern, const char *string, int flags, size_t recurs) case '*': c = *pattern; - /* Apply '**' to overwrite PATHNAME match */ + /* Let '**' override PATHNAME match for this segment. + * It will be restored if/when we recurse below. + */ if (c == '*') { flags &= ~FNM_PATHNAME; while (c == '*') |