21

Google Code Search has indexed Subversion and Mercurial repositories, so people can search open source projects. How can I do the same for my company's repository with the least effort and without publishing our code?

We have Trac (with Subversion) at our shop, but it only indexes Changesets, and we also have Visual Source Safe.

Ira Baxter
  • 88,629
  • 18
  • 158
  • 311
Jader Dias
  • 81,082
  • 147
  • 410
  • 611

7 Answers7

8

I can vouch for the usefulness of opengrok, we have it at work and I use it pretty well every day.

alanc
  • 3,921
  • 18
  • 24
Dominic Rodger
  • 90,548
  • 30
  • 192
  • 207
3

A quick Google turned up VoilaSVN but I cannot vouch for it.

Edit: It also turned up OpenGrok which appears to have a lot more support for other systems.

alanc
  • 3,921
  • 18
  • 24
Oli
  • 215,718
  • 61
  • 207
  • 286
  • VoilaSVN free edition is free of charge for commercial and non-commercial usage. It is a Subversion search engine, administration, online diff and history navigation solution. It aims to promote the adoption of Subversion® for IT and NON-IT users with its very user-friendly interface. – Jader Dias Jun 06 '09 at 19:41
  • 1
    The link for VoilaSVN is stale. Looks like the project moved to SourceForge http://voilasvn.sourceforge.net/ – Turp Aug 02 '11 at 20:25
1

Surprisingly, I've found that the built-in search capability of Vista are very helpful. I've just added my source tree to the indexed directories, and get quite fast indexed search.

It is not language-sensitive, however.

John Saunders
  • 157,405
  • 24
  • 229
  • 388
1

Our langauge-sensitive source code search engine can be found at SD Source Code Search Engine. It can handle many languages at the same time. Searches can be performed for patterns in a specific langauge, or patterns across languages (such as "find identifiers involving TAX"). By being sensitive to langauge tokens, the number of false positives is reduced, saving time for the user. It understands C, C++, C#, COBOL, Java, ECMAScript, Java, XML, Verilog, VHDL, and a number of other languages.

Ira Baxter
  • 88,629
  • 18
  • 158
  • 311
1

there's always lxr (linux cross reference). Mozilla uses

It'd take a lot of effort, I think, because it's only available via git repo. More power to you if you make it work. git://lxr.linux.no/git/lxrng.git

Alex Gartrell
  • 2,354
  • 5
  • 20
  • 22
0

for Local Source code search on Windows: CodeIDX works great! https://sourceforge.net/projects/codeidx/

I Know this question is not for local search, but this is the only question about source code search tools not marked as "off topic" that I could find

Gerrie Pretorius
  • 2,621
  • 1
  • 24
  • 31
0

Commercially, there's Krugle Enterprise. If you want to see how it works, you can use http://www.krugle.org/ to search open source projects.

Josh Kelley
  • 50,042
  • 19
  • 127
  • 215