From: Steve Francia Date: Tue, 26 Jan 2016 19:10:18 +0000 (-0500) Subject: Ignore .DS_Store changes (thumbnail cache file on mac) X-Git-Tag: v0.16~408 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db18fd1582a7f7b1697629219d7a31dc92f829b2;p=brevno-suite%2Fhugo Ignore .DS_Store changes (thumbnail cache file on mac) --- diff --git a/commands/hugo.go b/commands/hugo.go index 89a2f7ed..35acbf29 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -658,7 +658,7 @@ func NewWatcher(port int) error { for _, ev := range evs { ext := filepath.Ext(ev.Name) - istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") + istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") || (ext == ".DS_Store") if istemp { continue }