diff options
author | Dan Albert <danalbert@google.com> | 2021-04-19 14:05:59 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2021-04-19 14:05:59 -0700 |
commit | 77d976cd65fdffdf405f62c0d0f6ce5833be7b5c (patch) | |
tree | a5399626603e3577146abda98ddfdac651917073 | |
parent | 9cf8871dd98bf69fe46bba056fa05c3c6bf2222d (diff) |
Ignore backup files left by emacs.
Test: Added a file like this locally and the upload hook didn't care
Bug: None
Change-Id: I4c33f2517a9a83c7797d3ea9074fffeedf85dcaa
-rwxr-xr-x | libc/tools/generate_notice.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/tools/generate_notice.py b/libc/tools/generate_notice.py index e0e6b3215..9b53f9f60 100755 --- a/libc/tools/generate_notice.py +++ b/libc/tools/generate_notice.py @@ -38,6 +38,9 @@ def is_interesting(path_str: str) -> bool: return False if path.name in {"notice", "readme", "pylintrc"}: return False + # Backup files for some editors. + if path.match("*~"): + return False return True |