Opened 15 years ago

Closed 15 years ago

#11650 closed (wontfix)

Add .gitignore for unofficial mirrors.

Reported by: Adam Vandenberg Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I mostly expect this to be "won't fixed", but it would be very useful for unofficial git mirrors if Django had at least a basic .gitignore file that excluded .py[c|o] files.

Attachments (1)

gitignore.diff (155 bytes ) - added by Adam Vandenberg 15 years ago.
Ignore cached py files and built docs.

Download all attachments as: .zip

Change History (6)

by Adam Vandenberg, 15 years ago

Attachment: gitignore.diff added

Ignore cached py files and built docs.

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Masklinn, 15 years ago

If there are ignore files for unofficial mirrors to be provided by Django, it would make sense to provide it for all SCM types that could be used for mirrors. Or at the bare minimum the three "big" ones: Git, Bazaar and Mercurial.

by the way, I just checked and I note that in my local Django copy, the svn ignores are incomplete on the 1.0.X release branch:

$ svn st
?       django/contrib/localflavor/ro/forms.pyc
?       django/contrib/localflavor/ro/__init__.pyc
?       django/contrib/localflavor/at/forms.pyc
?       django/contrib/localflavor/at/at_states.pyc
?       django/contrib/localflavor/at/__init__.pyc
?       tests/regressiontests/model_forms_regress/__init__.pyc
?       tests/regressiontests/model_forms_regress/models.pyc
?       tests/regressiontests/bug8245/admin.pyc
?       tests/regressiontests/bug8245/__init__.pyc
?       tests/regressiontests/bug8245/tests.pyc
?       tests/regressiontests/bug8245/models.pyc
?       docs/_ext/djangodocs.pyc

comment:3 by Jannis Leidel, 15 years ago

Being the maintainer of the Git mirror I don't see a need for this change since all DVCS allow global ignore files, e.g. git config --global core.excludesfile ~/.gitignore.

comment:4 by Adam Nelson, 15 years ago

I think this would be nice in order to reduce the burden for new developers. Not many people know how to create a system-level .gitignore file. Anyway, with a big project there will be special excludes that are specific to the project. This could also just be done on the other repository and not on the official one.

As for other repos, I don't think there is a Mercurial or Bazaar mirror so those could be safely ignored until a repo exists.

comment:5 by Jannis Leidel, 15 years ago

Resolution: wontfix
Status: newclosed

Closing this as wontfix since this isn't a Django issue.

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