summaryrefslogtreecommitdiff
path: root/src/reset.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-11-28 14:26:57 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-12-01 11:54:57 +0000
commit168fe39bea3368972a8b1a33d5908e73bc790c18 (patch)
treec6d07340e2d8d2d66091c44c7763f3e1823acca2 /src/reset.c
parent18e71e6d597abe6c7feb666429c921bd19dc0ba8 (diff)
downloadlibgit2-168fe39bea3368972a8b1a33d5908e73bc790c18.tar.gz
object_type: use new enumeration namesethomson/index_fixes
Use the new object_type enumeration names within the codebase.
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reset.c b/src/reset.c
index 01b0b212f..b8d69e748 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -47,7 +47,7 @@ int git_reset_default(
return -1;
}
- if ((error = git_object_peel(&commit, target, GIT_OBJ_COMMIT)) < 0 ||
+ if ((error = git_object_peel(&commit, target, GIT_OBJECT_COMMIT)) < 0 ||
(error = git_commit_tree(&tree, (git_commit *)commit)) < 0)
goto cleanup;
}
@@ -129,7 +129,7 @@ static int reset(
reset_type == GIT_RESET_MIXED ? "reset mixed" : "reset hard")) < 0)
return error;
- if ((error = git_object_peel(&commit, target, GIT_OBJ_COMMIT)) < 0 ||
+ if ((error = git_object_peel(&commit, target, GIT_OBJECT_COMMIT)) < 0 ||
(error = git_repository_index(&index, repo)) < 0 ||
(error = git_commit_tree(&tree, (git_commit *)commit)) < 0)
goto cleanup;