diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-02-06 22:05:24 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-02-06 22:05:25 -0800 |
| commit | 5fda343321f36384892061b21dcbe1d477145d2c (patch) | |
| tree | 3bc2ed0d898f0c4768529f5ecc9f5ec58dee9e49 /list-objects.h | |
| parent | d8d62e61353c7e34006cc5714f07f507256612df (diff) | |
| parent | 99dbbfa8ddbba2b620965d026d4ec199b8837a6f (diff) | |
| download | git-5fda343321f36384892061b21dcbe1d477145d2c.tar.gz | |
Merge branch 'ds/push-sparse-tree-walk'
"git pack-objects" learned another algorithm to compute the set of
objects to send, that trades the resulting packfile off to save
traversal cost to favor small pushes.
* ds/push-sparse-tree-walk:
pack-objects: create GIT_TEST_PACK_SPARSE
pack-objects: create pack.useSparse setting
revision: implement sparse algorithm
list-objects: consume sparse tree walk
revision: add mark_tree_uninteresting_sparse
Diffstat (limited to 'list-objects.h')
| -rw-r--r-- | list-objects.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/list-objects.h b/list-objects.h index ad40762926..a952680e46 100644 --- a/list-objects.h +++ b/list-objects.h @@ -10,7 +10,9 @@ typedef void (*show_object_fn)(struct object *, const char *, void *); void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *); typedef void (*show_edge_fn)(struct commit *); -void mark_edges_uninteresting(struct rev_info *, show_edge_fn); +void mark_edges_uninteresting(struct rev_info *revs, + show_edge_fn show_edge, + int sparse); struct oidset; struct list_objects_filter_options; |
