From: Steve Francia Date: Tue, 22 Dec 2015 00:46:12 +0000 (-0500) Subject: Ignore temp files created by IntelliJ when saving X-Git-Tag: v0.16~417 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f3aa93fa484628316105dac6bfe4cea4b6992a3b;p=brevno-suite%2Fhugo Ignore temp files created by IntelliJ when saving --- diff --git a/commands/hugo.go b/commands/hugo.go index 3b2e172c..57f2796b 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -577,7 +577,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___") if istemp { continue }