273
273
274
274
.PHONY : fmt-check
275
275
fmt-check : fmt
276
- @diff=$$(git diff $(GO_SOURCES ) templates $(WEB_DIRS ) ) ; \
276
+ @diff=$$(git diff --color=always $(GO_SOURCES ) templates $(WEB_DIRS ) ) ; \
277
277
if [ -n " $$ diff" ]; then \
278
278
echo " Please run 'make fmt' and commit the result:" ; \
279
279
echo " $$ {diff}" ; \
@@ -309,7 +309,7 @@ $(SWAGGER_SPEC): $(GO_SOURCES_NO_BINDATA)
309
309
310
310
.PHONY : swagger-check
311
311
swagger-check : generate-swagger
312
- @diff=$$(git diff '$(SWAGGER_SPEC ) ' ) ; \
312
+ @diff=$$(git diff --color=always '$(SWAGGER_SPEC ) ' ) ; \
313
313
if [ -n " $$ diff" ]; then \
314
314
echo " Please run 'make generate-swagger' and commit the result:" ; \
315
315
echo " $$ {diff}" ; \
@@ -414,7 +414,7 @@ vendor: go.mod go.sum
414
414
415
415
.PHONY : tidy-check
416
416
tidy-check : tidy
417
- @diff=$$(git diff go.mod go.sum $(GO_LICENSE_FILE ) ) ; \
417
+ @diff=$$(git diff --color=always go.mod go.sum $(GO_LICENSE_FILE ) ) ; \
418
418
if [ -n " $$ diff" ]; then \
419
419
echo " Please run 'make tidy' and commit the result:" ; \
420
420
echo " $$ {diff}" ; \
@@ -885,7 +885,7 @@ svg: node-check | node_modules
885
885
.PHONY : svg-check
886
886
svg-check : svg
887
887
@git add $(SVG_DEST_DIR )
888
- @diff=$$(git diff --cached $(SVG_DEST_DIR ) ) ; \
888
+ @diff=$$(git diff --color=always -- cached $(SVG_DEST_DIR ) ) ; \
889
889
if [ -n " $$ diff" ]; then \
890
890
echo " Please run 'make svg' and 'git add $( SVG_DEST_DIR) ' and commit the result:" ; \
891
891
echo " $$ {diff}" ; \
@@ -895,7 +895,7 @@ svg-check: svg
895
895
.PHONY : lockfile-check
896
896
lockfile-check :
897
897
npm install --package-lock-only
898
- @diff=$$(git diff package-lock.json ) ; \
898
+ @diff=$$(git diff --color=always package-lock.json ) ; \
899
899
if [ -n " $$ diff" ]; then \
900
900
echo " package-lock.json is inconsistent with package.json" ; \
901
901
echo " Please run 'npm install --package-lock-only' and commit the result:" ; \
0 commit comments