summaryrefslogtreecommitdiff
path: root/src/fetch.h
Commit message (Collapse)AuthorAgeFilesLines
* remote: move the tagopt setting to the fetch optionsCarlos Martín Nieto2015-05-131-1/+1
| | | | | This is another option which we should not be keeping in the remote, but is specific to each particular operation.
* Remove the callbacks struct from the remoteCarlos Martín Nieto2015-05-131-1/+1
| | | | | | | | | | | | | | Having the setting be different from calling its actions was not a great idea and made for the sake of the wrong convenience. Instead of that, accept either fetch options, push options or the callbacks when dealing with the remote. The fetch options are currently only the callbacks, but more options will be moved from setters and getters on the remote to the options. This does mean passing the same struct along the different functions but the typical use-case will only call git_remote_fetch() or git_remote_push() and so won't notice much difference.
* Don't redefine the same callback types, their signatures may changeJacques Germishuys2014-04-211-1/+1
|
* remote: put the _download() callback with the othersCarlos Martín Nieto2013-10-021-4/+1
| | | | | | The text progress and update_tips callbacks are already part of the struct, which was meant to unify the callback setup, but the download one was left out.
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Remove 'bytes' param from git_remote_downloadBen Straub2012-10-241-2/+0
|
* Network progress: rename thingsBen Straub2012-10-241-3/+3
| | | | | | | git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
* Fetch/indexer: progress callbacksBen Straub2012-10-191-2/+14
|
* Add git_indexer_stats field to git_remoteBen Straub2012-10-191-1/+1
| | | | | Also removing all the *stats parameters from external APIs that don't need them anymore.
* remote: use the same code to control git and httpCarlos Martín Nieto2012-07-301-2/+1
| | | | | | | | This allows us to add capabilitites to both at the same time, keeps them in sync and removes a lot of code. gitno_buffer now uses a callback to fill its buffer, allowing us to use the same interface for git and http (which uses callbacks).
* http: add https support when GnuTLS is availableCarlos Martín Nieto2012-05-191-1/+1
| | | | | | | | If it's not available, an error saying so will be returned when trying to use a https:// URL. This also unifies a lot of the network code to use git_transport in many places instead of an socket descriptor.
* transports: buffer the git requests before sending themCarlos Martín Nieto2012-04-251-0/+1
| | | | | | Trying to send every single line immediately won't give us any speed improvement and duplicates the code we need for other transports. Make the git transport use the same buffer functions as HTTP.
* fetch: use the streaming indexer when downloading a packCarlos Martín Nieto2012-04-251-3/+3
| | | | | | | | This changes the git_remote_download() API, but the existing one is silly, so you don't get to complain. The new API allows to know how much data has been downloaded, how many objects we expect in total and how many we've processed.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* fetch: add a generic pack-download functionCarlos Martín Nieto2011-10-121-0/+5
| | | | | | | Taken mostly from the git transport's version, this can be used by any transport that takes its pack data from the network. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Cleanup legal dataVicent Marti2011-09-191-0/+6
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* Move negotiation to the transportCarlos Martín Nieto2011-08-181-0/+1
| | | | | | | | | There are many ways how a transport might negotiate with the server, so instead of making it fit into the smart protocol model, let the transport do its thing. For now, the git protocol limits itself to send only 160 "have" lines so we don't flood the server. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Don't expose the fetch code to the userCarlos Martín Nieto2011-08-181-0/+6
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>