lib/repo-pull: Use resolve() instead of list() in fetch_ref_contents()
authorPhilip Withnall <withnall@endlessm.com>
Tue, 26 Sep 2017 14:17:47 +0000 (15:17 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 14:44:00 +0000 (14:44 +0000)
commit2f9f7222a411906a2e508e6aecf5a7ae30a4638c
tree64038c7ad8181c8a7125a7d07def2d13e1385c15
parent149aec10997963c4447279bb7ca96a9925529d22
lib/repo-pull: Use resolve() instead of list() in fetch_ref_contents()

This is more efficient in the non-collection case; in the collection
case, the implementation of ostree_repo_resolve_collection_ref() needs
to be rewritten to improve efficiency.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1182
Approved by: cgwalters
src/libostree/ostree-repo-pull.c