summaryrefslogtreecommitdiff
path: root/include/git2/refs.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-11-14 23:35:48 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-12-01 10:44:16 +0000
commit19faf7c5fcd24fab789d9b7a619b343c1fae7c86 (patch)
treebddd1859390e2ad0421ecf05a2d5fa5272503653 /include/git2/refs.h
parent26b21b391235e708ae41751a5b8d2743af0194fb (diff)
downloadlibgit2-19faf7c5fcd24fab789d9b7a619b343c1fae7c86.tar.gz
object_type: update public API to use git_object_t
git_object_t is the future; update the public API to use it. This will also ensure that we can build our tests which make use of the old API without modification (and without compiler warnings).
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r--include/git2/refs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 0dd453e55..ec67a8f95 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -699,19 +699,19 @@ GIT_EXTERN(int) git_reference_normalize_name(
* The retrieved `peeled` object is owned by the repository
* and should be closed with the `git_object_free` method.
*
- * If you pass `GIT_OBJ_ANY` as the target type, then the object
+ * If you pass `GIT_OBJECT_ANY` as the target type, then the object
* will be peeled until a non-tag object is met.
*
* @param out Pointer to the peeled git_object
* @param ref The reference to be processed
- * @param type The type of the requested object (GIT_OBJ_COMMIT,
- * GIT_OBJ_TAG, GIT_OBJ_TREE, GIT_OBJ_BLOB or GIT_OBJ_ANY).
+ * @param type The type of the requested object (GIT_OBJECT_COMMIT,
+ * GIT_OBJECT_TAG, GIT_OBJECT_TREE, GIT_OBJECT_BLOB or GIT_OBJECT_ANY).
* @return 0 on success, GIT_EAMBIGUOUS, GIT_ENOTFOUND or an error code
*/
GIT_EXTERN(int) git_reference_peel(
git_object **out,
git_reference *ref,
- git_otype type);
+ git_object_t type);
/**
* Ensure the reference name is well-formed.