commit-graph: use raw_object_store when closing
The close_commit_graph() method took a repository struct, but then only uses the raw_object_store within. Change the function prototype to make the method more flexible. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
238def57fe
commit
c3a3a964b2
@ -717,7 +717,7 @@ static void deepen_by_rev_list(struct packet_writer *writer, int ac,
|
||||
{
|
||||
struct commit_list *result;
|
||||
|
||||
close_commit_graph(the_repository);
|
||||
close_commit_graph(the_repository->objects);
|
||||
result = get_shallow_commits_by_rev_list(ac, av, SHALLOW, NOT_SHALLOW);
|
||||
send_shallow(writer, result);
|
||||
free_commit_list(result);
|
||||
|
||||
Reference in New Issue
Block a user