projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2449696
)
[PATCH] fetch.c: Clean up object flag definitions
author
Sergey Vlasov
<vsu@altlinux.ru>
Wed, 21 Sep 2005 16:34:24 +0000
(20:34 +0400)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 23 Sep 2005 04:52:11 +0000
(21:52 -0700)
Remove holes left after deleting flags, and use shifts to emphasize
that flags are single bits.
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 21b373d198d7ecbed7d0052824ff130471a19fa2..b92ca8038ecec99e7ecaa0b1463cb0d1e8cb2796 100644
(file)
--- a/
fetch.c
+++ b/
fetch.c
@@
-54,9
+54,9
@@
static int process_tree(struct tree *tree)
return 0;
}
-#define COMPLETE
1U
-#define
TO_SCAN 4U
-#define
SEEN 16U
+#define COMPLETE
(1U << 0)
+#define
SEEN (1U << 1)
+#define
TO_SCAN (1U << 2)
static struct commit_list *complete = NULL;