#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" #include "config.h" #include "gettext.h" #include "hex.h" #include "http.h" #include "walker.h" #include "setup.h" #include "strvec.h" #include "url.h" #include "urlmatch.h" #include "trace2.h" static const char http_fetch_usage[] = …; static int fetch_using_walker(const char *raw_url, int get_verbosely, int get_recover, int commits, char **commit_id, const char **write_ref, int commits_on_stdin) { … } static void fetch_single_packfile(struct object_id *packfile_hash, const char *url, const char **index_pack_args) { … } int cmd_main(int argc, const char **argv) { … }