vrajanap / codesearch

Automatically exported from code.google.com/p/codesearch
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

cindex does not follow and index symlinked paths #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create some symlinks to some source code in a directory.
2. Index that directory.
3. Search for symbols which are only in symlinked source files.

What is the expected output? What do you see instead?

I expect to see symlinked files listed by csearch.
csearch only indexed regular files.

What version of the product are you using? On what operating system?

0.1 on Mac OS X 10.6

Please provide any additional information below.

Maybe additionally provide an option to restrict or follow symlinks to certain 
filesystems for better control.

Original issue reported on code.google.com by manpreet...@gmail.com on 7 Feb 2012 at 4:00

GoogleCodeExporter commented 9 years ago
Avoiding symlinks was specifically disabled with revision 
http://code.google.com/p/codesearch/source/detail?r=f9a003c603e3e456bed3ff2fb738
bb63d53a6388

A '-follow-symlinks' option would be easy to add to toggle this behaviour.

Original comment by dgryski on 8 Feb 2012 at 1:48

GoogleCodeExporter commented 9 years ago
Adding a patch implementing the option.

Original comment by manpreet...@gmail.com on 7 Sep 2012 at 5:51

Attachments:

GoogleCodeExporter commented 9 years ago
Just noting that this is implemented in my fork at

https://github.com/junkblocker/codesearch 

if anybody is interested.

Original comment by manpreet...@gmail.com on 29 Mar 2014 at 12:00