summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae56354)
raw | patch | inline | side by side (parent: ae56354)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 27 Feb 2006 05:19:14 +0000 (21:19 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 27 Feb 2006 05:19:14 +0000 (21:19 -0800) |
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>
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>
rev-list.c | patch | blob | history |
diff --git a/rev-list.c b/rev-list.c
index d1c52a6a9b599d6df62508394e6e8bb1cc10a126..630626ec6252fbbeac35ef7fcd9b129d439aa9de 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
return p;
}
-static struct object_list *pending_objects = NULL;
-
static void show_commit_list(struct commit_list *list)
{
struct object_list *objects = NULL, **p = &objects, *pending;
if (process_commit(commit) == STOP)
break;
}
- for (pending = pending_objects; pending; pending = pending->next) {
+ for (pending = revs.pending_objects; pending; pending = pending->next) {
struct object *obj = pending->item;
const char *name = pending->name;
if (obj->flags & (UNINTERESTING | SEEN))
}
list = revs.commits;
- if (list && list->next)
+ if (list)
limited = 1;
if (revs.topo_order)
limited = 1;
diff_tree_setup_paths(revs.paths);
}
- if (revs.max_age || revs.min_age)
+ if (revs.max_age != -1 || revs.min_age != -1)
limited = 1;
save_commit_buffer = verbose_header;