From: Junio C Hamano Date: Wed, 23 Nov 2022 02:22:25 +0000 (+0900) Subject: Merge branch 'ps/receive-use-only-advertised' X-Git-Tag: v2.39.0-rc0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8828f91256b5bc9731c313d59f8cd2d26901541;p=thirdparty%2Fgit.git Merge branch 'ps/receive-use-only-advertised' "git receive-pack" used to use all the local refs as the boundary for checking connectivity of the data "git push" sent, but now it uses only the refs that it advertised to the pusher. In a repository with the .hideRefs configuration, this reduces the resources needed to perform the check. cf. <221028.86bkpw805n.gmgdl@evledraar.gmail.com> cf. * ps/receive-use-only-advertised: receive-pack: only use visible refs for connectivity check rev-parse: add `--exclude-hidden=` option revision: add new parameter to exclude hidden refs revision: introduce struct to handle exclusions revision: move together exclusion-related functions refs: get rid of global list of hidden refs refs: fix memory leak when parsing hideRefs config --- f8828f91256b5bc9731c313d59f8cd2d26901541