summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortonypai <tony77794@gmail.com>2019-04-09 21:24:48 +0700
committerAndrew Gallant <jamslam@gmail.com>2019-04-09 10:24:48 -0400
commit308819fb1fd47ad8a27ab82401eca69f24971ca0 (patch)
tree12a030d571c614a2cc679dc257a3b141e7ec121f
parent09108b7fda7af6db7c1c4f0366301f9a21cc485d (diff)
ignore/types: add lock files
Treat anything with a `.lock` extension as a lock file, with an extra rule or two for special cases, e.g., package-lock.json.
-rw-r--r--ignore/src/types.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index e4a31a0a..47e9a765 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -196,6 +196,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
"OFL-*[0-9]*",
]),
("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
+ ("lock", &["*.lock", "package-lock.json"]),
("log", &["*.log"]),
("lua", &["*.lua"]),
("lzma", &["*.lzma"]),