Add common VCS dirs to default ignore list (fixes #54)

This commit is contained in:
Matt Green 2017-04-27 15:20:44 -04:00
parent 0696b5266b
commit f9a3cade26
3 changed files with 6 additions and 3 deletions

2
Cargo.lock generated
View File

@ -1,6 +1,6 @@
[root]
name = "watchexec"
version = "1.8.1"
version = "1.8.2"
dependencies = [
"clap 2.22.2 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "watchexec"
version = "1.8.1"
version = "1.8.2"
authors = ["Matt Green <mattgreenrocks@gmail.com>"]
description = "Executes commands in response to file modifications"
documentation = "https://github.com/mattgreen/watchexec"

View File

@ -140,7 +140,10 @@ pub fn get_args() -> Args {
let mut ignores = vec![];
let default_ignores = vec![format!("*{}.DS_Store", MAIN_SEPARATOR),
String::from("*.pyc"),
String::from("*.swp")];
String::from("*.swp"),
String::from("*/.git/*"),
String::from("*/.hg/*"),
String::from("*/.svn/*")];
if args.occurrences_of("no-default-ignore") == 0 {