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

[PATCH] use "git <command>" instead of "git-<command>"

From
Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Date
Jan 24, 2006, 10:52 UTC
Message-ID
<20060124105224.GA6765@informatik.uni-freiburg.de>
Hello,

Otherwise installations with gitexecdir != bindir are not able to determine the right version.

---
 GIT-VERSION-GEN |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
9d9d610164ec140f3fee21475b976d3e4b998991
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index e3cd9fa..2085ad3 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -5,13 +5,13 @@ DEF_VER=v1.1.GIT
 
 # First try git-describe, then see if there is a version file
 # (included in release tarballs), then default
-VN=$(git-describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/-/./g') ||
+VN=$(git describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/-/./g') ||
 VN=$(cat version) ||
 VN="$DEF_VER"
 
 VN=$(expr "$VN" : v*'\(.*\)')
 
-dirty=$(sh -c 'git-diff-index --name-only HEAD' 2>/dev/null) || dirty=
+dirty=$(sh -c 'git diff-index --name-only HEAD' 2>/dev/null) || dirty=
 case "$dirty" in
 '')
 	;;
-- 
1.1.4.g2eaa

Best regards
Uwe

-- 
Uwe Zeisberger

http://www.google.com/search?q=1+year+divided+by+3+in+seconds
Next: Junio C Hamano
Message 1 of 2 in “use "git <command>" instead of "git-<command>"”
  1. use "git <command>" instead of "git-<command>"Uwe Zeisberger, Jan 24, 2006
  2. Junio C HamanoJan 25, 2006

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.