Bertrand BENOIT
2012-01-09 16:54:14 UTC
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
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