summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-11-18 21:18:39 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-11-18 21:18:39 +0100
commit95057b85034a226ed5f9bcd7a461a296bbdb7bd9 (patch)
treeb216de4cfb39ea46162456a5f4af6026e70c7e20 /include/git2
parent40a40e8e9daa8187450258ba538c90d70eac12fe (diff)
downloadlibgit2-95057b85034a226ed5f9bcd7a461a296bbdb7bd9.tar.gz
remote: get rid of git_remote_negotiate
There is no good reason to expose the negotiation as a different step to downloading the packfile. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 54116c22e..0781bb773 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -107,20 +107,13 @@ GIT_EXTERN(int) git_remote_connect(struct git_remote *remote, int direction);
GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headarray *refs);
/**
- * Negotiate what data needs to be exchanged to synchroize the remtoe
- * and local references
- *
- * @param remote the remote you want to negotiate with
- */
-GIT_EXTERN(int) git_remote_negotiate(git_remote *remote);
-
-/**
* Download the packfile
*
- * The packfile is downloaded with a temporary filename, as it's final
- * name is not known yet. If there was no packfile needed (all the
- * objects were available locally), filename will be NULL and the
- * function will return success.
+ * Negotiate what objects should be downloaded and download the
+ * packfile with those objects. The packfile is downloaded with a
+ * temporary filename, as it's final name is not known yet. If there
+ * was no packfile needed (all the objects were available locally),
+ * filename will be NULL and the function will return success.
*
* @param remote the remote to download from
* @param filename where to store the temproray filename