Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Fix #68: also ignore .git etc folder
Browse files Browse the repository at this point in the history
Instead of just the files/folders *within*. Fix provided by mattgreen:
watchexec/watchexec@6ebb7bc
  • Loading branch information
passcod committed May 10, 2017
1 parent 893be9e commit 6db9928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ fn get_ignores(debug: bool, matches: &ArgMatches) -> (bool, Vec<String>) {
opts.push(format!("*{}.DS_Store", MAIN_SEPARATOR));
opts.push("*.swp".into());

opts.push(format!("*{s}.hg{s}*", s=MAIN_SEPARATOR));
opts.push(format!("*{s}.git{s}*", s=MAIN_SEPARATOR));
opts.push(format!("*{s}.svn{s}*", s=MAIN_SEPARATOR));
opts.push(format!("*{s}.hg{s}**", s=MAIN_SEPARATOR));
opts.push(format!("*{s}.git{s}**", s=MAIN_SEPARATOR));
opts.push(format!("*{s}.svn{s}**", s=MAIN_SEPARATOR));

opts.push(format!("*{s}target{s}*", s=MAIN_SEPARATOR));
opts.push(format!("*{s}target{s}**", s=MAIN_SEPARATOR));

if debug {
println!(">>> Default ignores: {:?}", opts);
Expand Down

0 comments on commit 6db9928

Please sign in to comment.