https://github.com/mrc/git-hook-library
Git hooks
https://github.com/mrc/git-hook-library
Last synced: 6 months ago
JSON representation
Git hooks
- Host: GitHub
- URL: https://github.com/mrc/git-hook-library
- Owner: mrc
- Created: 2011-04-07T06:18:57.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-08T22:03:15.000Z (over 15 years ago)
- Last Synced: 2025-07-12T05:02:06.702Z (about 1 year ago)
- Homepage:
- Size: 93.8 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-hook-library
An exceptionally small collection of git hooks.
## pre-commit hooks
* `pre-commit.no-tabs`
Reject commits which contain tabs (based on git config
hooks.allowtabs)
Designed as
[an answer to a StackOverflow question](http://stackoverflow.com/questions/5574195/make-git-highlight-tab-characters-in-a-diff/5574413#5574413).
Since git 1.7.2 you can use core.whitespace=tab-in-indent to detect
tabs used for indentation (though not tabs embedded in the
line). See
[stackoverflow](http://stackoverflow.com/questions/5574195/make-git-highlight-tab-characters-in-a-diff/5578165#5578165).