Debian Codegraph @

script/git-hooks/pre-commit-script

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -eu
4
5 #
6 # make emacs/magit work, cf
7 # https://github.com/magit/magit/issues/3419
8 #
9 unset GIT_LITERAL_PATHSPECS
10
11 gitdir=$(gitscip-shell system . . git. rev-parse --show-toplevel)
12 if [scip-shell system . . `[`. $? -ne 0 ]; then
13 echoscip-shell system . . echo. "git rev-parse --show-toplevel failed"
14 exit 1
15 fi
16
17 ${gitdir}/script/git-hooks/check-trailing-whitespace || exit $?
18
19 exit 0