fixed support for .gitignore

This commit is contained in:
Daniel Fichtinger 2025-05-06 14:04:08 -04:00
parent 8f0001d293
commit 465bc51b39
2 changed files with 8 additions and 7 deletions

View file

@ -55,8 +55,8 @@ fi
# This ensures symlinks are not added
if [ -d "$path" ]; then
if [ "$FD" == "true" ]; then
# we prefer fd because it respects .ignore
fd -t f . "$path" -X yadm add
# we prefer fd because it respects .ignore and .gitignore
fd --no-require-git -t f . "$path" -X yadm add
else
find "$path" -type f -exec yadm add {} +
fi