Separate object listing routines out of rev-list

Create a separate file, list-objects.c, and move object listing
routines from rev-list to it.  The next round will use it in
pack-objects directly.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-09-04 21:50:12 -07:00
parent 7bbf88c52b
commit c64ed70d25
4 changed files with 130 additions and 99 deletions

8
list-objects.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef LIST_OBJECTS_H
#define LIST_OBJECTS_H
void traverse_commit_list(struct rev_info *revs,
void (*show_commit)(struct commit *),
void (*show_object)(struct object_array_entry *));
#endif