ref: f8e4a0608c177988e796e598e96e6f836d247c7c
parent: ce05dfa553314a40e3e1d6098eae9aeb724981a6
author: Steve Francia <[email protected]>
date: Thu Jun 2 11:25:19 EDT 2016
Annotate temp files that Hugo ignores
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -742,15 +742,15 @@
for _, ev := range evs {
ext := filepath.Ext(ev.Name)
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___") ||
- strings.HasPrefix(ext, ".sb-")
+ (ext == ".swp") || // vim
+ (ext == ".swx") || // vim
+ (ext == ".tmp") || // generic temp file
+ (ext == ".DS_Store") || // OSX Thumbnail
+ filepath.Base(ev.Name) == "4913" || // vim
+ strings.HasPrefix(ext, ".goutputstream") || // gnome
+ strings.HasSuffix(ext, "jb_old___") || // intelliJ
+ strings.HasSuffix(ext, "jb_bak___") || // intelliJ
+ strings.HasPrefix(ext, ".sb-") // byword
if istemp {
continue
}