Merge pull request #9029 from JimMoen/chore-githook-and-ignore-files

chore: add git commit hook for git-blame-ignore-revs
and ignore redis log files
This commit is contained in:
JimMoen 2022-09-23 13:58:26 +08:00 committed by GitHub
commit d914f465da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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