summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e9a95be)
raw | patch | inline | side by side (parent: e9a95be)
author | Linus Torvalds <torvalds@osdl.org> | |
Mon, 29 May 2006 19:19:37 +0000 (12:19 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 May 2006 02:08:25 +0000 (19:08 -0700) |
That was a hack, only needed because 'git fsck-objects' didn't look at
the raw tree format. Now that fsck traverses the tree itself, we can
drop it.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
the raw tree format. Now that fsck traverses the tree itself, we can
drop it.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
tree.c | patch | blob | history | |
tree.h | patch | blob | history |
index db6e59f20e87a580d132a8c52448a027fc73c666..47318ef890418c01f93c60bfc477eb59628b8110 100644 (file)
--- a/tree.c
+++ b/tree.c
struct tree_entry_list *entry;
sha1 = tree_entry_extract(&desc, &path, &mode);
+ update_tree_entry(&desc);
entry = xmalloc(sizeof(struct tree_entry_list));
entry->name = path;
entry->directory = S_ISDIR(mode) != 0;
entry->executable = (mode & S_IXUSR) != 0;
entry->symlink = S_ISLNK(mode) != 0;
- entry->zeropad = *(const char *)(desc.buf) == '0';
entry->next = NULL;
- update_tree_entry(&desc);
*list_p = entry;
list_p = &entry->next;
}