git/reset.h

#ifndef RESET_H
#define RESET_H

#include "hash.h"
#include "repository.h"

#define GIT_REFLOG_ACTION_ENVIRONMENT

/* Request a detached checkout */
#define RESET_HEAD_DETACH
/* Request a reset rather than a checkout */
#define RESET_HEAD_HARD
/* Run the post-checkout hook */
#define RESET_HEAD_RUN_POST_CHECKOUT_HOOK
/* Only update refs, do not touch the worktree */
#define RESET_HEAD_REFS_ONLY
/* Update ORIG_HEAD as well as HEAD */
#define RESET_ORIG_HEAD

struct reset_head_opts {};

int reset_head(struct repository *r, const struct reset_head_opts *opts);

#endif