path: root/upload-pack.c
diff options
authorJunio C Hamano <>2011-09-01 22:43:33 (GMT)
committerJunio C Hamano <>2011-09-01 22:46:12 (GMT)
commit4947367267cbcd0ca528711b2393613e2e817878 (patch)
treec2a9a053ecadf7b61ef3d6017bb8ba08804342b6 /upload-pack.c
parentbeba25abbc34a07e07ce933210cda15202ef76cc (diff)
list-objects: pass callback data to show_objects()
The traverse_commit_list() API takes two callback functions, one to show commit objects, and the other to show other kinds of objects. Even though the former has a callback data parameter, so that the callback does not have to rely on global state, the latter does not. Give the show_objects() callback the same callback data parameter. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'upload-pack.c')
1 files changed, 3 insertions, 1 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 970a1eb..6be6259 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -83,7 +83,9 @@ static void show_commit(struct commit *commit, void *data)
commit->buffer = NULL;
-static void show_object(struct object *obj, const struct name_path *path, const char *component)
+static void show_object(struct object *obj,
+ const struct name_path *path, const char *component,
+ void *cb_data)
show_object_with_name(pack_pipe, obj, path, component);