How can I index our internal source code?

心已入冬 提交于 2019-11-27 05:22:42

问题


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.


回答1:


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.




回答2:


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




回答3:


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.




回答4:


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




回答5:


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.




回答6:


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.




回答7:


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



来源:https://stackoverflow.com/questions/960348/how-can-i-index-our-internal-source-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!