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
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
➜ fastmod-dot-env fastmod --version
fastmod 0.4.1
The text was updated successfully, but these errors were encountered:
kkom
changed the title
Can fastmod also modify files that start with a dot?
Can fastmod also modify hidden files?
May 25, 2021
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.
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
The text was updated successfully, but these errors were encountered: