From f6927154bf7517adcc6afef29e1244dbbc604647 Mon Sep 17 00:00:00 2001 From: "Bernhard E. Reiter" Date: Mon, 1 Sep 2025 15:40:26 +0200 Subject: [PATCH] improve calculated version numbers (#651) for modified git workspaces a `-modified` is added to the semantic version in the makefile. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8f164fc..7bb8ef9 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ tag_checked_out: # In this case we might in some situations see an error like # `/bin/bash: line 1: 2b55bbb: value too great for base (error token is "2b55bbb")` # which can be ignored. -GITDESC := $(shell git describe --tags --always 2>/dev/null || true) +GITDESC := $(shell git describe --tags --always --dirty=-modified 2>/dev/null || true) CURRENT_FOLDER_NAME := $(notdir $(CURDIR)) ifeq ($(strip $(GITDESC)),) SEMVER := $(CURRENT_FOLDER_NAME)