From 32b7cbd4a7cd8cffb47c5465301141eaad599eaa Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 29 Sep 2021 14:05:54 -0400 Subject: clangformat: Only format files tracked by git by default --- docs/markdown/Code-formatting.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Code-formatting.md b/docs/markdown/Code-formatting.md index 386c787..8191aa2 100644 --- a/docs/markdown/Code-formatting.md +++ b/docs/markdown/Code-formatting.md @@ -56,3 +56,8 @@ Note that `.clang-format-ignore` has the same format as used by A new target `clang-format-check` has been added. It returns an error code if any file needs to be reformatted. This is intended to be used by CI. + +*Since 0.60.0* + +If `.clang-format-include` file is missing and source files are in a git +repository, only files tracked by git will be included. -- cgit v1.1