shithub: hugo

Download patch

ref: f3aa93fa484628316105dac6bfe4cea4b6992a3b
parent: 0525fbddbc10232d44b3ce1bcc434554cafecd81
author: Steve Francia <[email protected]>
date: Mon Dec 21 14:46:12 EST 2015

Ignore temp files created by IntelliJ when saving

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -577,7 +577,7 @@
 
 				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
 					}