mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Rename WatchIgnoreFiles to IgnoreFiles
Because this isn't just about server and watching. See #1189
This commit is contained in:
parent
bed227886b
commit
bec3f40359
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ func isNonProcessablePath(filePath string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
ignoreFiles := viper.GetStringSlice("WatchIgnoreFiles")
|
ignoreFiles := viper.GetStringSlice("IgnoreFiles")
|
||||||
if len(ignoreFiles) > 0 {
|
if len(ignoreFiles) > 0 {
|
||||||
for _, ignorePattern := range ignoreFiles {
|
for _, ignorePattern := range ignoreFiles {
|
||||||
match, _ := regexp.MatchString(ignorePattern, filePath)
|
match, _ := regexp.MatchString(ignorePattern, filePath)
|
||||||
|
|
Loading…
Reference in a new issue