summaryrefslogtreecommitdiff
path: root/include/git2/net.h
blob: 4bef905098a097c45297a01bd296e11720a9a1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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