@matheusbsbs / matheus-bagliano / commits / d9cfb964c7
Fork 0

rev-list split: minimum fixup.

This fixes "the other end has commit X but since then we tagged that commit with tag T, and he says he wants T -- what is the list of objects we need to send him?" question: git-rev-list --objects ^X T We ended up sending everything since the beginning of time X-<. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Feb 26, 2006 at 21:19 UTC d9cfb964c7a59a39711da12e56563e10aa388331
1 file changed +3 -5
rev-list.c
+3 -5
@@ -214,8 +214,6 @@ static struct object_list **process_tree(struct tree *tree,
214 return p;
215 }
216
217 -static struct object_list *pending_objects = NULL;
218 -
217 static void show_commit_list(struct commit_list *list)
218 {
219 struct object_list *objects = NULL, **p = &objects, *pending;
@@ -226,7 +224,7 @@ static void show_commit_list(struct commit_list *list)
224 if (process_commit(commit) == STOP)
225 break;
226 }
229 - for (pending = pending_objects; pending; pending = pending->next) {
227 + for (pending = revs.pending_objects; pending; pending = pending->next) {
228 struct object *obj = pending->item;
229 const char *name = pending->name;
230 if (obj->flags & (UNINTERESTING | SEEN))
@@ -675,7 +673,7 @@ int main(int argc, const char **argv)
673 }
674
675 list = revs.commits;
678 - if (list && list->next)
676 + if (list)
677 limited = 1;
678
679 if (revs.topo_order)
@@ -689,7 +687,7 @@ int main(int argc, const char **argv)
687 limited = 1;
688 diff_tree_setup_paths(revs.paths);
689 }
692 - if (revs.max_age || revs.min_age)
690 + if (revs.max_age != -1 || revs.min_age != -1)
691 limited = 1;
692
693 save_commit_buffer = verbose_header;