Merge branch 'ps/connectivity-optim'
commita5619d4f8d91a179d0e21aa16fda52fb4f0f7eaf
authorJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2021 20:49:27 +0000 (3 13:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2021 20:49:27 +0000 (3 13:49 -0700)
tree1c49fce2c9c7752763bbb5693be246b128ae5626
parent6c40894d2466d4e7fddc047a05116aa9d14712ee
parentf559d6d45e7e58ae1f922213948723de77ea77bd
Merge branch 'ps/connectivity-optim'

The revision traversal API has been optimized by taking advantage
of the commit-graph, when available, to determine if a commit is
reachable from any of the existing refs.

* ps/connectivity-optim:
  revision: avoid hitting packfiles when commits are in commit-graph
  commit-graph: split out function to search commit position
  revision: stop retrieving reference twice
  connected: do not sort input revisions
  revision: separate walk and unsorted flags