Search code examples
svncoding-stylemetadatablame

style cleanup that doesn't trample svn blame?


I'd like to use Eclipse's formatter to fix some poorly styled code, but there's a huge downside to killing all the metadata in the repository about who is responsible for what. Any thoughts on ways to get around this? Perhaps it is just completely impossible...


Solution

  • You can tell blame to ignore whitespace changes:

    svn blame -x -w file/path
    

    Of course that only works if your style fix doesn't change more than whitespaces.