Commit dff79e27 by Andreas Ericsson Committed by Shawn O. Pearce

Rename "git_sobj" "git_obj"

The 's' never really made sense, since it's not a "small"
object at all, but rather a plain object. As such, it should
have a "plain" object name.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent 257bd746
...@@ -75,7 +75,7 @@ typedef struct { ...@@ -75,7 +75,7 @@ typedef struct {
void *data; /**< Raw, decompressed object data. */ void *data; /**< Raw, decompressed object data. */
size_t len; /**< Total number of bytes in data. */ size_t len; /**< Total number of bytes in data. */
git_otype type; /**< Type of this object. */ git_otype type; /**< Type of this object. */
} git_sobj; } git_obj;
/** /**
* Read a small object from the database. * Read a small object from the database.
...@@ -89,7 +89,7 @@ typedef struct { ...@@ -89,7 +89,7 @@ typedef struct {
* - GIT_SUCCESS if the object was read; * - GIT_SUCCESS if the object was read;
* - GIT_ENOTFOUND if the object is not in the database. * - GIT_ENOTFOUND if the object is not in the database.
*/ */
GIT_EXTERN(int) git_odb_read(git_sobj *out, git_odb *db, const git_oid *id); GIT_EXTERN(int) git_odb_read(git_obj *out, git_odb *db, const git_oid *id);
/** /**
* Read a small object from the database using only pack files. * Read a small object from the database using only pack files.
...@@ -103,7 +103,7 @@ GIT_EXTERN(int) git_odb_read(git_sobj *out, git_odb *db, const git_oid *id); ...@@ -103,7 +103,7 @@ GIT_EXTERN(int) git_odb_read(git_sobj *out, git_odb *db, const git_oid *id);
* - GIT_SUCCESS if the object was read. * - GIT_SUCCESS if the object was read.
* - GIT_ENOTFOUND if the object is not in the database. * - GIT_ENOTFOUND if the object is not in the database.
*/ */
GIT_EXTERN(int) git_odb__read_packed(git_sobj *out, git_odb *db, const git_oid *id); GIT_EXTERN(int) git_odb__read_packed(git_obj *out, git_odb *db, const git_oid *id);
/** /**
* Read a small object from the database using only loose object files. * Read a small object from the database using only loose object files.
...@@ -117,7 +117,7 @@ GIT_EXTERN(int) git_odb__read_packed(git_sobj *out, git_odb *db, const git_oid * ...@@ -117,7 +117,7 @@ GIT_EXTERN(int) git_odb__read_packed(git_sobj *out, git_odb *db, const git_oid *
* - GIT_SUCCESS if the object was read. * - GIT_SUCCESS if the object was read.
* - GIT_ENOTFOUND if the object is not in the database. * - GIT_ENOTFOUND if the object is not in the database.
*/ */
GIT_EXTERN(int) git_odb__read_loose(git_sobj *out, git_odb *db, const git_oid *id); GIT_EXTERN(int) git_odb__read_loose(git_obj *out, git_odb *db, const git_oid *id);
/** /**
* Release all memory used by the sobj structure. * Release all memory used by the sobj structure.
...@@ -128,7 +128,7 @@ GIT_EXTERN(int) git_odb__read_loose(git_sobj *out, git_odb *db, const git_oid *i ...@@ -128,7 +128,7 @@ GIT_EXTERN(int) git_odb__read_loose(git_sobj *out, git_odb *db, const git_oid *i
* *
* @param obj object descriptor to free. * @param obj object descriptor to free.
*/ */
GIT_INLINE(void) git_sobj_close(git_sobj *obj) GIT_INLINE(void) git_obj_close(git_obj *obj)
{ {
free(obj->data); free(obj->data);
obj->data = NULL; obj->data = NULL;
......
...@@ -80,7 +80,7 @@ void git_odb_close(git_odb *db) ...@@ -80,7 +80,7 @@ void git_odb_close(git_odb *db)
} }
int git_odb_read( int git_odb_read(
git_sobj *out, git_obj *out,
git_odb *db, git_odb *db,
const git_oid *id) const git_oid *id)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment