summaryrefslogtreecommitdiff
path: root/src/reset.c
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2014-08-03 15:44:13 +0200
committerSven Strickroth <email@cs-ware.de>2014-08-03 16:29:51 +0200
commitb8add6c42ead8721c32dea8f473a61b48091ccb1 (patch)
tree66570833a5e3c5f3c908fbc0ccc434ebba86d338 /src/reset.c
parent59e3f45b6150984e6a74ce79062caa459eda369f (diff)
downloadlibgit2-b8add6c42ead8721c32dea8f473a61b48091ccb1.tar.gz
Allow to propagate checkout callbacks to git HARD reset
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reset.c b/src/reset.c
index 248c91d3a..d063abe25 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -100,6 +100,7 @@ int git_reset(
git_repository *repo,
git_object *target,
git_reset_t reset_type,
+ git_checkout_options *checkout_opts,
git_signature *signature,
const char *log_message)
{
@@ -112,6 +113,9 @@ int git_reset(
assert(repo && target);
+ if (checkout_opts)
+ opts = *checkout_opts;
+
if (git_object_owner(target) != repo) {
giterr_set(GITERR_OBJECT,
"%s - The given target does not belong to this repository.", ERROR_MSG);