summaryrefslogtreecommitdiff
path: root/include/git2/net.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-08 19:11:38 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-06-26 18:18:12 +0200
commit6a9597c5b57456dfe02e4b5ba94ef437907fe1f1 (patch)
tree364f652d94182515bc238b14f83ddc1f2123b668 /include/git2/net.h
parent8b9e8de5ce2fa4da75bf5b27a73f6d74140c6eaf (diff)
downloadlibgit2-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/net.h')
-rw-r--r--include/git2/net.h2
1 files changed, 2 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