Make fsck and fsck-objects be builtins.
[git/git.git] / builtin-fsck.c
similarity index 99%
rename from fsck.c
rename to builtin-fsck.c
index 558f0a6..fec1cbd 100644 (file)
--- a/fsck.c
@@ -571,12 +571,11 @@ static int fsck_cache_tree(struct cache_tree *it)
        return err;
 }
 
-int main(int argc, char **argv)
+int cmd_fsck(int argc, char **argv, const char *prefix)
 {
        int i, heads;
 
        track_object_refs = 1;
-       setup_git_directory();
 
        for (i = 1; i < argc; i++) {
                const char *arg = argv[i];