Skip to content

Instantly share code, notes, and snippets.

@zecode
zecode / README.txt
Last active December 15, 2015 20:19
'Do Not Commit' subversion pre-commit hook.
'Do Not Commit' subversion pre-commit hook.
Concept. Sometimes to accelerate development I change production code from "const int CooldownMls = 5000;" to "const int CooldownMls = 0; // dnc"
Another example can be hardcoding db url to localhost like: $conn = createConn('127.1'); // dnc
Notice 'dnc' tag. It prevents the file from accidental commit. My svn repo rejects text files with such tag inside.
Installation.
1. Copy files to $REPOS/hooks
3. Then chmod +x both.