2 ms·
A bit overly complicated. I have to do such things pretty often, esp. with cygwin codebases and sloppy maintainers. find . -name *.py -exec expand -t4 '{}' \;
by rurban 2y ago
A bit overly complicated. I have to do such things pretty often, esp. with cygwin codebases and sloppy maintainers.
find . -name *.py -exec expand -t4 '{}' \;
git commit -am'chore: expand all py tabs to spaces'
and this for all branches. Usually also clang-format and dos2unix.
No need for .gitattribute filters. And no magic rewrites, just a commit.