From 308819fb1fd47ad8a27ab82401eca69f24971ca0 Mon Sep 17 00:00:00 2001 From: tonypai Date: Tue, 9 Apr 2019 21:24:48 +0700 Subject: [PATCH] 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. --- ignore/src/types.rs | 1 + 1 file changed, 1 insertion(+) 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"]),