aboutsummaryrefslogtreecommitdiff
path: root/list-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'list-objects.c')
-rw-r--r--list-objects.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c
index 30ded3d4d..8953548c0 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -141,14 +141,15 @@ static void add_pending_tree(struct rev_info *revs, struct tree *tree)
void traverse_commit_list(struct rev_info *revs,
show_commit_fn show_commit,
- show_object_fn show_object)
+ show_object_fn show_object,
+ void *data)
{
int i;
struct commit *commit;
while ((commit = get_revision(revs)) != NULL) {
add_pending_tree(revs, commit->tree);
- show_commit(commit);
+ show_commit(commit, data);
}
for (i = 0; i < revs->pending.nr; i++) {
struct object_array_entry *pending = revs->pending.objects + i;