github.com/codeready-toolchain/api@v0.0.0-20240507023248-73662d6db2c5/make/git.mk (about) 1 2 GIT_COMMIT_ID := $(shell git rev-parse HEAD) 3 ifneq ($(shell git status --porcelain --untracked-files=no),) 4 GIT_COMMIT_ID := $(GIT_COMMIT_ID)-dirty 5 endif 6 7 GIT_COMMIT_ID_SHORT := $(shell git rev-parse --short HEAD) 8 ifneq ($(shell git status --porcelain --untracked-files=no),) 9 GIT_COMMIT_ID_SHORT := $(GIT_COMMIT_ID_SHORT)-dirty 10 endif 11 12 BUILD_TIME = `date -u '+%Y-%m-%dT%H:%M:%SZ'`