chore: add git commit hook for git-blame-ignore-revs

ignore redis log files
This commit is contained in:
JimMoen 2022-09-23 12:37:07 +08:00
parent 100b53d17c
commit 7aa99b26b9
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
r7000i.log
r7001i.log
r7002i.log

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
exec git config --local blame.ignoreRevsFile git-blame-ignore-revs

View File

@ -15,3 +15,7 @@ fi
if [ ! -L '.git/hooks/pre-commit' ]; then
ln -sf '../../scripts/git-hook-pre-commit.sh' '.git/hooks/pre-commit'
fi
if [ ! -L '.git/hooks/post-commit' ]; then
ln -sf '../../scripts/git-hook-post-commit.sh' '.git/hooks/post-commit'
fi