projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: liburcu: add atomic builtins conf to linuxbuild master
[lttng-ci.git]
/
scripts
/
common
/
check-format.sh
diff --git
a/scripts/common/check-format.sh
b/scripts/common/check-format.sh
index db9505d4e393a87340695c41df55df568baf29fc..88d0d337b1f87769bf1364ab5f058bd60bb50cd4 100644
(file)
--- a/
scripts/common/check-format.sh
+++ b/
scripts/common/check-format.sh
@@
-1,4
+1,5
@@
#!/bin/bash
#!/bin/bash
+#
# SPDX-FileCopyrightText: 2023 Michael Jeanson <mjeanson@efficios.com>
# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: 2023 Michael Jeanson <mjeanson@efficios.com>
# SPDX-License-Identifier: GPL-2.0-or-later
@@
-32,10
+33,12
@@
git diff -U0 --no-color --relative HEAD^ | clang-format-diff-14 -p1 -i
# If the tree has local changes, the formatting was incorrect
GIT_DIFF_OUTPUT=$(git diff)
if [ -n "$GIT_DIFF_OUTPUT" ]; then
# If the tree has local changes, the formatting was incorrect
GIT_DIFF_OUTPUT=$(git diff)
if [ -n "$GIT_DIFF_OUTPUT" ]; then
-
print_header "Saving clang-format proposed fixes in clang-format-fixes.diff"
-
git diff > "$WORKSPACE/clang-format-fixes.diff"
-
exit 1
+ print_header "Saving clang-format proposed fixes in clang-format-fixes.diff"
+ git diff > "$WORKSPACE/clang-format-fixes.diff"
+ exit 1
fi
print_header "clang-format is happy!"
fi
print_header "clang-format is happy!"
+
# EOF
# EOF
+# vim: expandtab tabstop=4 shiftwidth=4
This page took
0.024054 seconds
and
4
git commands to generate.