Lines Matching refs:git
5 # control systems git, mercurial (hg) and subversion (svn).
46 # Check for git and a git repo.
47 if test -z "$(git rev-parse --show-cdup 2>/dev/null)" &&
48 head=$(git rev-parse --verify HEAD 2>/dev/null); then
52 if [ -z "$(git describe --exact-match 2>/dev/null)" ]; then
55 # running further git commands
65 # independent of git version, local
71 if atag="$(git describe --abbrev=12 2>/dev/null)"; then
82 # Is this git on svn?
83 if git config --get svn-remote.svn.url >/dev/null; then
84 printf -- '-svn%s' "$(git svn find-rev $head)"
88 # First, with git-status, but --no-optional-locks is only
89 # supported in git >= 2.14, so fall back to git-diff-index if
90 # it fails. Note that git-diff-index does not refresh the
92 # git-update-index(1), git-diff-index(1), and git-status(1).
94 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
95 git diff-index --name-only HEAD
100 # All done with git
185 # annotated or signed tagged state (as git describe only
186 # looks at signed or annotated tags - git tag -a/-s) and