-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a gitignore with common artifacts that don't belong in the repo #6731
Comments
Doesn't git have local configuration for this? Twisted has no svn:ignore properties either. This is because svn lets the owner of a check decide which files they care about and which they don't. This is better than forcing a single list onto everyone. |
Additionally, you need to ignore Trial directories (_trial_temp{number}). |
Yet you're not proposing that *.pyc be ignored for everyone? There should never be a .pyc file checked in to Twisted, either. |
I have all of these in my global gitignore, but I agree it might be nice to have. Other possible candidates:
|
If we have policy indicating that certain types of files should never be checked in (like pyc files, lore output files, etc) then it seems sensible to reflect this policy mechanically with a .gitignore; it doesn't feel like "forcing" the decision on anyone, since if someone wants to make a fork that adds those types of file, they can always modify There are also places where we have more information than a global ignore file could. One such place is when it's not the file's extension, but its location, which makes the difference as to whether it ought to be ignored. For example, ".html" files generated from Lore and from Pydoctor would be nice to have ignored, since the output from that process should never be checked in; but Personally, I've got a hack where my editor integration for generating Lore docs will currently do So it seems like it would leave the workflow basically unchanged for experienced contributors, but make it smoother for newcomers. Unless I've overlooked some use-case for having some build artifacts routinely show up in status output but others remain hidden? I can't remember the exact reason not to add |
He added it for review, I assumed he forgot to unassign it. Review-wise I think the first four of the ones in my last comment are worth adding too, otherwise again lgtm. |
Replying to Julian:
Right you are, I was reading the ticket's metadata incorrectly. (Thought it was still out of review.) Sorry.
I would also be inclined to say it should be landed, unless exarkun wants to elaborate further on his objections. |
I am not convinced that putting ignore configuration into the repository is a good idea. This doesn't seem to be the majority opinion though and I don't feel like spending any more time arguing against this somewhat minor mistake. |
By the way, as above - if you run two instances of trial at the same time, it will make _trial_temp/ and _trial_temp-1/. If you run three, it will also make a -2. As I've had this show up in my Twisted directory, I think it's worth adding |
Note that the most recent patch attached to the ticket is not what got committed to trunk. |
Right now if you use the the git mirror (which many contributors are!) your
git status
grows unsightly blemishes. With.gitignore
you won't be able to see them.Attachments:
Searchable metadata
The text was updated successfully, but these errors were encountered: