dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 348f3669e2d066921c8c060736b06fd778810e0c
parent fe313c9b6b10f2483cbfe692c86c24dc95d9bb06
Author: Erethon <info@erethon.com>
Date:   Wed,  9 Oct 2013 17:33:53 +0300

gitconfig: Change template dir/add pre-commit hook

* Change default template dir to ~/.conf/git_templates
* Add a pre-commit hook to check for pep8 compliance
* Add a pre-commit hook to run flake8
* Add "git nv" alias to "git commit --no-verify"

Diffstat:
.config/git_templates/hooks/pre-commit | 2++
.gitconfig | 3+++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/.config/git_templates/hooks/pre-commit b/.config/git_templates/hooks/pre-commit @@ -0,0 +1,2 @@ +pep8 `git diff HEAD --name-only` +flake8 `git diff HEAD --name-only` diff --git a/.gitconfig b/.gitconfig @@ -21,3 +21,6 @@ b = branch ba = branch -a bl = blame + nv = commit --no-verify +[init] + templatedir = ~/.config/git_templates/