summaryrefslogtreecommitdiff
path: root/examples/network/fetch.c
Commit message (Collapse)AuthorAgeFilesLines
* remotes: change git_remote_new's signatureCarlos Martín Nieto2012-05-031-1/+1
| | | | | Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
* remote: don't free transport on disconnectMichael Schubert2012-05-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | Currently, git_remote_disconnect not only closes the connection but also frees the underlying transport object, making it impossible to write code like // fetch stuff git_remote_download() // close connection git_remote_disconnect() // call user provided callback for each ref git_remote_update_tips(remote, callback) because remote->refs points to references owned by the transport object. This means, we have an idling connection while running the callback for each reference. Instead, allow immediate disconnect and free the transport later in git_remote_free().
* remote: run a callback when updating the branch tipsCarlos Martín Nieto2012-04-251-1/+20
| | | | | | | | This allows the caller to update an internal structure or update the user output with the tips that were updated. While in the area, only try to update the ref if the value is different from its old one.
* examples: run fetch in a background threadCarlos Martín Nieto2012-04-251-13/+56
| | | | This allows us to give updates on how it's doing
* examples: port 'fetch' to the new APICarlos Martín Nieto2012-04-251-71/+22
|
* remote: Cleanup the remotes coderepo-ownershipVicent Marti2011-11-281-31/+1
| | | | | | - Hide the remaining transports code - Drop `git_headarray`, switch to using a callback to list refs. Makes the code cleaner.
* examples/network/fetch.c: revert overzealous conversion of free to git__freeBrandon Casey2011-11-061-1/+1
| | | | | Since git__free is not exported (it's actually a macro), it should not be used in client programs. Change this call to 'git__free' back to 'free'.
* global: Properly use `git__` memory wrappersVicent Marti2011-10-281-1/+1
| | | | | Ensure that all memory related functions (malloc, calloc, strdup, free, etc) are using their respective `git__` wrappers.
* examples: add ls-remote, fetch and index-pack examplesCarlos Martín Nieto2011-10-031-0/+127
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>