What i would do, before i start to work and make changes to the existing code, i would format the code and do a commit as is, then start working on the new revision.
Like this it will be much cleaner when comparing, and committing the actual changes.