summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-11-21 20:44:03 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-11-21 21:00:42 +0100
commit4cf01e9a1a3b81d1c8bc77fcdf7e0c20792175a7 (patch)
treecded9f4a5c77753ed239bab8867e92c27631bbb8 /include/git2/remote.h
parent0ca7ca3ef788a45293852a41c55040bc94607961 (diff)
downloadlibgit2-4cf01e9a1a3b81d1c8bc77fcdf7e0c20792175a7.tar.gz
Add git_remote_disconnect
It can be useful to separate disconnecting from actually destroying the object. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 15d0aa3c0..94453db56 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -124,6 +124,16 @@ GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headarray *refs);
GIT_EXTERN(int) git_remote_download(char **filename, git_remote *remote);
/**
+ * Disconnect from the remote
+ *
+ * Close the connection to the remote and free the underlying
+ * transport.
+ *
+ * @param remote the remote to disconnect from
+ */
+GIT_EXTERN(void) git_remote_disconnect(git_remote *remote);
+
+/**
* Free the memory associated with a remote
*
* @param remote the remote to free