2 # SPDX-FileCopyrightText: 2023 Michael Jeanson <mjeanson@efficios.com>
3 # SPDX-License-Identifier: GPL-2.0-or-later
9 # Check if the topmost patch is properly formatted
10 git
diff -U0 --no-color --relative HEAD^ | clang-format-diff-14
-p1 -i
12 GIT_DIFF_OUTPUT
=$
(git
diff)
14 if [ -n "$GIT_DIFF_OUTPUT" ]; then
15 echo "$GIT_DIFF_OUTPUT"