shithub: hugo

Download patch

ref: 2d11551c53b2feb0a59560a21ba5e74580c7c944
parent: 42f43ad4335eea46193558f878b3f5f3fee82749
author: Anthony Fok <[email protected]>
date: Fri Feb 12 13:54:37 EST 2016

Ignore temporary file "4913" created by Vim

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -711,7 +711,15 @@
 
 				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___") || (ext == ".DS_Store")
+					istemp := strings.HasSuffix(ext, "~") ||
+						(ext == ".swp") ||
+						(ext == ".swx") ||
+						(ext == ".tmp") ||
+						(ext == ".DS_Store") ||
+						filepath.Base(ev.Name) == "4913" ||
+						strings.HasPrefix(ext, ".goutputstream") ||
+						strings.HasSuffix(ext, "jb_old___") ||
+						strings.HasSuffix(ext, "jb_bak___")
 					if istemp {
 						continue
 					}