Last modified: 2014-02-17 14:22:00 UTC
Gitweb had a grep feature, probably the only thing we miss of it. Gitblit supports only lucene search, which doesn't seem to scale for our repository (but needs more testing, I hear). Also: "I have no interest in implementing a regex search because the Lucene search fits my needs. If you would like to contribute a regex search I'd be happy to merge it." https://code.google.com/p/gitblit/issues/detail?id=87 https://blog.mozilla.org/webdev/2013/06/13/dxr-digests-the-firefox-codebase/ made me curious about DXR but the docs are too intricate (https://github.com/mozilla/dxr/issues/139).
*** This bug has been marked as a duplicate of bug 49229 ***
(In reply to comment #1) > > *** This bug has been marked as a duplicate of bug 49229 *** Doesn't look so to me, unless it's decided that Lucene is the only way of course.
*** Bug 49702 has been marked as a duplicate of this bug. ***
Copying from bug 49702: After the migration to gitblit I miss the feature which allowed us to search which files contain a given string, or match a given REGEX. I remmember I linked to some of these searches on ptwiki. The links were like this: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git&a=search&h=HEAD&st=grep&s=EXAMPLE Would it be possible to setup something equivalent for git.wikimedia.org? PS: Before git, there was also this tool: https://wiki.toolserver.org/view/Wikimedia_SVN_Search http://toolserver.org/~krinkle/wikimedia-svn-search/ Maybe Krinkle would be able to port it to git?
(In reply to comment #4) > PS: Before git, there was also this tool: > https://wiki.toolserver.org/view/Wikimedia_SVN_Search > http://toolserver.org/~krinkle/wikimedia-svn-search/ > Maybe Krinkle would be able to port it to git? FYI, before the gitweb grepping worked, I started keeping a clone of core and extensions on Toolserver at /mnt/user-store/git, so that someone could made such a tool if wanted.
Note that GitHub has code search on both organization and repository level: * https://github.com/search?l=&q=wgWellFormedXml+%40wikimedia&ref=advsearch&type=Code * https://github.com/wikimedia/mediawiki-core/search?q=wgWellFormedXml