diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-04 13:07:55 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:08 +0200 |
| commit | e1d88030687b2ccd652cfedd97714fb37367bbf9 (patch) | |
| tree | 57b33e70540666ebc38e12a16b7de7ff23cb00ab /src/remote.c | |
| parent | 44daec422950e0227a863021b6bf4fb8554b6c9c (diff) | |
| download | libgit2-e1d88030687b2ccd652cfedd97714fb37367bbf9.tar.gz | |
Don't expose the fetch code to the user
Move the generation of the want-list to be done from the negotiate
function, and keep the filtered references inside the remote
structure.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 809bfbb57..07628d8d0 100644 --- a/src/remote.c +++ b/src/remote.c @@ -30,6 +30,7 @@ #include "config.h" #include "repository.h" #include "remote.h" +#include "fetch.h" static int refspec_parse(git_refspec *refspec, const char *str) { @@ -202,6 +203,16 @@ int git_remote_ls(git_remote *remote, git_headarray *refs) return git_transport_ls(remote->transport, refs); } +int git_remote_negotiate(git_remote *remote) +{ + return git_fetch_negotiate(remote); +} + +git_headarray *git_remote_tips(git_remote *remote) +{ + return &remote->refs; +} + void git_remote_free(git_remote *remote) { free(remote->fetch.src); |
