HomeFreeBSD

newvers.sh: add support for gitup(1)

Description

newvers.sh: add support for gitup(1)

gitup writes a .gituprevision file into the shallow clone directory. Read that
file and print commit information only.

Submitted by: Michael Osipov <michael.osipov@siemens.com>
Pull Request: https://github.com/freebsd/freebsd-src/pull/449

While here, drop the redundant branch name from the git output and don't
count commits in shallow clones.

Reported by: Michael Osipov <michael.osipov@siemens.com>
MFC after: 2 weeks

PR: 252507

(cherry picked from commit a9fc14fbf445cffd18f34f6a602bdba84bb5a867)

Details

Provenance
michaeloAuthored on Jan 5 2021, 10:48 AM
emasteCommitted on Sep 6 2022, 7:31 PM
Parents
rG16354ca2d8c4: newvers.sh: avoid regenerating vers.c if content unchanged
Branches
Unknown
Tags
Unknown