commit-graph: load a root tree from specific graph
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:31 +0000 (09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2018 17:27:05 +0000 (10:27 -0700)
commit0cbef8f8ce6ff434011ecbf3d8d2d41ba6f10c70
tree71d2621ee43894c4ae45b607f8cb73c9324f5ce4
parent9b19adac6f160c55427bd3d74293a94670487d83
commit-graph: load a root tree from specific graph

When lazy-loading a tree for a commit, it will be important to select
the tree from a specific struct commit_graph. Create a new method that
specifies the commit-graph file and use that in
get_commit_tree_in_graph().

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c