From e97ca19a257ee4c7b5eb4584977f50f047e6b2a4 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sat, 19 Nov 2011 09:05:36 -0800 Subject: [PATCH] Add --always and --dirty to git describe. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 4873545c9..71cd5ffed 100644 --- a/Makefile.in +++ b/Makefile.in @@ -261,7 +261,7 @@ endif version_tag.h version: @if $(GIT_PRESENT) && test -d $(srcdir)/.git; then \ echo "Using git-describe for VERSION_TAG"; \ - tag=`$(GIT) --git-dir $(srcdir)/.git describe`; \ + tag=`$(GIT) --git-dir $(srcdir)/.git describe --always --dirty`; \ tmp=`printf "#ifndef VERSION_TAG\n#define VERSION_TAG \"$$tag\"\n#endif\n"`; \ echo "$$tmp" | diff - version_tag.h > /dev/null 2>&1 || echo "$$tmp" > version_tag.h || exit 1; \ elif test -r $(srcdir)/version_tag.h; then \