Skip to content

Commit

Permalink
Merge pull request #59 from invenia/cdg/gitgnore-dev
Browse files Browse the repository at this point in the history
Add /dev/ to gitignore
  • Loading branch information
christopher-dG authored Mar 1, 2019
2 parents 8ebb98e + e867296 commit beb169a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beb169a

Please sign in to comment.