#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" #include "cache-tree.h" #include "gettext.h" #include "hex.h" #include "lockfile.h" #include "object-name.h" #include "refs.h" #include "reset.h" #include "tree-walk.h" #include "tree.h" #include "unpack-trees.h" #include "hook.h" static int update_refs(const struct reset_head_opts *opts, const struct object_id *oid, const struct object_id *head) { … } int reset_head(struct repository *r, const struct reset_head_opts *opts) { … }