-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-vcsArea: general VCS issuesArea: general VCS issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-initCommand-newS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
currently cargo init helpfully writes out a .gitignore with the following contents:
/targetthis ~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
narpfel, kornelski, applemayexist, acid-bong and yegorich
Metadata
Metadata
Assignees
Labels
A-vcsArea: general VCS issuesArea: general VCS issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-initCommand-newS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.