Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
18c0f15191
commit
4e9e84ac9a
2 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (l *IgnoreList) AppendItems(dir string, patterns []string) error {
|
|||
}
|
||||
|
||||
for _, pattern := range patterns {
|
||||
if pattern != "" {
|
||||
if pattern != "" && !strings.HasPrefix(pattern, "#") {
|
||||
l.items = append(l.items, NewIgnoreItem(dir, pattern, l.caseSensitive))
|
||||
}
|
||||
}
|
||||
|
|
2
pkg/fs/testdata/directory/.ppignore
vendored
2
pkg/fs/testdata/directory/.ppignore
vendored
|
@ -1,4 +1,6 @@
|
|||
*.txt
|
||||
test.md
|
||||
|
||||
# This is a comment
|
||||
somefile.*
|
||||
baz*
|
||||
|
|
Loading…
Reference in a new issue