summaryrefslogtreecommitdiff
path: root/include/git2/object.h
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2012-11-28 11:42:37 -0500
committerPhilip Kelley <phkelley@hotmail.com>2012-11-28 11:42:37 -0500
commit613d5eb9391d6cc33c91f4dc9cdb5ede1885dc72 (patch)
treebd94a2a5ea154a3849114575368b7531f0d45024 /include/git2/object.h
parent693021262ba0eeac2923bbce1b2262717019c807 (diff)
downloadlibgit2-613d5eb9391d6cc33c91f4dc9cdb5ede1885dc72.tar.gz
Push! By schu, phkelley, and congyiwu, et al
Diffstat (limited to 'include/git2/object.h')
-rw-r--r--include/git2/object.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/object.h b/include/git2/object.h
index fcc56cb27..66d692161 100644
--- a/include/git2/object.h
+++ b/include/git2/object.h
@@ -95,6 +95,17 @@ GIT_EXTERN(const git_oid *) git_object_id(const git_object *obj);
GIT_EXTERN(git_otype) git_object_type(const git_object *obj);
/**
+ * Get the object type of an object id
+ *
+ * @param obj the repository object
+ * @return the object's type
+ */
+GIT_EXTERN(int) git_object_oid2type(
+ git_otype *type,
+ git_repository *repo,
+ const git_oid *oid);
+
+/**
* Get the repository that owns this object
*
* Freeing or calling `git_repository_close` on the