HomeFreeBSD

newvers.sh: Speed up git_tree_modified

Description

newvers.sh: Speed up git_tree_modified

We're looking for file content differences, so ask the question of git
more directly. This helps a lot, saving tens of thousands of fork()s,
when the builder and editor see different stat() results (e.g., UIDs),
as they might with containers.

Submitted by: Nathaniel Wesley Filardo <nwf20@cl.cam.ac.uk>
Reviewed by: bdrewery, emaste, imp
Obtained from: CheriBSD
MFC after: 3 days
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27646

PR: 252028

(cherry picked from commit 17eba5e32a2cf7a217bb9f1e5dcca351f2b71cfc)

Details

Provenance
brooksAuthored on Dec 17 2020, 12:00 AM
emasteCommitted on Sep 6 2022, 5:25 PM
Reviewer
bdrewery
Differential Revision
D27646: newvers.sh: Speed up git_tree_modified
Parents
rGb67bd2859d7d: newvers.sh: fix git false positive -dirty tag
Branches
Unknown
Tags
Unknown