merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4' as 'third_party/git'
This commit is contained in:
commit
7ef0d62730
3629 changed files with 1139935 additions and 0 deletions
29
third_party/git/ci/run-static-analysis.sh
vendored
Executable file
29
third_party/git/ci/run-static-analysis.sh
vendored
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Perform various static code analysis checks
|
||||
#
|
||||
|
||||
. ${0%/*}/lib.sh
|
||||
|
||||
make coccicheck
|
||||
|
||||
set +x
|
||||
|
||||
fail=
|
||||
for cocci_patch in contrib/coccinelle/*.patch
|
||||
do
|
||||
if test -s "$cocci_patch"
|
||||
then
|
||||
echo "$(tput setaf 1)Coccinelle suggests the following changes in '$cocci_patch':$(tput sgr0)"
|
||||
cat "$cocci_patch"
|
||||
fail=UnfortunatelyYes
|
||||
fi
|
||||
done
|
||||
|
||||
if test -n "$fail"
|
||||
then
|
||||
echo "$(tput setaf 1)error: Coccinelle suggested some changes$(tput sgr0)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
save_good_tree
|
||||
Loading…
Add table
Add a link
Reference in a new issue