I would like to use git filter-repo to format all my c++ files in my repos history. To format the files I use clang-format.
Doing this with git filter-branch I know that I could do:
git filter-branch --tree-filter 'find . -type f -iname \*\.cpp -o -iname \*\.hpp | xargs clang-format -i' HEAD
but since git suggests to use git filter-repo instead, I would like to do so. However it is unclear to me which callback function to use?
Cheers!