mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
8d1d8f83b5
This teaches the internal rev-list logic to understand options that are needed for pack handling: --all, --unpacked, and --thin. It also moves two functions from builtin-rev-list to list-objects so that the two programs can share more code. Signed-off-by: Junio C Hamano <junkio@cox.net>
13 lines
382 B
C
13 lines
382 B
C
#ifndef LIST_OBJECTS_H
|
|
#define LIST_OBJECTS_H
|
|
|
|
typedef void (*show_commit_fn)(struct commit *);
|
|
typedef void (*show_object_fn)(struct object_array_entry *);
|
|
typedef void (*show_edge_fn)(struct commit *);
|
|
|
|
void traverse_commit_list(struct rev_info *revs, show_commit_fn, show_object_fn);
|
|
|
|
void mark_edges_uninteresting(struct commit_list *, struct rev_info *, show_edge_fn);
|
|
|
|
#endif
|