mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
In 1b8f306612 (ci/style-check: add `RemoveBracesLLVM` in CI job,
2024-07-23) we added 'RemoveBracesLLVM' to the CI job of running the
clang formatter.
This rule checks and warns against using braces on simple
single-statement bodies of statements. Since we haven't had any issues
regarding this rule, we can now move it into the main clang-format
config and remove it from being CI exclusive.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
10 lines
137 B
Bash
Executable File
10 lines
137 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Perform style check
|
|
#
|
|
|
|
baseCommit=$1
|
|
|
|
git clang-format --style=file:.clang-format \
|
|
--diff --extensions c,h "$baseCommit"
|