9 ms·
GitHub search is pretty useless if you want to rely on it to find all uses of a given word, say during a refactorization https://stackoverflow.com/questions/43
by j1elo 9y ago
GitHub search is pretty useless if you want to rely on it to find all uses of a given word, say during a refactorization
https://stackoverflow.com/questions/43891605/search-partial-words-in-github-organizations-code https://stackoverflow.com/questions/43891605/search-partial-...
So, you end up having to clone all repos locally and grep for the word.
Just pointing out that limitation of search in GitHub, not saying that this other tool is actually reliable to do this kind of things (I haven't used it before)
- sqs 9y agoSourcegraph CEO here. To compare GitHub to Sourcegraph search, here is that same query on Sourcegraph.com (which is Sourcegraph Server running for all open-source code on GitHub): https://sourcegraph.com/search?q=repo:Kurento/+DISABLE_LIBRARIES_GENERATION https://sourcegraph.com/search?q=repo:Kurento/+DISABLE_LIBRA... It works as expected (and as the SO poster wanted)! It shows desired results that GitHub search does not. Regexps are also supported...give it a try!
- j1elo 9y agoI'm the poster at SO :) Very cool! I'll definitely give it a try
- nqzero 9y agocan you only search a single repo at a time ? does it parse the code and store the AST, or is it just plain text ?
- sqs 9y agoIt searches multiple repositories at a time. That query above searches all repositories in the given organization. It does have code intelligence (parsing, semantic references and go-to-def, etc.) but that search is just a text search.