summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 23:13:18 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 23:13:18 (GMT)
commit8500349208e6bfd0e8bc67d294bfea93da2328a2 (patch)
treeba11908cd5f5b6f9e2ddb9b34789f5771a968c07 /tree.c
parentf220fb6b84e982417dda30b2fd09a0f1d987d2e4 (diff)
downloadgit-8500349208e6bfd0e8bc67d294bfea93da2328a2.zip
git-8500349208e6bfd0e8bc67d294bfea93da2328a2.tar.gz
git-8500349208e6bfd0e8bc67d294bfea93da2328a2.tar.bz2
Make fsck-cache do better tree checking.
We check the ordering of the entries, and we verify that none of the entries has a slash in it (this allows us to remove the hacky "has_full_path" member from the tree structure, since we now just test it by walking the tree entries instead).
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tree.c b/tree.c
index 15a16d5..72305a3 100644
--- a/tree.c
+++ b/tree.c
@@ -122,11 +122,6 @@ int parse_tree(struct tree *item)
entry->executable = mode & S_IXUSR;
entry->next = NULL;
- /* Warn about trees that don't do the recursive thing.. */
- if (strchr(path, '/')) {
- item->has_full_path = 1;
- }
-
bufptr += len + 20;
size -= len + 20;