#include "test-tool.h" #include "hex.h" #include "repository.h" #include "object-store-ll.h" #include "setup.h" /* * Prints the size of the object corresponding to the given hash in a specific * gitdir. This is similar to "git -C gitdir cat-file -s", except that this * exercises the code that accesses the object of an arbitrary repository that * is not the_repository. ("git -C gitdir" makes it so that the_repository is * the one in gitdir.) */ static void object_info(const char *gitdir, const char *oid_hex) { … } int cmd__partial_clone(int argc, const char **argv) { … }