You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I folder contains a .gitignore file with a pattern of the same name as the folder, ag will not find anything when searching that directory from the parent.
Here are instructions to reproduce the issue:
mkdir -p myprogram
cd myprogram
# Lets assume this project will later build a binary called by program. Put it in .gitignore
echo myprogram > .gitignore
# now, start writing the source
echo "print 'hello world'" > main.py
cd ../
# now, search for a string in that directory
ag hello myprogram
Nothing is found
ag -D hello myprogram will show
DEBUG: file myprogram/main.py ignored because path somewhere matches name myprogram
This seems wrong since the ignore directive is defined in myprogram/.gitignore. So it should not apply to directory names below that definition.
The text was updated successfully, but these errors were encountered:
If I folder contains a .gitignore file with a pattern of the same name as the folder, ag will not find anything when searching that directory from the parent.
Here are instructions to reproduce the issue:
Nothing is found
ag -D hello myprogram
will showDEBUG: file myprogram/main.py ignored because path somewhere matches name myprogram
This seems wrong since the ignore directive is defined in myprogram/.gitignore. So it should not apply to directory names below that definition.
The text was updated successfully, but these errors were encountered: