Lines Matching full:git
5 # control systems git, mercurial (hg) and subversion (svn).
64 # Check for git and a git repo.
65 if head=$(git rev-parse --verify HEAD 2>/dev/null); then
75 if [ -z "$(git describe --exact-match 2>/dev/null)" ]; then
78 # running further git commands
88 # independent of git version, local
94 if atag="$(git describe --abbrev=12 2>/dev/null)"; then
105 # Is this git on svn?
106 if git config --get svn-remote.svn.url >/dev/null; then
107 printf -- '-svn%s' "$(git svn find-rev $head)"
111 # First, with git-status, but --no-optional-locks is only
112 # supported in git >= 2.14, so fall back to git-diff-index if
113 # it fails. Note that git-diff-index does not refresh the
115 # git-update-index(1), git-diff-index(1), and git-status(1).
117 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
118 git diff-index --name-only HEAD
123 # All done with git
208 # annotated or signed tagged state (as git describe only
209 # looks at signed or annotated tags - git tag -a/-s) and