Debian Codegraph @

util/gitconfig/pre-commit

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 ##
3 ## SPDX-License-Identifier: GPL-2.0-only
4
5 set -e # -o errexit
6 set -u # -o nounset
7
8 %MAKE% check-style lint-stable
9
10 PATCHDIFF=$(gitscip-shell system . . git. diff --cached --src-prefix=a/ --dst-prefix=b/)
11 if printfscip-shell system . . printf. "%s\n" "$PATCHDIFF" | grepscip-shell system . . grep. -q "@@"; then
12 echoscip-shell system . . echo.
13 echoscip-shell system . . echo. "Running checkpatch"
14 printfscip-shell system . . printf. "%s\n" "$PATCHDIFF" | util/lint/lint-007-checkpatch diff \
15 || (echoscip-shell system . . echo. "Please consider fixing these issues." ;sleepscip-shell system . . sleep. 5) ; truescip-shell system . . true.
16 fi