From 209fe0f60e4a20be012509310c9ad49207387de5 Mon Sep 17 00:00:00 2001 From: Ralph Caraveo Date: Fri, 12 Jan 2024 19:17:48 -0800 Subject: [PATCH] adding a helpful stats command in the Makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 19e4d0e..1f9db10 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: test build lint gen all clean update docker run format +.PHONY: test build lint gen all clean update docker run format stats PKG=github.com/deckarep/tips VERSION := `git fetch --tags && git tag | sort -V | tail -1` @@ -12,6 +12,9 @@ default: all # Capture additional arguments which can optionally be passed in. ARGS ?= +stats: + git diff --stat HEAD~$(ARGS) HEAD + update: go get -u go mod tidy