Home | History | Annotate | Download | only in strace

Lines Matching refs:git

20 # This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
22 # - from a git repository in which the "git describe" command below
24 # - from a non-git-repo directory containing a .tarball-version file, which
25 # presumes this script is invoked like "./git-version-gen .tarball-version".
32 # the last time autoconf was run, and used by git-version-gen. Must not
33 # be present in either $(srcdir) or $(builddir) for git-version-gen to
58 # m4_esyscmd([build-aux/git-version-gen .tarball-version]),
75 version="git-version-gen $scriptversion
88 --prefix PREFIX prefix of git tags (default 'v')
90 fallback version to use if \"git --version\" fails
138 # then try "git describe", then default.
154 # Otherwise, if there is at least one git commit involving the working
155 # directory, and "git describe" output looks sensible, use that to
157 elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
158 && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
159 || git describe --abbrev=4 HEAD 2>/dev/null` \
166 # Is this a new git that lists number of commits since the last
171 *-*-*) : git describe is okay three part flavor ;;
173 : git describe is older two part flavor
176 # of git describe.
178 commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
180 echo "$0: WARNING: git rev-list failed" 1>&2; }
188 # Remove the "g" in git describe's output string, to save a byte.
191 elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
200 # string we're using came from git. I.e., skip the test if it's "UNKNOWN"
204 git update-index --refresh > /dev/null 2>&1
206 dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=