diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-10-31 18:34:02 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-31 18:34:02 -0700 |
| commit | 3e89665eb6d5ab75051dc59fc8b63316908b19d1 (patch) | |
| tree | 13edd1b7d5996a6b1ac38ca113f6fd751bf77827 /src/git_commit.h | |
| parent | 6dafd0566786a417cfe1131ab804b162fcc79d15 (diff) | |
| download | libgit2-3e89665eb6d5ab75051dc59fc8b63316908b19d1.tar.gz | |
Scratch the git_revp_attr configuration of a git_revp
This isn't the best idea I've head. Pierre Habouzit was suggesting
a technique of assigning a unique integer to each commit and then
allocating storage out of auxiliary pools, using the commit's unique
integer to index into any auxiliary pool in constant time. This way
both applications and the library can efficiently attach arbitrary
data onto a commit, such as rewritten parents, or flags, and have
them disconnected from the main object hash table.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git_commit.h')
| -rw-r--r-- | src/git_commit.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/git_commit.h b/src/git_commit.h index 8c7833b3..3864bcd2 100644 --- a/src/git_commit.h +++ b/src/git_commit.h @@ -78,15 +78,6 @@ GIT_EXTERN(git_commit*) git_commit_parse(git_revp *pool, const git_oid *id); */ GIT_EXTERN(const git_oid*) git_commit_id(git_commit *commit); -/** - * Get the application data address. - * @param commit a previously parsed commit. - * @return address of the application's data buffer. - * Applications should cast to something like - * 'struct mydata*' in order to access fields. - */ -GIT_EXTERN(void*) git_commit_appdata(git_commit *commit); - /** @} */ GIT_END_DECL #endif |
