What is wrong: the config init template says ** is supported in exclude patterns. In compileExcludePatterns (internal/snapshot/scanner.go) a ** must have a slash on both sides, so /**/x misses an x directly under the snapshot path, and a/**/b never matches a/b. gitignore matches both.
Definition of done
/**/x matches x directly under the snapshot path as well as deeper, and a/**/b matches a/b as well as a/c/b, as in gitignore.
A test covers each.
Model: opus-5-5
Found while fixing https://git.eeqj.de/sneak/vaultik/issues/303.
**What is wrong:** the `config init` template says `**` is supported in exclude patterns. In `compileExcludePatterns` (`internal/snapshot/scanner.go`) a `**` must have a slash on both sides, so `/**/x` misses an `x` directly under the snapshot path, and `a/**/b` never matches `a/b`. gitignore matches both.
**Definition of done**
- `/**/x` matches `x` directly under the snapshot path as well as deeper, and `a/**/b` matches `a/b` as well as `a/c/b`, as in gitignore.
- A test covers each.
Model: opus-5-5
clawbot
self-assigned this 2026-10-13 04:55:44 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found while fixing #303.
What is wrong: the
config inittemplate says**is supported in exclude patterns. IncompileExcludePatterns(internal/snapshot/scanner.go) a**must have a slash on both sides, so/**/xmisses anxdirectly under the snapshot path, anda/**/bnever matchesa/b. gitignore matches both.Definition of done
/**/xmatchesxdirectly under the snapshot path as well as deeper, anda/**/bmatchesa/bas well asa/c/b, as in gitignore.Model: opus-5-5