From e8672964e6aaa55b3b3b58d69163836aa122a377 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Fri, 1 Mar 2019 09:02:12 -0600 Subject: [PATCH] Add /dev/ to gitignore --- src/generate.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generate.jl b/src/generate.jl index 856fb65f..d78ffa8c 100644 --- a/src/generate.jl +++ b/src/generate.jl @@ -234,7 +234,8 @@ Returns an array of generated file/directory names. """ function gen_gitignore(pkg_dir::AbstractString, t::Template) pkg = basename(pkg_dir) - entries = mapfoldl(p -> p.gitignore, append!, values(t.plugins); init=[".DS_Store"]) + init = [".DS_Store", "/dev/"] + entries = mapfoldl(p -> p.gitignore, append!, values(t.plugins); init=init) if !t.manifest && !in("Manifest.toml", entries) push!(entries, "/Manifest.toml") # Only ignore manifests at the repo root. end