We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a2279 commit 9898a01Copy full SHA for 9898a01
1 file changed
Makefile
@@ -1,5 +1,7 @@
1
TOPTARGETS := all clean dist
2
-AMSREV := $(shell git rev-parse --short HEAD)
+AMSBRANCH := $(shell git symbolic-ref --short HEAD)
3
+AMSREV := $(AMSBRANCH)-$(shell git rev-parse --short HEAD)
4
+
5
ifneq (, $(strip $(shell git status --porcelain 2>/dev/null)))
6
AMSREV := $(AMSREV)-dirty
7
endif
0 commit comments