Method
GgitRepositoryreset
Declaration [src]
void
ggit_repository_reset (
GgitRepository* repository,
GgitObject* target,
GgitResetType reset_type,
GgitCheckoutOptions* checkout_options,
GError** error
)
Description [src]
Performs a reset of type reset_type on repository to target,
or error will be set.
Parameters
target-
Type:
GgitObjectThe target
GgitObjectwhich is a commit or a tag.The data is owned by the caller of the function. reset_type-
Type:
GgitResetTypeThe
GgitResetTypeto perform. checkout_options-
Type:
GgitCheckoutOptionsThe
GgitCheckoutOptionsto be used for a HARD reset.The data is owned by the caller of the function. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.