-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-37936: Systematically distinguish rooted vs. unrooted in .gitignore. #15823
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
de42995
bpo-37936: Systematically distinguish rooted vs. unrooted in .gitignore.
gnprice 96dde8c
Add a NEWS entry.
gnprice bdf15c8
Cut redundant specific-.vs rule, thanks to zware's eagle eye
gnprice 9de8ab3
Cut buildno rule.
gnprice e992e75
Cut db_home vestiges (from tests for bsddb, gone in 3.0)
gnprice 3ae3ab1
Cut rule for ipch -- believed to go inside already-ignored PCbuild su…
gnprice d4cac40
Generalize rules for *.a, *.so*, *.dylib, *.dll .
gnprice 19bc9e7
Generalize excluding *.exe .
gnprice 2f0d018
Ignore .hg/ and .svn/ anywhere.
gnprice 175b726
Ignore .coverage anywhere.
gnprice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Build/2019-09-10-00-54-48.bpo-37936.E7XEwu.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The :file:`.gitignore` file systematically keeps "rooted", with a | ||
non-trailing slash, all the rules that are meant to apply to files in a | ||
specific place in the repo. Previously, when the intended file to ignore | ||
happened to be at the root of the repo, we'd most often accidentally also | ||
ignore files and directories with the same name anywhere in the tree. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw, this is causing a minor inconvenience in packaging for debian as this now matches
debian/README.source
the original pattern was
libpython*.so*
could that be restored?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debian/README.source
does not exist in the cpython repo, so presumably you can unignore it wherever you're patching it in. I would think you would want to explicitly unignore anything added to avoid issues like this.I prefer to keep
*.so*
, because we we don't want to accidentally check in any compiled extension modules (even though that shouldn't happen anyway and any*.so
other thanlibpython*
should theoretically only appear in the ignoredbuild
directory, ignoring them anyway seems better to me).However, I could be persuaded to expand that rule to
If that works for you @asottile, please submit a PR and ping me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will send a PR 👍