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)

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

Download all attachments as: .zip

Change History (6)

comment:1 by Thejaswi Puthraya, 14 years ago

Added the following globs currently:

*.pyc
*.pyo
*~
*.swp

The last being temporary files added by emacs and vi.

by Thejaswi Puthraya, 14 years ago

Attachment: 14680.diff added

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

comment:2 by pandres, 14 years ago

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 by Thejaswi Puthraya, 14 years ago

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 by Adam Vandenberg, 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 Jannis Leidel, 14 years ago

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