From e139b98acae32a0460a659dcd85d83ef735fa601 Mon Sep 17 00:00:00 2001 From: Rick Altherr Date: Mon, 22 Jan 2018 14:18:02 -0800 Subject: [PATCH] Ignore source files under .git/ during 'make format' Signed-off-by: Rick Altherr --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c34ebed6..297b666e 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,6 @@ go: cd build; cmake ..; make -j$(JOBS) format: - find . -name \*.cc -and -not -path './third_party/*' -exec $(CLANG_FORMAT) -style=file -i {} \; - find . -name \*.h -and -not -path './third_party/*' -exec $(CLANG_FORMAT) -style=file -i {} \; - find . -name \*.py -and -not -path './third_party/*' -exec yapf -p -i {} \; + find . -name \*.cc -and -not -path './third_party/*' -and -not -path './.git/*' -exec $(CLANG_FORMAT) -style=file -i {} \; + find . -name \*.h -and -not -path './third_party/*' -and -not -path './.git/*' -exec $(CLANG_FORMAT) -style=file -i {} \; + find . -name \*.py -and -not -path './third_party/*' -and -not -path './.git/*' -exec yapf -p -i {} \;