git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
754d4486f559cb3875238a2f21c65ab025634f27 blob 759 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
#!/bin/sh

GVF=GIT-VERSION-FILE
DEF_VER=v2.23.0-rc0

LF='
'

# First see if there is a version file (included in release tarballs),
# then try git-describe, then default.
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]*" HEAD 2>/dev/null) &&
	case "$VN" in
	*$LF*) (exit 1) ;;
	v[0-9]*)
		git update-index -q --refresh
		test -z "$(git diff-index --name-only HEAD --)" ||
		VN="$VN-dirty" ;;
	esac
then
	VN=$(echo "$VN" | sed -e 's/-/./g');
else
	VN="$DEF_VER"
fi

VN=$(echo "$VN" | sed 's/^v*//')

if test -r $GVF
then
	VC=$(sed -e 's/^GIT_VERSION = //' <$GVF)
else
	VC=unset
fi
test "$VN" = "$VC" || {
	echo >&2 "GIT_VERSION = $VN"
	echo "GIT_VERSION = $VN" >$GVF
}
debug log:

solving 754d4486f5 ...
found 754d4486f5 in https://public-inbox.org/git/df67a7e1d307d6a7a91ae1bba085959154006ed1.1564876327.git.gitgitgadget@gmail.com/
found a0766f64ed in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 a0766f64edab484347dfe6b2627a3d35493c0928	GIT-VERSION-GEN

applying [1/1] https://public-inbox.org/git/df67a7e1d307d6a7a91ae1bba085959154006ed1.1564876327.git.gitgitgadget@gmail.com/
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index a0766f64ed..754d4486f5 100755

Checking patch GIT-VERSION-GEN...
Applied patch GIT-VERSION-GEN cleanly.

index at:
100755 754d4486f559cb3875238a2f21c65ab025634f27	GIT-VERSION-GEN

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).