X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tools%2Fformat-cpp.sh;h=c0a9583a163cce8c513379938485a5e542407dc8;hb=385ef9f1227c3cc2aaddf7abdbdc69f89a0272cb;hp=be9ef74c41a260a7e8dd36ec95d21ea2e9732f3c;hpb=78c888d139a40b58b10a2c92829cbb2c814ad766;p=babeltrace.git diff --git a/tools/format-cpp.sh b/tools/format-cpp.sh index be9ef74c..c0a9583a 100755 --- a/tools/format-cpp.sh +++ b/tools/format-cpp.sh @@ -44,6 +44,7 @@ format_cpp() { # We want an absolute starting directory because find(1) excludes # files in specific subdirectories. find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \ + ! -path '*/.git/*' \ ! -path '*/src/cpp-common/vendor/*' \ ! -path '*/src/plugins/ctf/common/metadata/parser.*' \ ! -path '*/src/plugins/ctf/common/metadata/lexer.*' \