diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-14 18:34:50 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-25 12:44:27 +0200 |
commit | dee5515a237b2d4182e454986025199064193376 (patch) | |
tree | bf44e2a0b6d0c9977e3b1aeab7290361dec802d8 /src/fetch.h | |
parent | db0f96a6aff33612d88ab5d9263bcad9daf6b11a (diff) | |
download | libgit2-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 'src/fetch.h')
-rw-r--r-- | src/fetch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fetch.h b/src/fetch.h index 03767be8d..b3192a563 100644 --- a/src/fetch.h +++ b/src/fetch.h @@ -14,5 +14,6 @@ int git_fetch_download_pack(git_remote *remote, git_off_t *bytes, git_indexer_st int git_fetch__download_pack(const char *buffered, size_t buffered_size, GIT_SOCKET fd, git_repository *repo, git_off_t *bytes, git_indexer_stats *stats); +int git_fetch_setup_walk(git_revwalk **out, git_repository *repo); #endif |