libgit2.reset

Members

Enums

GIT_RESET_SOFT
anonymousenum GIT_RESET_SOFT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_reset_t
enum git_reset_t

Kinds of reset operation

Functions

git_reset
int git_reset(libgit2.types.git_repository* repo, const(libgit2.types.git_object)* target, .git_reset_t reset_type, const(libgit2.checkout.git_checkout_options)* checkout_opts)

Sets the current head to the specified commit oid and optionally resets the index and working tree to match.

git_reset_default
int git_reset_default(libgit2.types.git_repository* repo, const(libgit2.types.git_object)* target, const(libgit2.strarray.git_strarray)* pathspecs)

Updates some entries in the index from the target commit tree.

git_reset_from_annotated
int git_reset_from_annotated(libgit2.types.git_repository* repo, const(libgit2.types.git_annotated_commit)* commit, .git_reset_t reset_type, const(libgit2.checkout.git_checkout_options)* checkout_opts)

Sets the current head to the specified commit oid and optionally resets the index and working tree to match.

Meta

License

GPL-2.0(Linking Exception)