Skip to content

Commit

Permalink
Merge branch 'jg/handle-gitignore-exclusions-in-clean-ignore'
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Newren <[email protected]>
  • Loading branch information
newren committed Jul 7, 2024
2 parents 4c5ad09 + 6588bbc commit 37da489
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/filter-repo-demos/clean-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ class CheckIgnores:
if not source and not linenum and not pattern:
self.okay.add(name)
else:
self.ignored.add(name)
ignored.add(name)
if pattern[0:1] == b"!":
self.okay.add(name)
else:
self.ignored.add(name)
ignored.add(name)

return ignored

Expand Down

0 comments on commit 37da489

Please sign in to comment.