diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-04-10 08:56:06 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-11 10:43:02 +0900 |
commit | 049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244 (patch) | |
tree | d0bfac6465a31845070c4c55d6916dd6997e94c8 /packfile.c | |
parent | 177722b344256b84f1c97b7363d3f19c04928039 (diff) | |
download | git-049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244.tar.gz |
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>
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packfile.c b/packfile.c index 5d07f330c8..f14179f937 100644 --- a/packfile.c +++ b/packfile.c @@ -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; |