aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/kde-git-commit-hooks/pre-commit.in
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2021-05-27 16:37:24 +0200
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2021-05-27 16:37:24 +0200
commit07854bb9f0ac1ad5b5fad757395e04824c3fe9f3 (patch)
tree920b6c1eddf6903944d35ad916d0ca205affaea4 /kde-modules/kde-git-commit-hooks/pre-commit.in
parente94611c70863335efc00709541dd009e18c968a7 (diff)
downloadextra-cmake-modules-07854bb9f0ac1ad5b5fad757395e04824c3fe9f3.tar.gz
extra-cmake-modules-07854bb9f0ac1ad5b5fad757395e04824c3fe9f3.tar.bz2
Provide fallback error when no .clang-format file is present
This check fixes a probably rare case, where we land in a repository that contains this clang-format.sh hook but where the format file went missing. In such cases, clang-format falls back to the system defaults, which brings undesired defaults, e.g. enforced line breaks in comments after 90 chars, which cannot easily be reverted by a reformat. Since clang-format's --fallback-style=none option is not available for git clang-format, this comment reimplements the logic.
Diffstat (limited to 'kde-modules/kde-git-commit-hooks/pre-commit.in')
0 files changed, 0 insertions, 0 deletions