projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de0bff
)
[PATCH] fetch.c: Remove redundant test of TO_SCAN in process()
author
Sergey Vlasov
<vsu@altlinux.ru>
Wed, 21 Sep 2005 16:34:19 +0000
(20:34 +0400)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 21 Sep 2005 19:32:32 +0000
(12:32 -0700)
If the SEEN flag was not set, the TO_SCAN flag cannot be set,
therefore testing it is pointless.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch.c
patch
|
blob
|
history
diff --git
a/fetch.c
b/fetch.c
index 3074f5f3567a5fc7832bda2a81eff0a4151e073d..21b373d198d7ecbed7d0052824ff130471a19fa2 100644
(file)
--- a/
fetch.c
+++ b/
fetch.c
@@
-136,8
+136,6
@@
static int process(struct object *obj)
if (has_sha1_file(obj->sha1)) {
parse_object(obj->sha1);
/* We already have it, so we should scan it now. */
- if (obj->flags & TO_SCAN)
- return 0;
obj->flags |= TO_SCAN;
} else {
if (obj->flags & COMPLETE)