Opened 14 years ago
Closed 14 years ago
#14680 closed (fixed)
Add a file to ignore unnecessary and compiled files from various version control systems
Reported by: | Thejaswi Puthraya | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | sprintnov13, gitignore, hgignore | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Now that django has official mirrors for git and mercurial.
It makes sense to add .gitignore and .hgignore files to the source at this point of time to prevent accidental files from getting added to the source.
Attachments (1)
Change History (6)
comment:1 by , 14 years ago
by , 14 years ago
Attachment: | 14680.diff added |
---|
Added a basic .gitignore and a .hgignore file for pyc, pyo
comment:2 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I don't think that belongs to the source code. Also, check that trac's diff view doesn't knows how to read your patch and the file names are missing.
comment:3 by , 14 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I created this ticket on a discussion with jezdez during the sprint. So please leave it open till further discussion.
About trac not able to read the patch, the raw version of the ticket reads fine. So the patch seems to be alright.
comment:4 by , 14 years ago
*~
is an editor backup file, and this kind of thing (for Git at least) should go into your global git-ignore instead of into every project.
*.py[co]
should also go in the global git-ignore, since you don't want these files checked in for any project.
docs/_build/
should be ignored (generated documentation.)
I also like to ignore "*.diff", since these are files I generate to attach to tickets, and don't want them checked back in to my git branch.
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Added the following globs currently:
The last being temporary files added by emacs and vi.