mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Also ignore Emacs lock & recovery files.
This commit is contained in:
parent
3a0ab5a3dd
commit
d84f707da1
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ func ignoreDotFile(filePath string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if base[0] == '#' {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
if base[len(base)-1] == '~' {
|
if base[len(base)-1] == '~' {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue