Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout: optimize "git checkout -b <new_branch>"
[gitweb.git]
/
alloc.c
diff --git
a/alloc.c
b/alloc.c
index 714df633169df5a2502b27474192c59b24b336a3..c2fc5d68886bf3f74a1f013a3a36c7b5dcad2258 100644
(file)
--- a/
alloc.c
+++ b/
alloc.c
@@
-109,6
+109,8
@@
void *alloc_commit_node(struct repository *r)
struct commit *c = alloc_node(r->parsed_objects->commit_state, sizeof(struct commit));
c->object.type = OBJ_COMMIT;
c->index = alloc_commit_index(r);
+ c->graph_pos = COMMIT_NOT_FROM_GRAPH;
+ c->generation = GENERATION_NUMBER_INFINITY;
return c;
}