git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] GIT-VERSION-GEN: Do not require tags to be annotated

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Sep 6, 2013, 20:10 UTC
Message-ID
<522A36AA.3050701@gmail.com>

For custom builds of Git it sometimes is inconvenient to annotate tags because there simply is nothing to say, so do not require an annotation.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 GIT-VERSION-GEN | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index b444c18..68b61e3 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -12,7 +12,7 @@ if test -f version
 then
 	VN=$(cat version) || VN="$DEF_VER"
 elif test -d ${GIT_DIR:-.git} -o -f .git &&
-	VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
+	VN=$(git describe --tags --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
 	case "$VN" in
 	*$LF*) (exit 1) ;;
 	v[0-9]*)
-- 
1.8.3.msysgit.1.3.g5b82b42.dirty
Next: Junio C Hamano
Message 1 of 16 in “GIT-VERSION-GEN: Do not require tags to be annotated”
  1. GIT-VERSION-GEN: Do not require tags to be annotatedSebastian Schuberth, Sep 6, 2013
  2. Junio C HamanoSep 6, 2013
  3. Felipe ContrerasSep 7, 2013
  4. Sebastian SchuberthSep 7, 2013
  5. Junio C HamanoSep 7, 2013
  6. Sebastian SchuberthSep 7, 2013
  7. Junio C HamanoSep 8, 2013
  8. Felipe ContrerasSep 9, 2013
  9. Sebastian SchuberthSep 10, 2013
  10. Felipe ContrerasSep 10, 2013
  11. Junio C HamanoSep 10, 2013
  12. Sebastian SchuberthSep 10, 2013
  13. Felipe ContrerasSep 8, 2013
  14. Kyle J. McKaySep 6, 2013
  15. Sebastian SchuberthSep 7, 2013
  16. Felipe ContrerasSep 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.