Simon Wistow (deflatermouse) wrote,
Simon Wistow
deflatermouse

svn commit hooks and tabs

I use nano which, without unsupported patches, can't auto convert tabs to spaces. Which sucks. So Mr Clamp has a an svn-commit hook that matches incoming diffs against

    /^\+.*\t.*$/

and rejects the commit if it gets a hit. Which is lovely but when you commit 20 or so files it's a pain no knowing which one failed. Which means using one of the diff modules on CPAN I suppose.

Tags: clamp, commit, cpan, hook, nano, patches, suppose, svn, tabs
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments