From: Junio C Hamano Date: Wed, 25 Jan 2006 02:08:34 GMT Subject: Re: [PATCH] use "git " instead of "git-" Message-ID: <7v64o93vq5.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060124105224.GA6765@informatik.uni-freiburg.de> Uwe Zeisberger 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.