glob_match() does not support double-star (**) recursive glob patterns #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The
glob_match()function insrc/shared/utils.csupports basic wildcard patterns (*matches within a single path component,?matches a single character), but does NOT support**(double-star) for recursive directory matching. rsync and most modern file sync tools support**for matching across directory boundaries.For example, the pattern
src/**/*.cshould matchsrc/main.c,src/sub/file.c,src/a/b/c/file.c, etc., butglob_match()currently treats**the same as*because it processes each*character individually.Location
src/shared/utils.c:59-82Suggested Fix
Add support for
**by detecting two consecutive*characters and treating them as a recursive wildcard that matches across/boundaries:Severity
Low
Category
Enhancement