* [PATCH] use "git <command>" instead of "git-<command>"
@ 2006-01-24 10:52 Uwe Zeisberger
2006-01-25 2:08 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Zeisberger @ 2006-01-24 10:52 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] use "git <command>" instead of "git-<command>"
2006-01-24 10:52 [PATCH] use "git <command>" instead of "git-<command>" Uwe Zeisberger
@ 2006-01-25 2:08 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-01-25 2:08 UTC (permalink / raw)
To: Uwe Zeisberger; +Cc: git
Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> writes:
> Otherwise installations with gitexecdir != bindir are not able
> to determine the right version.
True, but this part
> -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') ||
>...
has a subtle issue, which the commit 026351a addresses, which
will hopefully become a non-issue given enough time. Then it
would be safe to make this change.
Of course, if/when I change the main Makefile to have different
gitexecdir and bindir by default, it would become "my problem",
but until then...
> -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=
On the other hand, your patch is correct for this part. The
issue 026351a commit addressed does not apply. An ancient 'git'
that did not have 'diff-index' (it was called 'diff-cache')
would have hit a breakage early on since 'describe' did not
exist back then.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-25 2:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24 10:52 [PATCH] use "git <command>" instead of "git-<command>" Uwe Zeisberger
2006-01-25 2:08 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox