blame and friends: adjust to multiple pathspec change.

This makes things that include revision.h build again.

Blame is also built, but I am not sure how well it works (or how
well it worked to begin with) -- it was relying on tree-diff to
be using whatever pathspec was used the last time, which smells
a bit suspicious.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-04-10 18:14:54 -07:00
parent 477f2b4131
commit c4e05b1a22
6 changed files with 34 additions and 23 deletions

View File

@ -43,6 +43,9 @@ struct rev_info {
unsigned long max_age;
unsigned long min_age;
/* paths limiting */
struct diff_options diffopt;
topo_sort_set_fn_t topo_setter;
topo_sort_get_fn_t topo_getter;
};
@ -52,8 +55,8 @@ struct rev_info {
#define REV_TREE_DIFFERENT 2
/* revision.c */
extern int rev_same_tree_as_empty(struct tree *t1);
extern int rev_compare_tree(struct tree *t1, struct tree *t2);
extern int rev_same_tree_as_empty(struct rev_info *, struct tree *t1);
extern int rev_compare_tree(struct rev_info *, struct tree *t1, struct tree *t2);
extern void init_revisions(struct rev_info *revs);
extern int setup_revisions(int argc, const char **argv, struct rev_info *revs, const char *def);