diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:26:02 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:26:02 +0900 |
| commit | d98d160e2cf0df1de98ea62dc778e6072cb671e4 (patch) | |
| tree | 3bdfa4977f2a57e55131ab45884c803c57f0bf6a /Utilities/Git | |
| parent | 859ca5c4d7396a011a462878179bc173e1283731 (diff) | |
| download | cmake-master.tar.gz cmake-master.zip | |
Release tarball cmake-3.31.6.tar.gz (dist-generated files / local differences from tag)HEADlocal/cmakemaster
Diffstat (limited to 'Utilities/Git')
| -rwxr-xr-x | Utilities/Git/commit-msg | 14 | ||||
| -rw-r--r-- | Utilities/Git/ignore-revs | 38 | ||||
| -rwxr-xr-x | Utilities/Git/pre-commit | 69 | ||||
| -rwxr-xr-x | Utilities/Git/prepare-commit-msg | 6 |
4 files changed, 0 insertions, 127 deletions
diff --git a/Utilities/Git/commit-msg b/Utilities/Git/commit-msg deleted file mode 100755 index 348c3eaa1b..0000000000 --- a/Utilities/Git/commit-msg +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -die() { - echo 'commit-msg hook failure' 1>&2 - echo '-----------------------' 1>&2 - echo '' 1>&2 - echo "$@" 1>&2 - exit 1 -} - -# This is a placeholder for future commit-msg checks. -exit 0 diff --git a/Utilities/Git/ignore-revs b/Utilities/Git/ignore-revs deleted file mode 100644 index af058e8d5e..0000000000 --- a/Utilities/Git/ignore-revs +++ /dev/null @@ -1,38 +0,0 @@ -# LexerParser regeneration -34b7dbbfc37180989b57a0fb25ca4e0010cf992b - -# CMAKE_BOOTSTRAP rename -54e9d38c28d0073f2cc5d690adb5c993e7793c97 - -# CMake code reindentation -2c807b75f3283d30ecde55be5b434be65d0ea141 -932dcce1e63b98739ab547f2146a39310c2d0e1e - -# `#pragma once` -bdca8b01d2d96d63e685e7eca03e0f51f5410fdf - -# clang-format-6 -ed98209ddc8d5e9f5b20cd010c69a25d553b2654 -d7204e649ed4ebb19bb341b4e49eb51514364922 -# Initial clang-format -d9fd2f5402eeaa345691313658e02b51038f570b - -# Fortran parser renaming -98b9645bcebf009643cff4e265cfcd31b56d80f5 - -# Sphinx conversion, reformattings -496ec6036fb2b4ebbae000ee362cdfb7704d08de -df4ed1e9ffcdb6b99ccff9e6f44808fdd2abda56 -3442f2bcc47ccce86124144423b416b98d589b20 -28f08ba25cc60de3fc7cb9eb4b3297ed6fe1dee0 -baaab068f2fa9e736ed85f3ba9b75d96e9339f89 -a77e3086938d46c56f62901531245711dbd55cc4 -f051814ed0e63badbfd68049354f36259dbf4b49 -81759c77af28f367c71e71973d985dc1d7a7c87c - -# Removal of `end*` command arguments -9db3116226cb99fcf54e936c833953abcde9b729 -# Lowercasing command names -77543bde41b0e52c3959016698b529835945d62d -# Removal of trailing whitespace -7bbaa4283de26864b2e55e819db0884771585467 diff --git a/Utilities/Git/pre-commit b/Utilities/Git/pre-commit deleted file mode 100755 index b63ae5e337..0000000000 --- a/Utilities/Git/pre-commit +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -die() { - echo 'pre-commit hook failure' 1>&2 - echo '-----------------------' 1>&2 - echo '' 1>&2 - echo "$@" 1>&2 - exit 1 -} - -#------------------------------------------------------------------------------- -line_too_long=80 -bad=$(regex=".{$line_too_long}" && -git diff-index --cached HEAD --name-only --diff-filter=AM \ - --pickaxe-regex -S"$regex" -- 'Source/*.h' 'Source/*.cxx' | -while read file; do - lines_too_long=$(git diff-index -p --cached HEAD \ - --pickaxe-regex -S"$regex" -- "$file") - if echo "$lines_too_long" | egrep -q '^\+'"$regex"; then - echo "$lines_too_long" - fi -done) -test -z "$bad" || -die 'The following changes add lines too long for our C++ style: - -'"$bad"' - -Use lines strictly less than '"$line_too_long"' characters in C++ code.' - -#----------------------------------------------------------------------------- - -# Check that development setup is up-to-date. -lastSetupForDevelopment=$(git config --get hooks.SetupForDevelopment || echo 0) -eval $(grep '^SetupForDevelopment_VERSION=' "${BASH_SOURCE%/*}/../SetupForDevelopment.sh") -test -n "$SetupForDevelopment_VERSION" || SetupForDevelopment_VERSION=0 -if test $lastSetupForDevelopment -lt $SetupForDevelopment_VERSION; then - die 'Developer setup in this work tree is out of date. Please re-run - - Utilities/SetupForDevelopment.sh -' -fi - -#------------------------------------------------------------------------------- -if test -z "$HOOKS_ALLOW_KWSYS"; then - # Disallow changes to KWSys - files=$(git diff-index --name-only --cached HEAD -- Source/kwsys) && - if test -n "$files"; then - die 'Changes to KWSys files - -'"$(echo "$files" | sed 's/^/ /')"' - -should not be made directly in CMake. KWSys is kept in its own Git -repository and shared by several projects. Please visit - - https://gitlab.kitware.com/utils/kwsys - -to contribute changes directly to KWSys. Run - - git reset HEAD -- Source/kwsys - -to unstage these changes. Alternatively, set environment variable - - HOOKS_ALLOW_KWSYS=1 - -to disable this check and commit the changes locally.' - fi -fi diff --git a/Utilities/Git/prepare-commit-msg b/Utilities/Git/prepare-commit-msg deleted file mode 100755 index 511472e19f..0000000000 --- a/Utilities/Git/prepare-commit-msg +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -# This is a placeholder for future prepare-commit-msg hooks. -exit 0 |
