We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a33d42f commit a6a512fCopy full SHA for a6a512f
pre-commit.sh
@@ -20,7 +20,7 @@
20
# This file is git pre-commit hook.
21
#
22
# Soft link it as git hook under top dir of apache arrow git repository:
23
-# $ ln -s ../../rust/pre-commit.sh .git/hooks/pre-commit
+# $ ln -s ../../pre-commit.sh .git/hooks/pre-commit
24
25
# This file be run directly:
26
# $ ./pre-commit.sh
@@ -37,14 +37,12 @@ function BYELLOW() {
37
echo "\033[1;33m$@\033[0m"
38
}
39
40
-RUST_DIR="rust"
41
-
42
# env GIT_DIR is set by git when run a pre-commit hook.
43
if [ -z "${GIT_DIR}" ]; then
44
GIT_DIR=$(git rev-parse --show-toplevel)
45
fi
46
47
-cd ${GIT_DIR}/${RUST_DIR}
+cd ${GIT_DIR}
48
49
NUM_CHANGES=$(git diff --cached --name-only . |
50
grep -e ".*/*.rs$" |
0 commit comments