Closed Alex-ley-scrub closed 3 weeks ago
@morgante - I can't seem to replicate what you are seeing in #539 ? Do you have an example command that fails?
These commands (now in a test) work as I would expect them to? Correct files are ignored.
cd src/module1
grit apply '`object` => ``' . --lang=py --force
cd src/module2
grit apply '`object` => ``' . --lang=py --force
I think that the ignore::Walk
already does this (see description on docs.rs) - I do also have some code locally that also manually adds the .gitignore files to the ignore::Walk
but there's no point pushing it if it is not needed. Although if you can share a command with me that does fail to ignore them - then I'm happy to push it of course.
I added a test that I think captures the desired behaviour:
I think that the
ignore::Walk
already does this (see description on docs.rs) - I do also have some code locally that also manually adds the .gitignore files to theignore::Walk
but there's no point pushing it if it is not needed. Although if you can share a command with me that does fail to ignore them - then I'm happy to push it of course.
Thanks for investigating, it looks like I'm unable to reproduce this too. Sorry for the mixup!
/claim #539
fixes #539
see https://docs.rs/ignore/latest/ignore/struct.WalkBuilder.html#ignore-rules
Greptile Summary
This is an auto-generated summary
Hi! Looks like you've reached your API usage limit. You can increase it from your account settings page here: app.greptile.com/settings/usage