From 6ebb7bc7b31784b7a8b56c9b9ab3697aeb4337f6 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Wed, 10 May 2017 12:02:49 -0400 Subject: [PATCH] Also ignore changes to ignored dirs themselves --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 9390588..303529c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -141,9 +141,9 @@ pub fn get_args() -> Args { let default_ignores = vec![format!("*{}.DS_Store", MAIN_SEPARATOR), String::from("*.pyc"), String::from("*.swp"), - format!("*{}.git{}*", MAIN_SEPARATOR, MAIN_SEPARATOR), - format!("*{}.hg{}*", MAIN_SEPARATOR, MAIN_SEPARATOR), - format!("*{}.svn{}*", MAIN_SEPARATOR, MAIN_SEPARATOR)]; + format!("*{}.git{}**", MAIN_SEPARATOR, MAIN_SEPARATOR), + format!("*{}.hg{}**", MAIN_SEPARATOR, MAIN_SEPARATOR), + format!("*{}.svn{}**", MAIN_SEPARATOR, MAIN_SEPARATOR)]; if args.occurrences_of("no-default-ignore") == 0 {