X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=tree.c;h=dc1c41e938b6475df3611294c17ff923be72a72d;hb=e921fb82cf6fb4a5f138ec9d27bc37c658336a8c;hp=043f032151cbca16dc144f9128b6327c755bcedd;hpb=5401f3040b61e11da79d676e42aacfa9f1131083;p=git.git diff --git a/tree.c b/tree.c index 043f0321..dc1c41e9 100644 --- a/tree.c +++ b/tree.c @@ -1,8 +1,8 @@ +#include "cache.h" #include "tree.h" #include "blob.h" #include "commit.h" #include "tag.h" -#include "cache.h" #include const char *tree_type = "tree"; @@ -200,7 +200,6 @@ int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size) } if (obj) n_refs++; - entry->parent = NULL; /* needs to be filled by the user */ *list_p = entry; list_p = &entry->next; }