• Home
  • Raw
  • Download

Lines Matching full: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 of git tags (default 'v')
134 # then try "git describe", then default.
150 # Otherwise, if there is at least one git commit involving the working
151 # directory, and "git describe" output looks sensible, use that to
153 elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
154 && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
155 || git describe --abbrev=4 HEAD 2>/dev/null` \
162 # Is this a new git that lists number of commits since the last
167 *-*-*) : git describe is okay three part flavor ;;
169 : git describe is older two part flavor
172 # of git describe.
174 commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
176 echo "$0: WARNING: git rev-list failed" 1>&2; }
184 # Remove the "g" in git describe's output string, to save a byte.
194 # string we're using came from git. I.e., skip the test if it's "UNKNOWN"
198 git update-index --refresh > /dev/null 2>&1
200 dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=