It's really nicer not to have arbitrary changes like this in the history.  Using git rebase -i and editing commits where they were introduced is a good way to fix them.