#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" #include "hex.h" #include "refs.h" #include "setup.h" #include "worktree.h" #include "object-store-ll.h" #include "path.h" #include "repository.h" #include "strbuf.h" #include "revision.h" struct flag_definition { … }; #define FLAG_DEF(x) … static unsigned int parse_flags(const char *str, struct flag_definition *defs) { … } static struct flag_definition empty_flags[] = …; static const char *notnull(const char *arg, const char *name) { … } static unsigned int arg_flags(const char *arg, const char *name, struct flag_definition *defs) { … } static const char **get_store(const char **argv, struct ref_store **refs) { … } static int cmd_create_symref(struct ref_store *refs, const char **argv) { … } static struct flag_definition transaction_flags[] = …; static int cmd_delete_refs(struct ref_store *refs, const char **argv) { … } static int cmd_rename_ref(struct ref_store *refs, const char **argv) { … } static int each_ref(const char *refname, const struct object_id *oid, int flags, void *cb_data UNUSED) { … } static int cmd_for_each_ref(struct ref_store *refs, const char **argv) { … } static int cmd_for_each_ref__exclude(struct ref_store *refs, const char **argv) { … } static int cmd_resolve_ref(struct ref_store *refs, const char **argv) { … } static int cmd_verify_ref(struct ref_store *refs, const char **argv) { … } static int each_reflog(const char *refname, void *cb_data UNUSED) { … } static int cmd_for_each_reflog(struct ref_store *refs, const char **argv UNUSED) { … } static int each_reflog_ent(struct object_id *old_oid, struct object_id *new_oid, const char *committer, timestamp_t timestamp, int tz, const char *msg, void *cb_data UNUSED) { … } static int cmd_for_each_reflog_ent(struct ref_store *refs, const char **argv) { … } static int cmd_for_each_reflog_ent_reverse(struct ref_store *refs, const char **argv) { … } static int cmd_reflog_exists(struct ref_store *refs, const char **argv) { … } static int cmd_create_reflog(struct ref_store *refs, const char **argv) { … } static int cmd_delete_reflog(struct ref_store *refs, const char **argv) { … } static int cmd_delete_ref(struct ref_store *refs, const char **argv) { … } static int cmd_update_ref(struct ref_store *refs, const char **argv) { … } struct command { … }; static struct command commands[] = …; int cmd__ref_store(int argc UNUSED, const char **argv) { … }