Просмотр исходного кода

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

ignore redis log files
JimMoen 3 лет назад
Родитель
Сommit
7aa99b26b9

+ 3 - 0
.ci/docker-compose-file/redis/.gitignore

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

+ 3 - 0
scripts/git-hook-post-commit.sh

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

+ 4 - 0
scripts/git-hooks-init.sh

@@ -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