Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6a50ea

Browse filesBrowse files
authored
Merge pull request #30050 from timhoffm/doc-codesearch
DOC: Additional tip to exclude undesired matches in GitHub code search
2 parents 6e4d951 + 4865f97 commit e6a50ea
Copy full SHA for e6a50ea

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎doc/devel/api_changes.rst

Copy file name to clipboardExpand all lines: doc/devel/api_changes.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ have to learn new API and have to modify existing code).
6767
You can start simple and look at the search results, if there are too many
6868
incorrect matches, gradually refine your search criteria.
6969

70+
It can also be helpful to add ``NOT path:**/matplotlib/** NOT path:**/site-packages/**``
71+
to exclude matches where the matplotlib codebase is checked into another repo,
72+
either as direct sources or as part of an environment.
73+
7074
*Example*: Calls of the method ``Figure.draw()`` could be matched using
7175
``/\bfig(ure)?\.draw\(/``. This expression employs a number of patterns:
7276

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.