Commit Graph

7 Commits

Author SHA1 Message Date
Brad King
19ee713db1 Add Apache 2.0 LICENSE and copyright NOTICE 2010-08-27 16:43:57 -04:00
Brad King
aad245bee7 Remove out-dated instructions 2010-08-27 16:41:32 -04:00
Gaëtan Lehmann
8653d28606 Reference bash explicitly in shebang lines
On Solaris, where /bin/sh is actually sh, not bash, some expressions
like $() are not supported.  Git's own scripts on this machine are
configured to use "#!/bin/bash".  Change our shebang line to

  #!/usr/bin/env bash

which should work almost everywhere.
2010-08-03 11:07:24 -04:00
Brad King
6c7e3f42ba commit-msg: Reject leading or trailing space on first line 2010-06-16 15:53:39 -04:00
Brad King
7cd6238240 commit-msg: Exclude diff during "git commit -v"
Stop processing the commit message text at a "diff --git" line.  Such
lines occur when the user commits with the "-v" option.  We should not
check the patch content; it will be stripped by Git anyway.
2010-04-28 13:35:19 -04:00
Brad King
5395049e7f commit-msg: Preserve bad message for user to fix
Store a backup copy of the input message.  Remove the backup only on
success.  On failure, tell the user how to use and edit the message
without having to enter it from scratch.
2010-04-22 11:42:15 -04:00
Brad King
68d1d3b4af Prototype pre-commit and commit-msg hook scripts
These hooks perform some basic commit-time checks to keep history clean.
2010-03-31 17:39:00 -04:00