From: Joe Kopena Date: Mon, 3 Mar 2014 21:55:28 +0000 (-0500) Subject: Also ignore Emacs lock & recovery files. X-Git-Tag: v0.11~110 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d84f707da1d46b7334ff10db2443ac17a17bbff2;p=brevno-suite%2Fhugo Also ignore Emacs lock & recovery files. --- diff --git a/source/filesystem.go b/source/filesystem.go index 96853c8d..abec6ca6 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -122,6 +122,10 @@ func ignoreDotFile(filePath string) bool { return true } + if base[0] == '#' { + return true + } + if base[len(base)-1] == '~' { return true }