summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb01937)
raw | patch | inline | side by side (parent: eb01937)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 20:29:54 +0000 (13:29 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 20:29:54 +0000 (13:29 -0700) |
More infrastructure to do efficient incremental packs.
rev-list.c | patch | blob | history |
diff --git a/rev-list.c b/rev-list.c
index abb611f8b50a97b96981bec606a2eb85b8888596..d836feb86aa501a26ef7a31c6f5612532fa6c936 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
" --max-count=nr\n"
" --max-age=epoch\n"
" --min-age=epoch\n"
+ " --bisect\n"
+ " --objects\n"
+ " --unpacked\n"
" --header\n"
" --pretty\n"
" --merge-order [ --show-breaks ]";
+static int unpacked = 0;
static int bisect_list = 0;
static int tag_objects = 0;
static int tree_objects = 0;
struct commit *commit = pop_most_recent_commit(&list, SEEN);
struct object *obj = &commit->object;
+ if (unpacked && has_sha1_pack(obj->sha1))
+ obj->flags |= UNINTERESTING;
if (obj->flags & UNINTERESTING) {
mark_parents_uninteresting(commit);
if (everybody_uninteresting(list))
blob_objects = 1;
continue;
}
+ if (!strcmp(arg, "--unpacked")) {
+ unpacked = 1;
+ limited = 1;
+ continue;
+ }
if (!strncmp(arg, "--merge-order", 13)) {
merge_order = 1;
continue;