#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "commit.h" #include "config.h" #include "gettext.h" #include "hex.h" #include "parse-options.h" #include "commit-graph.h" #include "object-store-ll.h" #include "progress.h" #include "replace-object.h" #include "strbuf.h" #include "tag.h" #include "trace2.h" #define BUILTIN_COMMIT_GRAPH_VERIFY_USAGE … #define BUILTIN_COMMIT_GRAPH_WRITE_USAGE … static const char * builtin_commit_graph_verify_usage[] = …; static const char * builtin_commit_graph_write_usage[] = …; static char const * const builtin_commit_graph_usage[] = …; static struct opts_commit_graph { … } opts; static struct option common_opts[] = …; static struct option *add_common_options(struct option *to) { … } static int graph_verify(int argc, const char **argv, const char *prefix) { … } extern int read_replace_refs; static struct commit_graph_opts write_opts; static int write_option_parse_split(const struct option *opt, const char *arg, int unset) { … } static int read_one_commit(struct oidset *commits, struct progress *progress, const char *hash) { … } static int write_option_max_new_filters(const struct option *opt, const char *arg, int unset) { … } static int git_commit_graph_write_config(const char *var, const char *value, const struct config_context *ctx, void *cb UNUSED) { … } static int graph_write(int argc, const char **argv, const char *prefix) { … } int cmd_commit_graph(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }