diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-08 19:11:38 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-26 18:18:12 +0200 |
| commit | 6a9597c5b57456dfe02e4b5ba94ef437907fe1f1 (patch) | |
| tree | 364f652d94182515bc238b14f83ddc1f2123b668 /include/git2 | |
| parent | 8b9e8de5ce2fa4da75bf5b27a73f6d74140c6eaf (diff) | |
| download | libgit2-6a9597c5b57456dfe02e4b5ba94ef437907fe1f1.tar.gz | |
Add function to generate a request
Add git_pkt_gen_proto to crete a request from an url.
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/pkt.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/net.h b/include/git2/net.h index 67e8a44e5..fb09eb508 100644 --- a/include/git2/net.h +++ b/include/git2/net.h @@ -5,6 +5,8 @@ #include "oid.h" #include "types.h" +#define GIT_DEFAULT_PORT "9418" + /* * We need this because we need to know whether we should call * git-upload-pack or git-receive-pack on the remote end when get_refs diff --git a/include/git2/pkt.h b/include/git2/pkt.h index 0b933abff..8ba3c2ac9 100644 --- a/include/git2/pkt.h +++ b/include/git2/pkt.h @@ -50,3 +50,8 @@ struct git_pkt_ref { git_remote_head head; char *capabilities; }; + +/** + * Create a git protocol request. + */ +int git_pkt_gen_proto(char **out, int *outlen, const char *url); |
