Debian Codegraph @

script/git-hooks/check-trailing-whitespace

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 gitscip-shell system . . git. diff-index --cached --check HEAD -- :/*.[ch] :/*.p[ylm]
4
5 if [scip-shell system . . `[`. $? != 0 ]; then
6 echoscip-shell system . . echo.
7 echoscip-shell system . . echo. "The commit failed because it seems to introduce trailing whitespace"
8 echoscip-shell system . . echo. "into C, Perl, or Python code."
9 echoscip-shell system . . echo.
10 echoscip-shell system . . echo. "If you are sure you want to do this, repeat the commit with the "
11 echoscip-shell system . . echo. "--no-verify, like this:"
12 echoscip-shell system . . echo.
13 echoscip-shell system . . echo. " git commit --no-verify"
14 exit 1
15 fi
16
17 exit 0