Skip to content

Commit

Permalink
Add /dev/ to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Mar 1, 2019
1 parent 8ebb98e commit e867296
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 e867296

Please sign in to comment.