summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-02-28 11:24:00 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-28 14:49:29 -0800
commita4a88b2bab3b6fb0b30f63418701f42388e0fe0a (patch)
tree4e27435857e281ec0476076705b7a988086b270b /revision.h
parentd9a83684c473e04c61f0060c4926d20f8183f7b6 (diff)
downloadgit-a4a88b2bab3b6fb0b30f63418701f42388e0fe0a.tar.gz
git-rev-list libification: rev-list walking
This actually moves the "meat" of the revision walking from rev-list.c to the new library code in revision.h. It introduces the new functions void prepare_revision_walk(struct rev_info *revs); struct commit *get_revision(struct rev_info *revs); to prepare and then walk the revisions that we have. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/revision.h b/revision.h
index a22f198515..0bed3c04ff 100644
--- a/revision.h
+++ b/revision.h
@@ -3,6 +3,7 @@
#define SEEN (1u<<0)
#define UNINTERESTING (1u<<1)
+#define TREECHANGE (1u<<2)
struct rev_info {
/* Starting list */
@@ -32,7 +33,10 @@ struct rev_info {
};
/* revision.c */
-extern int setup_revisions(int argc, const char **argv, struct rev_info *revs);
+extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);
+extern void prepare_revision_walk(struct rev_info *revs);
+extern struct commit *get_revision(struct rev_info *revs);
+
extern void mark_parents_uninteresting(struct commit *commit);
extern void mark_tree_uninteresting(struct tree *tree);