summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-14 18:34:50 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-25 12:44:27 +0200
commitdee5515a237b2d4182e454986025199064193376 (patch)
treebf44e2a0b6d0c9977e3b1aeab7290361dec802d8 /include/git2
parentdb0f96a6aff33612d88ab5d9263bcad9daf6b11a (diff)
downloadlibgit2-dee5515a237b2d4182e454986025199064193376.tar.gz
transports: buffer the git requests before sending them
Trying to send every single line immediately won't give us any speed improvement and duplicates the code we need for other transports. Make the git transport use the same buffer functions as HTTP.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/indexer.h2
-rw-r--r--include/git2/remote.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index a70fab214..14bd0e402 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -41,7 +41,7 @@ GIT_EXTERN(int) git_indexer_stream_new(git_indexer_stream **out, const char *git
* @param size the size of the data
* @param stats stat storage
*/
-GIT_EXTERN(int) git_indexer_stream_add(git_indexer_stream *idx, void *data, size_t size, git_indexer_stats *stats);
+GIT_EXTERN(int) git_indexer_stream_add(git_indexer_stream *idx, const void *data, size_t size, git_indexer_stats *stats);
/**
* Finalize the pack and index
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 576f5841b..8f49fddf1 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -11,6 +11,7 @@
#include "repository.h"
#include "refspec.h"
#include "net.h"
+#include "indexer.h"
/**
* @file git2/remote.h