Commit 46d8b885bd65158e8cb53266ba4b627b5991bce8

Shawn O. Pearce 2008-10-31T10:43:20

Rename git_odb_sread to just git_odb_read Most read calls will use the small object format, as the majority of the content within the database is very small objects (under 20 KB when inflated). Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

diff --git a/src/git_odb.c b/src/git_odb.c
index f2ee83a..3f88988 100644
--- a/src/git_odb.c
+++ b/src/git_odb.c
@@ -35,9 +35,9 @@
 
 #include "git_odb.h"
 
-git_result git_odb_sread(git_sobj *out, git_odb *db, const git_oid *id)
+git_result git_odb_read(git_sobj *out, git_odb *db, const git_oid *id)
 {
-	if (!git_odb__sread_packed(out, db, id))
+	if (!git_odb__read_packed(out, db, id))
 		return GIT_SUCCESS;
-	return git_odb__sread_loose(out, db, id);
+	return git_odb__read_loose(out, db, id);
 }
diff --git a/src/git_odb.h b/src/git_odb.h
index c994bb4..556c36f 100644
--- a/src/git_odb.h
+++ b/src/git_odb.h
@@ -106,7 +106,7 @@ typedef struct {
  * @return GIT_SUCCESS if the object was read;
  *         GIT_ENOTFOUND if the object is not in the database.
  */
-GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, const git_oid *id);
+GIT_EXTERN(git_result) git_odb_read(git_sobj *out, git_odb *db, const git_oid *id);
 
 /**
  * Read a small object from the database using only pack files.
@@ -116,7 +116,7 @@ GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, const git_oid *
  * @return GIT_SUCCESS if the object was read;
  *         GIT_ENOTFOUND if the object is not in the database.
  */
-GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, const git_oid *id);
+GIT_EXTERN(git_result) git_odb__read_packed(git_sobj *out, git_odb *db, const git_oid *id);
 
 /**
  * Read a small object from the database using only loose object files.
@@ -126,7 +126,7 @@ GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, const g
  * @return GIT_SUCCESS if the object was read;
  *         GIT_ENOTFOUND if the object is not in the database.
  */
-GIT_EXTERN(git_result) git_odb__sread_loose(git_sobj *out, git_odb *db, const git_oid *id);
+GIT_EXTERN(git_result) git_odb__read_loose(git_sobj *out, git_odb *db, const git_oid *id);
 
 /** @} */
 GIT_END_DECL