Home
last modified time | relevance | path

Searched hist:"630 ff0faf84eac6448c851961d4865471a792160" (Results 1 – 1 of 1) sorted by relevance

/linux/scripts/
H A Dsetlocalversiondiff 630ff0faf84eac6448c851961d4865471a792160 Sun May 23 05:14:27 CEST 2021 Masahiro Yamada <masahiroy@kernel.org> scripts/setlocalversion: factor out 12-chars hash construction

Both of if and else parts append exactly 12 hex chars, but in
different ways.

Factor out the else part because we need to support it without relying
on git-describe. Remove the --abbrev=12 option since we do not use the
hash from git-describe anyway.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org>