Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
a2310fb6c6
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