diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-27 20:23:47 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-06-27 20:23:47 +0200 |
commit | 0ac2726fdf945792028e59105d8630a91c5d3663 (patch) | |
tree | 29d40edaa6c723c3a8b2f82e81608168c224949c /include/git2/net.h | |
parent | 5da5321d1753ed897a2597e4ad7ff1928aa7cbbc (diff) | |
download | libgit2-0ac2726fdf945792028e59105d8630a91c5d3663.tar.gz |
Slim down git_transport
Remove the unused repo and private pointers and make the direction a
flag, as it can only have two states. Change the connect signature to
use an int instead of git_net_direction and remove that enum.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/net.h')
-rw-r--r-- | include/git2/net.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/git2/net.h b/include/git2/net.h index fb09eb508..4bef90509 100644 --- a/include/git2/net.h +++ b/include/git2/net.h @@ -13,10 +13,8 @@ * gets called. */ -enum git_net_direction { - INTENT_PUSH, - INTENT_PULL -}; +#define GIT_DIR_FETCH 0 +#define GIT_DIR_PUSH 1 /* * This is what we give out on ->ls() |