author | Junio C Hamano <gitster@pobox.com> | |
Thu, 1 Sep 2011 22:43:33 +0000 (15:43 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 1 Sep 2011 22:46:12 +0000 (15:46 -0700) | ||
commit | 4947367267cbcd0ca528711b2393613e2e817878 | |
tree | c2a9a053ecadf7b61ef3d6017bb8ba08804342b6 | tree | snapshot |
parent | beba25abbc34a07e07ce933210cda15202ef76cc | commit | 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 <gitster@pobox.com>
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 | diff | blob | history | |
builtin/rev-list.c | diff | blob | history | |
list-objects.c | diff | blob | history | |
list-objects.h | diff | blob | history | |
upload-pack.c | diff | blob | history |