I'd like to search a public repository on github to find where the software defines a given function. It seems this should be straight forward using the advanced search. Not sure if I'm not understanding the filters or if the functions just are not defined.
For example, imagine I want to find where Hadley's facet_wrap
function is defined within the ggplot2 repository (it's here.)
I try the advanced search bar selecting Search "Code", written in "R" and enter
facet_wrap repo:ggplot2
And I get no results. Have I formed the query incorrectly?
GitHub Codesearch can be found at github.com/codesearch and will let you type in anything you're looking for in source code and get highlighted results of any files in our public repositories that match.
If you're looking for a filename in specific repository, you can just press t and start typing the file name (see: GH keyboard shortcuts). Save this answer.
Searching in Your Git RepoYou can search for a commit or any particular string.
state the specific string you're looking for using the "intext:" search operator. add the programming language you're interested in, using the "ext:" operator (i.e. "ext:py", "ext:R", "ext:rb", etc.) search in all public repos in Github using the "site:" operator mrgloom mentioned.
You need user/repo
as a search term.
facet_wrap repo:hadley/ggplot2
gives 41 results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With