Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Additional tip to exclude undesired matches in GitHub code search #30050

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

Merged
merged 1 commit into from
May 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/devel/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ have to learn new API and have to modify existing code).
You can start simple and look at the search results, if there are too many
incorrect matches, gradually refine your search criteria.

It can also be helpful to add ``NOT path:**/matplotlib/** NOT path:**/site-packages/**``
to exclude matches where the matplotlib codebase is checked into another repo,
either as direct sources or as part of an environment.

*Example*: Calls of the method ``Figure.draw()`` could be matched using
``/\bfig(ure)?\.draw\(/``. This expression employs a number of patterns:

Expand Down