setlocalversion (2a73cce2dad3b6e0aa705b376bb736358b6b5e8e) setlocalversion (a2be76a352f1035a2e5f914a409743d65dc514c5)
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

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

83 # First, with git-status, but --no-optional-locks is only
84 # supported in git >= 2.14, so fall back to git-diff-index if
85 # it fails. Note that git-diff-index does not refresh the
86 # index, so it may give misleading results. See
87 # git-update-index(1), git-diff-index(1), and git-status(1).
88 if {
89 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
90 git diff-index --name-only HEAD
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

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

83 # First, with git-status, but --no-optional-locks is only
84 # supported in git >= 2.14, so fall back to git-diff-index if
85 # it fails. Note that git-diff-index does not refresh the
86 # index, so it may give misleading results. See
87 # git-update-index(1), git-diff-index(1), and git-status(1).
88 if {
89 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
90 git diff-index --name-only HEAD
91 } | grep -qvE '^(.. )?scripts/package'; then
91 } | read dummy; then
92 printf '%s' -dirty
93 fi
94 fi
95}
96
97collect_files()
98{
99 local file res=

--- 54 unchanged lines hidden ---
92 printf '%s' -dirty
93 fi
94 fi
95}
96
97collect_files()
98{
99 local file res=

--- 54 unchanged lines hidden ---