diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-25 15:10:09 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-26 18:18:12 +0200 |
commit | d6258debbe05e3892466722f897ae932e8e7d8aa (patch) | |
tree | 1fe110900abb96bfa97a45a8703b3c3b9ff10f20 /include/git2 | |
parent | 8f866daee5a0a43702f349c7fa46d3274542650c (diff) | |
download | libgit2-d6258debbe05e3892466722f897ae932e8e7d8aa.tar.gz |
Implement ls-remote on local drive
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/net.h | 2 | ||||
-rw-r--r-- | include/git2/transport.h | 10 | ||||
-rw-r--r-- | include/git2/types.h | 1 |
3 files changed, 8 insertions, 5 deletions
diff --git a/include/git2/net.h b/include/git2/net.h index 869309f9d..67e8a44e5 100644 --- a/include/git2/net.h +++ b/include/git2/net.h @@ -27,7 +27,7 @@ struct git_remote_head { struct git_headarray { unsigned int len; - struct git_remote_head *heads; + struct git_remote_head **heads; }; #endif diff --git a/include/git2/transport.h b/include/git2/transport.h index dfbc1a84c..a12b11b34 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -43,12 +43,14 @@ GIT_BEGIN_DECL * @param tranport the transport for the url * @param url the url of the repo */ -GIT_EXTERN(int) git_transport_get(git_transport *transport, const char *url); +GIT_EXTERN(int) git_transport_new(git_transport **transport, git_repository *repo, const char *url); GIT_EXTERN(int) git_transport_connect(git_transport *transport, git_net_direction direction); -/* -GIT_EXTERN(const git_vector *) git_transport_get_refs(git_transport *transport); -*/ + +GIT_EXTERN(int) git_transport_ls(git_transport *transport, git_headarray *array); +GIT_EXTERN(int) git_transport_close(git_transport *transport); +GIT_EXTERN(void) git_transport_free(git_transport *transport); + GIT_EXTERN(int) git_transport_add(git_transport *transport, const char *prefix); /** @} */ diff --git a/include/git2/types.h b/include/git2/types.h index 69aa28955..8e0659127 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -179,6 +179,7 @@ typedef enum git_net_direction git_net_direction; typedef int (*git_transport_cb)(git_transport *transport); +typedef struct git_remote_head git_remote_head; typedef struct git_headarray git_headarray; /** @} */ |