aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-25 15:24:07 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-25 15:24:08 +0900
commita36f631ad65a24070e5470784d6fd1f9be9bd72f (patch)
tree29b1e45ec31a2a30801d8ddb07bf2563b43f76ac /Makefile
parentb67f154bf972839cefc461cceb56abe3e6b12e27 (diff)
parent2118805b929a47887f2ded218c95a5a274e36aa0 (diff)
downloadgit-a36f631ad65a24070e5470784d6fd1f9be9bd72f.tar.gz
git-a36f631ad65a24070e5470784d6fd1f9be9bd72f.tar.xz
Merge branch 'bw/git-clang-format'
"make style" runs git-clang-format to help developers by pointing out coding style issues. * bw/git-clang-format: Makefile: add style build rule clang-format: outline the git project's coding style
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ed5960e6b..ed4ca438b 100644
--- a/Makefile
+++ b/Makefile
@@ -2457,6 +2457,10 @@ $(SP_OBJ): %.sp: %.c GIT-CFLAGS FORCE
.PHONY: sparse $(SP_OBJ)
sparse: $(SP_OBJ)
+.PHONY: style
+style:
+ git clang-format --style file --diff --extensions c,h
+
check: common-cmds.h
@if sparse; \
then \