This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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. |