Validator for commit messages when creating a new commit.
Rename the other attached file as commit-msg and place it in repo/.git/hooks do not forget chmod +x commit-msg if needed.
| $ = function() | |
| { | |
| var args = Array.prototype.slice.call(arguments, 0), | |
| doc = document; | |
| return doc.getElementById.apply(doc, args); | |
| } |
| cd ~/.ssh;for a in `ls *.pub`; do ssh-keygen -lf $a;done |
| for a in `ls`; do mv $a "_$a" ;done; |
| :: Execute a bash script with the same filename, source: bit.ly/ef7iQw | |
| @echo off | |
| setlocal | |
| if not exist "%~dpn0.sh" echo Script "%~dpn0.sh" not found & exit 2 | |
| set _CYGBIN=C:\cygwin\bin | |
| if not exist "%_CYGBIN%" echo Couldn't find Cygwin at "%_CYGBIN%" & exit 3 | |
| :: Resolve ___.sh to /cygdrive based *nix path and store in %_CYGSCRIPT% | |
| for /f "delims=" %%A in ('%_CYGBIN%\cygpath.exe "%~dpn0.sh"') do set _CYGSCRIPT=%%A | |
| :: Throw away temporary env vars and invoke script, passing any args that were passed to us | |
| endlocal & %_CYGBIN%\bash --login "%_CYGSCRIPT%" %* |