setlocalversion (2ac5e38ea4203852d6e99edd3cf11f044b0a409f) setlocalversion (ff64dd4857303dd5550faed9fd598ac90f0f2238)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3#
4# This scripts adds local version information from the version
5# control systems git, mercurial (hg) and subversion (svn).
6#
7# If something goes wrong, send a mail the kernel build mailinglist
8# (see MAINTAINERS) and CC Nico Schottelius

--- 59 unchanged lines hidden (view full) ---

68 fi
69 fi
70
71 # Is this git on svn?
72 if git config --get svn-remote.svn.url >/dev/null; then
73 printf -- '-svn%s' "`git svn find-rev $head`"
74 fi
75
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3#
4# This scripts adds local version information from the version
5# control systems git, mercurial (hg) and subversion (svn).
6#
7# If something goes wrong, send a mail the kernel build mailinglist
8# (see MAINTAINERS) and CC Nico Schottelius

--- 59 unchanged lines hidden (view full) ---

68 fi
69 fi
70
71 # Is this git on svn?
72 if git config --get svn-remote.svn.url >/dev/null; then
73 printf -- '-svn%s' "`git svn find-rev $head`"
74 fi
75
76 # Check for uncommitted changes
77 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
76 # Check for uncommitted changes.
77 # First, with git-status, but --no-optional-locks is only
78 # supported in git >= 2.14, so fall back to git-diff-index if
79 # it fails. Note that git-diff-index does not refresh the
80 # index, so it may give misleading results. See
81 # git-update-index(1), git-diff-index(1), and git-status(1).
82 if {
83 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
84 git diff-index --name-only HEAD
85 } | grep -qvE '^(.. )?scripts/package'; then
78 printf '%s' -dirty
79 fi
80
81 # All done with git
82 return
83 fi
84
85 # Check for mercurial and a mercurial repo.

--- 90 unchanged lines hidden ---
86 printf '%s' -dirty
87 fi
88
89 # All done with git
90 return
91 fi
92
93 # Check for mercurial and a mercurial repo.

--- 90 unchanged lines hidden ---