diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-07-05 04:31:37 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-07-05 04:31:37 -0700 |
| commit | f12aa9dc5ed04cfe92f1d536314eb03185f67f7d (patch) | |
| tree | b720325beef678f7d132280d8f2644277a4e7d86 /include/git2/net.h | |
| parent | 7d69f78897fc079a58059d9a84ab5928161d78cb (diff) | |
| parent | 0ac2726fdf945792028e59105d8630a91c5d3663 (diff) | |
| download | libgit2-f12aa9dc5ed04cfe92f1d536314eb03185f67f7d.tar.gz | |
Merge pull request #300 from carlosmn/gsoc2011/master
A bit of networking
Diffstat (limited to 'include/git2/net.h')
| -rw-r--r-- | include/git2/net.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/git2/net.h b/include/git2/net.h new file mode 100644 index 000000000..4bef90509 --- /dev/null +++ b/include/git2/net.h @@ -0,0 +1,33 @@ +#ifndef INCLUDE_net_h__ +#define INCLUDE_net_h__ + +#include "common.h" +#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 + * gets called. + */ + +#define GIT_DIR_FETCH 0 +#define GIT_DIR_PUSH 1 + +/* + * This is what we give out on ->ls() + */ + +struct git_remote_head { + git_oid oid; + char *name; +}; + +struct git_headarray { + unsigned int len; + struct git_remote_head **heads; +}; + +#endif |
