Opened 8 years ago

Closed 8 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: master
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


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)

14680.diff (304 bytes) - added by Thejaswi Puthraya 8 years ago.
Added a basic .gitignore and a .hgignore file for pyc, pyo

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Thejaswi Puthraya

Added the following globs currently:


The last being temporary files added by emacs and vi.

Changed 8 years ago by Thejaswi Puthraya

Attachment: 14680.diff added

Added a basic .gitignore and a .hgignore file for pyc, pyo

comment:2 Changed 8 years ago by pandres

Resolution: invalid
Status: newclosed

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 Changed 8 years ago by Thejaswi Puthraya

Resolution: invalid
Status: closedreopened

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 Changed 8 years ago by Adam Vandenberg

*~ 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 Changed 8 years ago by Jannis Leidel

Resolution: fixed
Status: reopenedclosed

(In [15009]) Fixed #14680 -- Added ignore files for Mercurial and Git.

Note: See TracTickets for help on using tickets.
Back to Top