jish/pre-commit — pull request #31 by jish (2012-07-10 04:37:52+00:00)
Title: Giving the option to overwrite hook during installation.

Previously we were being extra safe and just aborting if we detected an existing git pre-commit hook. Now we ask the user if they would like use to replace their existing pre-commit hook.

As part of this commit a `PreCommit::Cli` class was created along with some basic test cases to test user responses.

/cc @shajith

Q: In the event of an overwrite, should we back up the user's existing pre-commit hook or blow it away?