We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1f8209 commit cf1add2Copy full SHA for cf1add2
scripts/setlocalversion
@@ -67,19 +67,6 @@ scm_version()
67
printf -- '-svn%s' "`git svn find-rev $head`"
68
fi
69
70
- # Check for uncommitted changes.
71
- # First, with git-status, but --no-optional-locks is only
72
- # supported in git >= 2.14, so fall back to git-diff-index if
73
- # it fails. Note that git-diff-index does not refresh the
74
- # index, so it may give misleading results. See
75
- # git-update-index(1), git-diff-index(1), and git-status(1).
76
- if {
77
- git --no-optional-locks status -uno --porcelain 2>/dev/null ||
78
- git diff-index --name-only HEAD
79
- } | grep -qvE '^(.. )?scripts/package'; then
80
- printf '%s' -dirty
81
- fi
82
-
83
# All done with git
84
return
85
0 commit comments