summaryrefslogtreecommitdiff
path: root/src/git_commit.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-10-31 18:23:01 -0700
committerShawn O. Pearce <spearce@spearce.org>2008-10-31 18:30:43 -0700
commit6533aadc21270052d8d05835b1e30d8b13a2f164 (patch)
treee9c9018f4b898a2be9aa0d053153cb7d8c8af22c /src/git_commit.h
parentde2220a48fcf7901432f8093d3223e65f4072ff7 (diff)
downloadlibgit2-6533aadc21270052d8d05835b1e30d8b13a2f164.tar.gz
Drop the _t suffix as it is a POSIX reserved namespace
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git_commit.h')
-rw-r--r--src/git_commit.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/git_commit.h b/src/git_commit.h
index 05bf6713e..8c7833b36 100644
--- a/src/git_commit.h
+++ b/src/git_commit.h
@@ -50,10 +50,10 @@
GIT_BEGIN_DECL
/** Parsed representation of a commit object. */
-typedef struct git_commit_t git_commit_t;
+typedef struct git_commit git_commit;
#ifdef GIT__PRIVATE
-struct git_commit_t {
- git_oid_t id;
+struct git_commit {
+ git_oid id;
time_t commit_time;
unsigned parsed:1,
flags:26;
@@ -66,17 +66,17 @@ struct git_commit_t {
* @param id identity of the commit to locate. If the object is
* an annotated tag it will be peeled back to the commit.
* @return the commit; NULL if the commit does not exist in the
- * pool's git_odb_t, or if the commit is present but is
+ * pool's git_odb, or if the commit is present but is
* too malformed to be parsed successfully.
*/
-GIT_EXTERN(git_commit_t*) git_commit_parse(git_revp_t *pool, const git_oid_t *id);
+GIT_EXTERN(git_commit*) git_commit_parse(git_revp *pool, const git_oid *id);
/**
* Get the id of a commit.
* @param commit a previously parsed commit.
* @return object identity for the commit.
*/
-GIT_EXTERN(const git_oid_t*) git_commit_id(git_commit_t *commit);
+GIT_EXTERN(const git_oid*) git_commit_id(git_commit *commit);
/**
* Get the application data address.
@@ -85,7 +85,7 @@ GIT_EXTERN(const git_oid_t*) git_commit_id(git_commit_t *commit);
* Applications should cast to something like
* 'struct mydata*' in order to access fields.
*/
-GIT_EXTERN(void*) git_commit_appdata(git_commit_t *commit);
+GIT_EXTERN(void*) git_commit_appdata(git_commit *commit);
/** @} */
GIT_END_DECL