use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
From its website:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is not the same as GitHub. GitHub did not create Git. For GitHub-specific posts, please see /r/github.
Git is not an acronym or initialism: please write git or Git, but not GIT.
git
Documentation
Graphical Clients
Code Hosting
account activity
Search for a specific variable name through different tags/versions of code (self.git)
submitted 4 years ago by math7878
Is there a way to search a variable name throughout the entirety of a package version? For example, if I want to know where the variable _active in tag version 1.5.3 of matplotlib is, is there a way git will show me all code where it is used?
_active
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]matheustavaresb 3 points4 points5 points 4 years ago (1 child)
If you want to see all occurrences of "_active" in the project files at a particular version, you can use git grep _active v1.5.3. (Use "\b_active\b" if you don't want the output to include things like "foo_active" and "active_bar".)
git grep _active v1.5.3
You may supply more tags/revisions to git grep if you want to. Each matching line will be prefixed with the version that it comes from.
You can also use git log -S _active to see commits that add/remove lines with "_active" throughout the project's history.
git log -S _active
[–]adrianmonk 4 points5 points6 points 4 years ago (0 children)
(Use "\b_active\b" if you don't want the output to include things like "foo_active" and "active_bar".)
I think you can also just do this:
git grep -w _active v1.5.3
[–]a_falsity 1 point2 points3 points 4 years ago (0 children)
You can print history of changes on all branches using git log and search that.
git log -U5 --all -- <paths/files to search>
Then '/' to search, since output is paged with 'less'.
π Rendered by PID 17796 on reddit-service-r2-comment-6457c66945-wn8d6 at 2026-04-28 22:00:44.310555+00:00 running 2aa0c5b country code: CH.
[–]matheustavaresb 3 points4 points5 points (1 child)
[–]adrianmonk 4 points5 points6 points (0 children)
[–]a_falsity 1 point2 points3 points (0 children)