s4:kdc: Simplify samba_kdc_update_pac_blob() to take ldb_context as parameter
[Samba.git] / script / git-hooks / check-trailing-whitespace
blob5303f1fcefa174900c3f121b4baf21698f007b40
1 #!/bin/sh
3 git diff-index --cached --check HEAD -- :/*.[ch] :/*.p[ylm]
5 if [ $? != 0 ]; then
6 echo
7 echo "The commit failed because it seems to introduce trailing whitespace"
8 echo "into C, Perl, or Python code."
9 echo
10 echo "If you are sure you want to do this, repeat the commit with the "
11 echo "--no-verify, like this:"
12 echo
13 echo " git commit --no-verify"
14 exit 1
17 exit 0