#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" #include "gettext.h" #include "hex.h" #include "object-store-ll.h" #include "run-command.h" #include "sigchain.h" #include "connected.h" #include "transport.h" #include "packfile.h" #include "promisor-remote.h" /* * If we feed all the commits we want to verify to this command * * $ git rev-list --objects --stdin --not --all * * and if it does not error out, that means everything reachable from * these commits locally exists and is connected to our existing refs. * Note that this does _not_ validate the individual objects. * * Returns 0 if everything is connected, non-zero otherwise. */ int check_connected(oid_iterate_fn fn, void *cb_data, struct check_connected_options *opt) { … }