Skip to content

Commit

Permalink
Merge pull request #1227 from TimeIncOSS/ignore-hidden
Browse files Browse the repository at this point in the history
config: ignore hidden files when autoloading *.tf per Unix conventions
  • Loading branch information
mitchellh committed Mar 19, 2015
2 parents eadc44d + f794f30 commit 56b2539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func dirFiles(dir string) ([]string, []string, error) {
// provided file name is a temporary file for the following editors:
// emacs or vim.
func isTemporaryFile(name string) bool {
return strings.HasSuffix(name, "~") || // vim
strings.HasPrefix(name, ".#") || // emacs
return strings.HasPrefix(name, ".") || // Unix-like hidden files
strings.HasSuffix(name, "~") || // vim
(strings.HasPrefix(name, "#") && strings.HasSuffix(name, "#")) // emacs
}
Empty file.

0 comments on commit 56b2539

Please sign in to comment.