Add a "checkout-cache" command which does what the name suggests.
[gitweb.git] / fsck-cache.c
index 0a97566e87480b4e839c692d5d3a405b0cf3643b..a01513ed4d4d565911a60981bfb4173311ba3688 100644 (file)
@@ -30,6 +30,7 @@ static int fsck_tree(unsigned char *sha1, void *data, unsigned long size)
                size -= len + 20;
                mark_needs_sha1(sha1, "blob", file_sha1);
        }
+       return 0;
 }
 
 static int fsck_commit(unsigned char *sha1, void *data, unsigned long size)
@@ -49,6 +50,7 @@ static int fsck_commit(unsigned char *sha1, void *data, unsigned long size)
                mark_needs_sha1(sha1, "commit", parent_sha1);
                data += 7 + 40 + 1;     /* "parent " + <hex sha1> + '\n' */
        }
+       return 0;
 }
 
 static int fsck_entry(unsigned char *sha1, char *tag, void *data, unsigned long size)