?

Log in

No account? Create an account

Mon, Feb. 21st, 2005, 12:20 pm
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.