Open
Description
Problem
currently cargo init
helpfully writes out a .gitignore
with the following contents:
/target
this ~generally means that any rust project now needs to have this /target
entry in .gitignore
instead of needing this in .gitignore
, one can create a self-ignoring directory by writing a .gitignore
with the contents *
inside of it. this is (for example) what virtualenv
does:
$ virtualenv venv >& /dev/null
$ cat venv/.gitignore
# created by virtualenv automatically
*
this would remove the need for everyone having /target
in their gitignore
and instead have it be automatic!
Proposed Solution
the proposal is to create a .gitignore
with *
in the target
directory upon creation and phase out the top-level .gitignore
's /target
entry
Notes
No response