Ignore files that end with a tilde (probably backup files generated by editors)
This commit is contained in:
parent
e04b158c39
commit
b5e32770a3
2 changed files with 4 additions and 0 deletions
|
|
@ -100,6 +100,9 @@ class IgnorePolicy:
|
|||
# Always ignore plain *.log files (rarely useful as config, often noisy).
|
||||
if path.endswith(".log"):
|
||||
return "log_file"
|
||||
# Ignore editor/backup files that end with a trailing tilde.
|
||||
if path.endswith("~"):
|
||||
return "tilde_backup"
|
||||
|
||||
if not self.dangerous:
|
||||
for g in self.deny_globs or []:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue