Lines Matching full:git
5 # control system git.
37 [ "$(git cat-file -t "$tag" 2> /dev/null)" = tag ] || return 1
41 set -- $(git rev-list --count --left-right "$tag"...HEAD 2> /dev/null)
44 # string comparison, because $1 is empty if the 'git rev-list'
73 if test -n "$(git rev-parse --show-cdup 2>/dev/null)"; then
77 if ! head=$(git rev-parse --verify HEAD 2>/dev/null); then
114 # running further git commands
137 # You cannot use 'git describe --dirty' because it tries to create
138 # .git/index.lock .
139 # First, with git-status, but --no-optional-locks is only supported in
140 # git >= 2.14, so fall back to git-diff-index if it fails. Note that
141 # git-diff-index does not refresh the index, so it may give misleading
143 # See git-update-index(1), git-diff-index(1), and git-status(1).
145 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
146 git diff-index --name-only HEAD
200 # signed tagged state (as git describe only looks at signed
201 # or annotated tags - git tag -a/-s).