summaryrefslogtreecommitdiff
path: root/src/remote.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Bind the configuration and remotes to a repositoryCarlos Martín Nieto2011-08-181-0/+1
| | | | | | | | Configurations when taken from a repository and remotes should be identifiable as coming from a particular repository. This allows us to reduce the amount of variables that the user has to keep track of. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Implement sending havesCarlos Martín Nieto2011-08-181-5/+0
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add a generic send_wantsCarlos Martín Nieto2011-08-181-0/+5
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Slim down git_transportCarlos Martín Nieto2011-06-271-2/+2
| | | | | | | | 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>
* Add git_remote_connect and git_remote_lsCarlos Martín Nieto2011-06-271-0/+34
| | | | | | | These allow you to implement git-ls-remote when given a reference name and a repository. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Abstract the refspec query and parseCarlos Martín Nieto2011-06-261-11/+9
| | | | | | | | | | Move them to their own functions to avoid duplication and to make it easier to ignore missing configuration. Not finding 'fetch' is considered fatal, though this might not be correct behaviour (push-only remotes?) Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add a remotes APICarlos Martín Nieto2011-06-261-0/+186
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>