Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-25 17:10:09 +0400
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-06-26 20:18:12 +0400
commitd6258debbe05e3892466722f897ae932e8e7d8aa (patch)
tree1fe110900abb96bfa97a45a8703b3c3b9ff10f20 /src/transport.c
parent8f866daee5a0a43702f349c7fa46d3274542650c (diff)
Implement ls-remote on local drive
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/transport.c')
-rw-r--r--src/transport.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/transport.c b/src/transport.c
index c08345968..2ef99dc38 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -61,6 +61,8 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url
if (transport == NULL)
return GIT_ENOMEM;
+ memset(transport, 0x0, sizeof(git_transport));
+
transport->url = git__strdup(url);
if (transport->url == NULL)
return GIT_ENOMEM;
@@ -75,3 +77,23 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url
return GIT_SUCCESS;
}
+
+int git_transport_connect(git_transport *transport, git_net_direction dir)
+{
+ return transport->connect(transport, dir);
+}
+
+int git_transport_ls(git_transport *transport, git_headarray *array)
+{
+ return transport->ls(transport, array);
+}
+
+int git_transport_close(git_transport *transport)
+{
+ return transport->close(transport);
+}
+
+void git_transport_free(git_transport *transport)
+{
+ transport->free(transport);
+}