summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9cff26)
raw | patch | inline | side by side (parent: f9cff26)
author | Sergey Vlasov <vsu@altlinux.ru> | |
Wed, 21 Sep 2005 16:34:04 +0000 (20:34 +0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Sep 2005 19:32:32 +0000 (12:32 -0700) |
After adding the SEEN flag, the SCANNED flag became obviously
redundant - each object can get into process_queue through process()
only once, and therefore multiple calls to process_object() for the
same object are not possible.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
redundant - each object can get into process_queue through process()
only once, and therefore multiple calls to process_object() for the
same object are not possible.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch.c | patch | blob | history |
index bcdacaf77f403a56c8789e4a67d2899de1e445e1..a1748e0b3ded9c60ae6b37c599e6b837482e87e0 100644 (file)
--- a/fetch.c
+++ b/fetch.c
#define COMPLETE 1U
#define TO_FETCH 2U
#define TO_SCAN 4U
-#define SCANNED 8U
#define SEEN 16U
static struct commit_list *complete = NULL;
static int process_object(struct object *obj)
{
- if (obj->flags & SCANNED)
- return 0;
- obj->flags |= SCANNED;
-
if (obj->type == commit_type) {
if (process_commit((struct commit *)obj))
return -1;
if (has_sha1_file(obj->sha1)) {
parse_object(obj->sha1);
/* We already have it, so we should scan it now. */
- if (obj->flags & (SCANNED | TO_SCAN))
+ if (obj->flags & TO_SCAN)
return 0;
object_list_insert(obj, process_queue_end);
process_queue_end = &(*process_queue_end)->next;