Protip: Add a minor inconvenience to every line, like a trailing space or slightly misaligned indentation. That way the next guy who opens the file will automatically correct it, taking the git blame.
Everyone else: who used sometimes 3 or 4 spaces (yes, manually pressing the spacebar even though the IDE provided them);
Me:
Commit 1
Added .clang-format Commit 2
Ran git clang-format
Protip: Add a minor inconvenience to every line, like a trailing space or slightly misaligned indentation. That way the next guy who opens the file will automatically correct it, taking the git blame.
My company had 2 types of people…
Everyone else: who used sometimes 3 or 4 spaces (yes, manually pressing the spacebar even though the IDE provided them);
Me: Commit 1 Added .clang-format
Commit 2 Ran
git clang-format