objectpool: use rev-list for connectivity check
git fsck --connectivity-only uses much more memory than git rev-list --all --objects, which effectively does the same connectivity check but with less than half the memory consumption. Switch to using git rev-list --all --objects behind a feature flag.
Changelog: changed
fixes: #4365 (closed)
Edited by John Cai