I want to add ktfmt with spotless to an existing p...
# ktfmt
c
I want to add ktfmt with spotless to an existing project... but my project lead is afraid of losing git commit history. thoughts?
j
don’t understand why it is related losing commit history with spotless and ktfmt
c
If I reformat the entire project, then all git blame history will look like its from me, no?
n
Don't you have an entity (bot?) that can run this for you and/or maybe tag the change with "codemod". That's what we do here and for blame, we know to skip past those things
You could even configure your version control thing to ignore those revisions. In git you do something like this:
git config blame.ignore <REVISION>
c
Yeah, we configured version control to ignore that hash of the "big reformat of 2023"
👍 1