forked from xlymian/git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack-objects: further work on internal rev-list logic.
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>
- Loading branch information
Junio C Hamano
committed
Sep 7, 2006
1 parent
b5d97e6
commit 8d1d8f8
Showing
4 changed files
with
85 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#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 *)); | ||
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 |