diff options
| author | Andreas Ericsson <ae@op5.se> | 2008-11-18 01:02:27 +0100 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-11-18 10:32:53 -0800 |
| commit | 1b9e92c73bd223661fe63dffa0c9138da4e1ea80 (patch) | |
| tree | ad2fd2eb9ab0a392524bc5d4a90888d550bcbc0d /include/git | |
| parent | dff79e27d3d2cdc09790ded80fe2ea8ff5d61034 (diff) | |
| download | libgit2-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 'include/git')
| -rw-r--r-- | include/git/commit.h | 2 | ||||
| -rw-r--r-- | include/git/common.h | 2 | ||||
| -rw-r--r-- | include/git/revwalk.h | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/git/commit.h b/include/git/commit.h index 160148d67..8cb3e7d4c 100644 --- a/include/git/commit.h +++ b/include/git/commit.h @@ -58,7 +58,7 @@ struct git_commit { * pool's git_odb, or if the commit is present but is * too malformed to be parsed successfully. */ -GIT_EXTERN(git_commit*) git_commit_parse(git_revp *pool, const git_oid *id); +GIT_EXTERN(git_commit*) git_commit_parse(git_revpool *pool, const git_oid *id); /** * Get the id of a commit. diff --git a/include/git/common.h b/include/git/common.h index ca65c747f..47ee6e207 100644 --- a/include/git/common.h +++ b/include/git/common.h @@ -85,7 +85,7 @@ GIT_BEGIN_DECL /** A revision traversal pool. */ -typedef struct git_revp git_revp; +typedef struct git_revpool git_revpool; /** @} */ GIT_END_DECL diff --git a/include/git/revwalk.h b/include/git/revwalk.h index cd8748951..5c0b005b6 100644 --- a/include/git/revwalk.h +++ b/include/git/revwalk.h @@ -50,40 +50,40 @@ GIT_BEGIN_DECL * @param db the database objects are read from. * @return the new traversal handle; NULL if memory is exhausted. */ -GIT_EXTERN(git_revp*) git_revp_alloc(git_odb *db); +GIT_EXTERN(git_revpool*) gitrp_alloc(git_odb *db); /** * Reset the traversal machinary for reuse. * @param pool traversal handle to reset. */ -GIT_EXTERN(void) git_revp_reset(git_revp *pool); +GIT_EXTERN(void) gitrp_reset(git_revpool *pool); /** * Mark an object to start traversal from. * @param pool the pool being used for the traversal. * @param commit the commit the commit to start from. */ -GIT_EXTERN(void) git_revp_pushc(git_revp *pool, git_commit *commit); +GIT_EXTERN(void) gitrp_push(git_revpool *pool, git_commit *commit); /** * Mark a commit (and its ancestors) uninteresting for the output. * @param pool the pool being used for the traversal. * @param commit the commit the commit to start from. */ -GIT_EXTERN(void) git_revp_hidec(git_revp *pool, git_commit *commit); +GIT_EXTERN(void) gitrp_hide(git_revpool *pool, git_commit *commit); /** * Get the next commit from the revision traversal. * @param pool the pool to pop the commit from. * @return next commit; NULL if there is no more output. */ -GIT_EXTERN(git_commit*) git_revp_nextc(git_revp *pool); +GIT_EXTERN(git_commit*) gitrp_next(git_revpool *pool); /** * Free a revwalk previously allocated. * @param pool traversal handle to close. If NULL nothing occurs. */ -GIT_EXTERN(void) git_revp_free(git_revp *pool); +GIT_EXTERN(void) gitrp_free(git_revpool *pool); /** @} */ GIT_END_DECL |
