git grep doesn't follow symbolic link
- From
- Bertrand BENOIT <projettwk@users.sourceforge.net>
- Date
- Jan 9, 2012, 16:54 UTC
- Message-ID
- <CAPRVejc7xND_8Y=Pb5rYGEcaKYUaX7_WkSro-_EL8tTGxkfY3Q@mail.gmail.com>
Hi,
I've not found information about that in documentation, so I do a report.
When using git grep, symbolic links are not followed. Is it a wanted behavior ?
I've tested with a symbolic link: - 'ignored' - NOT staged for commit - to be commited - commited Anytime -> no result when asking on symbolic link
Example: # git grep foo mySrc -> OK answer [...]
# ln -s mySrc test # git grep foo test -> KO: No answer
# git add test # git grep foo test -> KO: No answer
# git commit -m "DO NOT PUSH" test # git grep foo test -> KO: No answer
Best Regards, Bertrand