Commit 00890aa
fix filename pattern matching
git ls-files seems to match against filename strings exactly, and
doesn't use the same logic as e.g. gitignore. this means that to match
files by exact filename below the root, we need a */ at the start of the
pattern to match more than files strictly at the root of the tree. these
prefixed patterns however miss the root, so we need to include both
forms.
this is doable with bash array regexes to avoid changing the pattern
format to work with both find and git ls-files at the same time.1 parent 15fcab9 commit 00890aa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments