nd/wildmatch take 2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | gitignore: make pattern parsing code a separate functiondir.c dir.h | +50 | 0 replies | |
| 2/10 | attr: avoid strlen() on every matchattr.c | +4 | 0 replies | |
| 3/10 | attr: avoid searching for basename on every matchattr.c | +9 | 0 replies | |
| 4/10 | attr: more matching optimizations from .gitignoreDocumentation/ attr.c dir.c +1 more | +64 | 7 replies | |
| 5/10 | Import wildmatch from rsynct/ test-wildmatch.c wildmatch.c +1 more | +761 | 2 replies | |
| 6/10 | wildmatch: remove static variable force_lower_casewildmatch.c | +7 | 0 replies | |
| 7/10 | wildmatch: fix case-insensitive matchingwildmatch.c | +2 | 0 replies | |
| 8/10 | Integrate wildmatch to git.gitignore Makefile t/ +2 more | +75 | 2 replies | |
| 9/10 | Support "**" in .gitignore and .gitattributes patterns using wildmatch()Documentation/ attr.c dir.c +2 more | +38 | 0 replies | |
| 10/10 | gitignore: forbid "abc**def"Documentation/ dir.c t/ +1 more | +23 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/10] nd/wildmatch take 2
The first four patches are ignore/attr cleanups. The following imports wildmatch, nothing new there. The last patch limits allowed syntax to a safe subset: "abc/**", "**/def" and "abc/**/def".
Nguyễn Thái Ngọc Duy (10):
gitignore: make pattern parsing code a separate function
attr: avoid strlen() on every match
attr: avoid searching for basename on every match
attr: more matching optimizations from .gitignore Import wildmatch from rsync
wildmatch: remove static variable force_lower_case
wildmatch: fix case-insensitive matching
Integrate wildmatch to git
Support "**" in .gitignore and .gitattributes patterns using
wildmatch()
gitignore: forbid "abc**def"
.gitignore | 1 + Documentation/gitattributes.txt | 2 + Documentation/gitignore.txt | 5 + Makefile | 3 + attr.c | 89 ++++++++-- dir.c | 82 ++++++--- dir.h | 3 +- t/t0003-attributes.sh | 22 +++ t/t3001-ls-files-others-exclude.sh | 16 ++ t/t3070-wildmatch.sh | 27 +++ t/t3070/wildtest.txt | 165 +++++++++++++++++ test-wildmatch.c | 208 ++++++++++++++++++++++ wildmatch.c | 355 +++++++++++++++++++++++++++++++++++++ wildmatch.h | 6 + 14 files changed, 942 insertions(+), 42 deletions(-) create mode 100755 t/t3070-wildmatch.sh create mode 100644 t/t3070/wildtest.txt create mode 100644 test-wildmatch.c create mode 100644 wildmatch.c create mode 100644 wildmatch.h
Signature · 1 line
1.7.12.1.405.gb727dc9