summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-30 15:00:05 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-30 15:00:05 +0100
commita6154f2183043626cdbe995b4795346610b5862e (patch)
treeda7018cc6cf06bf27cb11cef356d6b9fde31b9fd /include/git2/odb_backend.h
parent5c50f22a93c78190fb7d81802199ff9defc8cf55 (diff)
downloadlibgit2-a6154f2183043626cdbe995b4795346610b5862e.tar.gz
indexer: remove the stream infix
It was there to keep it apart from the one which read in from a file on disk. This other indexer does not exist anymore, so there is no need for anything other than git_indexer to refer to it. While here, rename _add() function to _append() and _finalize() to _commit(). The former change is cosmetic, while the latter avoids talking about "finalizing", which OO languages use to mean something completely different.
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index a6cb285dc..1b3e2fd12 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -116,7 +116,7 @@ struct git_odb_stream {
struct git_odb_writepack {
git_odb_backend *backend;
- int (*add)(git_odb_writepack *writepack, const void *data, size_t size, git_transfer_progress *stats);
+ int (*append)(git_odb_writepack *writepack, const void *data, size_t size, git_transfer_progress *stats);
int (*commit)(git_odb_writepack *writepack, git_transfer_progress *stats);
void (*free)(git_odb_writepack *writepack);
};