aboutsummaryrefslogtreecommitdiff
path: root/kde-modules
diff options
context:
space:
mode:
authorAlexander Lohnau <alexander.lohnau@gmx.de>2021-01-20 12:57:22 +0000
committerAlexander Lohnau <alexander.lohnau@gmx.de>2021-01-20 12:57:22 +0000
commite071de97b256a504c7b9d6e9655d1218bbd2c0a8 (patch)
tree84d524882493063f5a9910bef4b45cc8a92979b2 /kde-modules
parent8e4aebd8c10f0bed761f41ea56015893ab363fde (diff)
downloadextra-cmake-modules-e071de97b256a504c7b9d6e9655d1218bbd2c0a8.tar.gz
extra-cmake-modules-e071de97b256a504c7b9d6e9655d1218bbd2c0a8.tar.bz2
Add detailed explanation for KDEGitCommitHooks checks
Diffstat (limited to 'kde-modules')
-rw-r--r--kde-modules/KDEGitCommitHooks.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/kde-modules/KDEGitCommitHooks.cmake b/kde-modules/KDEGitCommitHooks.cmake
index b0b1a188..1ad93470 100644
--- a/kde-modules/KDEGitCommitHooks.cmake
+++ b/kde-modules/KDEGitCommitHooks.cmake
@@ -18,6 +18,16 @@
# In case the source dir does not contain the .git folder, the GIT_DIR
# parameter can be passed in.
#
+# Checks:
+#
+# - ``CLANG_FORMAT`` With this check enabled the ``git clang-format`` tool will be used to make sure that
+# the changed parts are properly formatted. In case the changes are not properly formatted an error
+# message with the command to preview the formatting changes and to format the files in place
+# will be displayed. This tool will reuse the exsting ``.clang-format`` file, in case you
+# want to use the one provided by ECM you can include ``include(KDEClangFormat)`` which will copy
+# the file to the source dir. It is also recommended to reformat the entire project before enforcing
+# the formatting using this commit hook.
+#
# Example usage:
#
# .. code-block:: cmake