From 5de079b86dcf8744f71fa3d0bb496a2cf9b20c0d Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 28 Feb 2011 12:12:26 +0200 Subject: Change the object creation/lookup API The methods previously known as git_repository_lookup git_repository_newobject git_repository_lookup_ref are now part of their respective namespaces: git_object_lookup git_object_new git_reference_lookup This makes the API more consistent with the new references API. Signed-off-by: Vicent Marti --- src/git2/commit.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/git2/commit.h') diff --git a/src/git2/commit.h b/src/git2/commit.h index 4d0b2ab99..21836dbbd 100644 --- a/src/git2/commit.h +++ b/src/git2/commit.h @@ -28,7 +28,7 @@ #include "common.h" #include "types.h" #include "oid.h" -#include "repository.h" +#include "object.h" /** * @file git2/commit.h @@ -52,7 +52,7 @@ GIT_BEGIN_DECL */ GIT_INLINE(int) git_commit_lookup(git_commit **commit, git_repository *repo, const git_oid *id) { - return git_repository_lookup((git_object **)commit, repo, id, GIT_OBJ_COMMIT); + return git_object_lookup((git_object **)commit, repo, id, GIT_OBJ_COMMIT); } /** @@ -68,7 +68,7 @@ GIT_INLINE(int) git_commit_lookup(git_commit **commit, git_repository *repo, con */ GIT_INLINE(int) git_commit_new(git_commit **commit, git_repository *repo) { - return git_repository_newobject((git_object **)commit, repo, GIT_OBJ_COMMIT); + return git_object_new((git_object **)commit, repo, GIT_OBJ_COMMIT); } /** -- cgit v1.2.1