summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Ericsson <ae@op5.se>2008-11-18 01:02:27 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-11-18 10:32:53 -0800
commit1b9e92c73bd223661fe63dffa0c9138da4e1ea80 (patch)
treead2fd2eb9ab0a392524bc5d4a90888d550bcbc0d /src
parentdff79e27d3d2cdc09790ded80fe2ea8ff5d61034 (diff)
downloadlibgit2-1b9e92c73bd223661fe63dffa0c9138da4e1ea80.tar.gz
s/git_revp/git_revpool/
git_revp is something I personally can't stop pronouncing "rev pointer". I'm sure others would suffer the same problem. Also, rename the git_revp_ sub-api "gitrp_". This is the first of many such renames, primarily done to prevent extreme inflation in the "git_" namespace, which we'd like to reserve for a higher-level API. While we're at it, we remove the noise-char "c" from a lot of functions. Since revision walking is all about commits, the common case should be that we're dealing with commits. Exceptions can get a more mnemonic description as needed. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src')
-rw-r--r--src/revwalk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 2c9eb2301..91822c50e 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -26,13 +26,13 @@
#include "git/revwalk.h"
#include <stdlib.h>
-struct git_revp {
+struct git_revpool {
git_odb *db;
};
-git_revp *git_revp_alloc(git_odb *db)
+git_revpool *git_revpool_alloc(git_odb *db)
{
- git_revp *walk = malloc(sizeof(*walk));
+ git_revpool *walk = malloc(sizeof(*walk));
if (!walk)
return NULL;
@@ -40,7 +40,7 @@ git_revp *git_revp_alloc(git_odb *db)
return walk;
}
-void git_revp_free(git_revp *walk)
+void git_revpool_free(git_revpool *walk)
{
free(walk);
}