diff options
author | Sergey Vlasov <vsu@altlinux.ru> | 2005-09-21 20:34:09 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-22 21:52:11 -0700 |
commit | 51d8faf8608aa8d2f6a8c4b3c1b712adb0d39325 (patch) | |
tree | 90b7f2f0e79cd28e925d219c18f67ad95bfdc1b4 /fetch.c | |
parent | 754ac00e710386ab575843225768d4885c11c8c4 (diff) | |
download | git-51d8faf8608aa8d2f6a8c4b3c1b712adb0d39325.tar.gz |
[PATCH] fetch.c: Remove redundant TO_FETCH flag
The TO_FETCH flag also became redundant after adding the SEEN flag -
it was set and checked in process() to prevent adding the same object
to process_queue multiple times, but now SEEN guards against this.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.c')
-rw-r--r-- | fetch.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -55,7 +55,6 @@ static int process_tree(struct tree *tree) } #define COMPLETE 1U -#define TO_FETCH 2U #define TO_SCAN 4U #define SEEN 16U @@ -144,11 +143,10 @@ static int process(struct object *obj) obj->flags |= TO_SCAN; return 0; } - if (obj->flags & (COMPLETE | TO_FETCH)) + if (obj->flags & COMPLETE) return 0; object_list_insert(obj, process_queue_end); process_queue_end = &(*process_queue_end)->next; - obj->flags |= TO_FETCH; prefetch(obj->sha1); |