]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
newvers.sh: Speed up git_tree_modified
authorbrooks <brooks@FreeBSD.org>
Thu, 17 Dec 2020 00:00:21 +0000 (00:00 +0000)
committerbrooks <brooks@FreeBSD.org>
Thu, 17 Dec 2020 00:00:21 +0000 (00:00 +0000)
commite9b079afc8a69ddaecc917891593c123e0298cae
treef596ef10b28d7af1fe7f0d7ed0afaaa0f44fec8f
parent8bc03ea64f548ba9f683e432f3abd97b13bb4093
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
sys/conf/newvers.sh