]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects.h
list-objects: pass callback data to show_objects()
authorJunio C Hamano <gitster@pobox.com>
Thu, 1 Sep 2011 22:43:33 +0000 (15:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Sep 2011 22:46:12 +0000 (15:46 -0700)
commit4947367267cbcd0ca528711b2393613e2e817878
treec2a9a053ecadf7b61ef3d6017bb8ba08804342b6
parentbeba25abbc34a07e07ce933210cda15202ef76cc
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 <gitster@pobox.com>
builtin/pack-objects.c
builtin/rev-list.c
list-objects.c
list-objects.h
upload-pack.c