summaryrefslogtreecommitdiff
path: root/src/git2/blob.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-02-28 12:12:26 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-03 20:23:52 +0200
commit5de079b86dcf8744f71fa3d0bb496a2cf9b20c0d (patch)
tree3bfac650e63c3d924d0e64638d1254fc4ee13f63 /src/git2/blob.h
parent3dccfed16382c64370dd0fd88668c9d9accae6ed (diff)
downloadlibgit2-5de079b86dcf8744f71fa3d0bb496a2cf9b20c0d.tar.gz
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 <tanoku@gmail.com>
Diffstat (limited to 'src/git2/blob.h')
-rw-r--r--src/git2/blob.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git2/blob.h b/src/git2/blob.h
index b34b5bfe9..b527d61f4 100644
--- a/src/git2/blob.h
+++ b/src/git2/blob.h
@@ -28,7 +28,7 @@
#include "common.h"
#include "types.h"
#include "oid.h"
-#include "repository.h"
+#include "object.h"
/**
* @file git2/blob.h
@@ -51,7 +51,7 @@ GIT_BEGIN_DECL
*/
GIT_INLINE(int) git_blob_lookup(git_blob **blob, git_repository *repo, const git_oid *id)
{
- return git_repository_lookup((git_object **)blob, repo, id, GIT_OBJ_BLOB);
+ return git_object_lookup((git_object **)blob, repo, id, GIT_OBJ_BLOB);
}
/**
@@ -67,7 +67,7 @@ GIT_INLINE(int) git_blob_lookup(git_blob **blob, git_repository *repo, const git
*/
GIT_INLINE(int) git_blob_new(git_blob **blob, git_repository *repo)
{
- return git_repository_newobject((git_object **)blob, repo, GIT_OBJ_BLOB);
+ return git_object_new((git_object **)blob, repo, GIT_OBJ_BLOB);
}
/**