From 422546b1752ae58c52aa844c9fdc413991e4cd45 Mon Sep 17 00:00:00 2001 From: Bruce Guenter Date: Thu, 8 Feb 2018 12:21:06 -0600 Subject: [PATCH] Add Emacs temporary files to the default ignored list Emacs generates temporary backup files while editing named "#FILENAME#" and ".#FILENAME". Ignore these by default. --- src/cli.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index a59a8483..f095db48 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -147,6 +147,8 @@ pub fn get_args() -> Args { let mut ignores = vec![]; let default_ignores = vec![format!("**{}.DS_Store", MAIN_SEPARATOR), String::from("*.pyc"), + String::from("#*#"), + String::from(".#*"), String::from(".*.sw?"), String::from(".*.sw?x"), format!("**{}.git{}**", MAIN_SEPARATOR, MAIN_SEPARATOR),