chore: add git commit hook for git-blame-ignore-revs
ignore redis log files
This commit is contained in:
parent
100b53d17c
commit
7aa99b26b9
|
@ -0,0 +1,3 @@
|
||||||
|
r7000i.log
|
||||||
|
r7001i.log
|
||||||
|
r7002i.log
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
exec git config --local blame.ignoreRevsFile git-blame-ignore-revs
|
|
@ -15,3 +15,7 @@ fi
|
||||||
if [ ! -L '.git/hooks/pre-commit' ]; then
|
if [ ! -L '.git/hooks/pre-commit' ]; then
|
||||||
ln -sf '../../scripts/git-hook-pre-commit.sh' '.git/hooks/pre-commit'
|
ln -sf '../../scripts/git-hook-pre-commit.sh' '.git/hooks/pre-commit'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -L '.git/hooks/post-commit' ]; then
|
||||||
|
ln -sf '../../scripts/git-hook-post-commit.sh' '.git/hooks/post-commit'
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue