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 /src/remote.c | |
| 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 'src/remote.c')
| -rw-r--r-- | src/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c index 59ea6a797..2812f5de6 100644 --- a/src/remote.c +++ b/src/remote.c @@ -172,7 +172,7 @@ const git_refspec *git_remote_pushspec(struct git_remote *remote) return &remote->push; } -int git_remote_connect(git_remote *remote, git_net_direction dir) +int git_remote_connect(git_remote *remote, int direction) { int error; git_transport *t; @@ -181,7 +181,7 @@ int git_remote_connect(git_remote *remote, git_net_direction dir) if (error < GIT_SUCCESS) return git__rethrow(error, "Failed to create transport"); - error = git_transport_connect(t, dir); + error = git_transport_connect(t, direction); if (error < GIT_SUCCESS) { error = git__rethrow(error, "Failed to connect the transport"); goto cleanup; |
