Closed kkom closed 3 years ago
The --hidden
flag was added in fastmod 0.4.2. https://github.com/facebookincubator/fastmod/commit/4d2e36298e074b9ad55a54aecde3ca895ed26f73
What's the motivation for this behavior?
It's the default behavior of the ignore
crate, which we use to walk the filesystem (and thus of the ripgrep tool as well). We are slowly creeping toward supporting all of ripgrep's options for modifying the directory walk.
oh, wow, I'm sorry for not having checked the very latest version... who knew that it would be just added
well, thank you for the explanation!
In our codebase we have some committed
.env
files (it's a separate question whether that's a good idea or not...).I noticed that
fastmod
will ignore those:things work fine if I'm directly targeting that file:
But sometimes I don't know what the filenames will be (as in the case of the codemod we were running), and we are 100% confident that we want to just replace all substrings.
I tried options like
-g **/*
and-g */**
but that didn't work.What's the motivation for this behavior? Is there a workaround that I'm not aware of?
PS: here's my version