diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-25 15:24:07 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-25 15:24:08 +0900 |
commit | a36f631ad65a24070e5470784d6fd1f9be9bd72f (patch) | |
tree | 29b1e45ec31a2a30801d8ddb07bf2563b43f76ac /Makefile | |
parent | b67f154bf972839cefc461cceb56abe3e6b12e27 (diff) | |
parent | 2118805b929a47887f2ded218c95a5a274e36aa0 (diff) | |
download | git-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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 \ |