commit-graph: read only from specific pack-indexes
Teach git-commit-graph to inspect the objects only in a certain list of pack-indexes within the given pack directory. This allows updating the commit graph iteratively. 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
177722b344
commit
049d51a2bb
@ -304,7 +304,7 @@ void close_pack_index(struct packed_git *p)
|
||||
}
|
||||
}
|
||||
|
||||
static void close_pack(struct packed_git *p)
|
||||
void close_pack(struct packed_git *p)
|
||||
{
|
||||
close_pack_windows(p);
|
||||
close_pack_fd(p);
|
||||
@ -1850,7 +1850,7 @@ int has_pack_index(const unsigned char *sha1)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int for_each_object_in_pack(struct packed_git *p, each_packed_object_fn cb, void *data)
|
||||
int for_each_object_in_pack(struct packed_git *p, each_packed_object_fn cb, void *data)
|
||||
{
|
||||
uint32_t i;
|
||||
int r = 0;
|
||||
|
||||
Reference in New Issue
Block a user