Rename WatchIgnoreFiles to IgnoreFiles
authorbep <bjorn.erik.pedersen@gmail.com>
Wed, 3 Jun 2015 11:45:52 +0000 (13:45 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Wed, 3 Jun 2015 11:45:52 +0000 (13:45 +0200)
Because this isn't just about server and watching.

See #1189

source/filesystem.go

index 4565c7f48727d870073cbc89337abe0c4207b2b6..7242d1dfc5b9af048be7fe3da9ec52f3849caa65 100644 (file)
@@ -148,7 +148,7 @@ func isNonProcessablePath(filePath string) bool {
                return true
        }
 
-       ignoreFiles := viper.GetStringSlice("WatchIgnoreFiles")
+       ignoreFiles := viper.GetStringSlice("IgnoreFiles")
        if len(ignoreFiles) > 0 {
                for _, ignorePattern := range ignoreFiles {
                        match, _ := regexp.MatchString(ignorePattern, filePath)