Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Francia <steve.francia@gmail.com>2016-06-02 22:25:19 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-03 00:47:01 +0300
commitf8e4a0608c177988e796e598e96e6f836d247c7c (patch)
tree95f19e3187dc0cade901f354b09aa02e582d0f43 /commands
parentce05dfa553314a40e3e1d6098eae9aeb724981a6 (diff)
Annotate temp files that Hugo ignores
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index bda33e599..7d989d2d9 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -742,15 +742,15 @@ func NewWatcher(port int) error {
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
}