Merge pull request #77 from bruceg/master
Fix some default ignore pattern issues
This commit is contained in:
commit
93bd1d9881
|
@ -71,7 +71,7 @@ Skip loading of version control system (VCS) ignore files\. By default, watchexe
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-default\-ignore\fR
|
\fB\-\-no\-default\-ignore\fR
|
||||||
Skip default ignore statements\. By default, watchexec ignores common temporary files for you, for example \fB*\.swp\fR, \fB*\.pyc\fR, and \fB\.DS_Store\fR
|
Skip default ignore statements\. By default, watchexec ignores common temporary files for you, for example \fB.*\.swp\fR, \fB*\.pyc\fR, and \fB\.DS_Store\fR
|
||||||
.
|
.
|
||||||
.SH "ENVIRONMENT"
|
.SH "ENVIRONMENT"
|
||||||
Processes started by watchexec have the \fB$WATCHEXEC_UPDATED_PATH\fR environment variable set to the path of the first modification observed\. In addition, the \fB$WATCHEXEC_COMMON_PATH\fR environment variable is set to the common path of all observed modifications\.
|
Processes started by watchexec have the \fB$WATCHEXEC_UPDATED_PATH\fR environment variable set to the path of the first modification observed\. In addition, the \fB$WATCHEXEC_COMMON_PATH\fR environment variable is set to the common path of all observed modifications\.
|
||||||
|
|
|
@ -146,8 +146,11 @@ pub fn get_args() -> Args {
|
||||||
|
|
||||||
let mut ignores = vec![];
|
let mut ignores = vec![];
|
||||||
let default_ignores = vec![format!("**{}.DS_Store", MAIN_SEPARATOR),
|
let default_ignores = vec![format!("**{}.DS_Store", MAIN_SEPARATOR),
|
||||||
String::from("*.pyc"),
|
String::from("*.py[co]"),
|
||||||
String::from("*.swp"),
|
String::from("#*#"),
|
||||||
|
String::from(".#*"),
|
||||||
|
String::from(".*.sw?"),
|
||||||
|
String::from(".*.sw?x"),
|
||||||
format!("**{}.git{}**", MAIN_SEPARATOR, MAIN_SEPARATOR),
|
format!("**{}.git{}**", MAIN_SEPARATOR, MAIN_SEPARATOR),
|
||||||
format!("**{}.hg{}**", MAIN_SEPARATOR, MAIN_SEPARATOR),
|
format!("**{}.hg{}**", MAIN_SEPARATOR, MAIN_SEPARATOR),
|
||||||
format!("**{}.svn{}**", MAIN_SEPARATOR, MAIN_SEPARATOR)];
|
format!("**{}.svn{}**", MAIN_SEPARATOR, MAIN_SEPARATOR)];
|
||||||
|
|
Loading…
Reference in New Issue