Created
October 2, 2014 15:45
-
-
Save humandb/ceb1ca14d85c581d8d84 to your computer and use it in GitHub Desktop.
Pre-Commit hook to fix type before commiting
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
#!/bin/sh | |
# | |
# Fix common typo in Righster (note, not 't') automatically | |
git ls-tree -r --name-only HEAD | xargs perl -p -i -e 's/ighster/ightster/g' | |
git ls-tree -r --name-only HEAD | xargs perl -p -i -e 's/IGHSTER/IGHTSTER/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The content of this file should be in
.git/hooks/pre-commit
.