Code

Opened 3 years ago

Closed 3 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: UI/UX:

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 3 years ago.
Added a basic .gitignore and a .hgignore file for pyc, pyo

Download all attachments as: .zip

Change History (6)

comment:1 Changed 3 years ago by thejaswi_puthraya

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Added the following globs currently:

*.pyc
*.pyo
*~
*.swp

The last being temporary files added by emacs and vi.

Changed 3 years ago by thejaswi_puthraya

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

comment:2 Changed 3 years ago by pandres

  • Resolution set to invalid
  • Status changed from new to 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 Changed 3 years ago by thejaswi_puthraya

  • Resolution invalid deleted
  • Status changed from closed to 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 Changed 3 years ago by adamv

*~ 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 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from reopened to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.