summaryrefslogtreecommitdiff
path: root/examples/network
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix warnings in exampleBen Straub2012-12-271-3/+15
|
* Fix examplesBen Straub2012-12-212-2/+2
|
* Rename remote creation APIsBen Straub2012-12-202-2/+2
| | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
* Fix clone sampleBen Straub2012-12-191-17/+6
|
* Make building samples more friendlyBen Straub2012-12-161-0/+4
|
* Move non-options back out of options structBen Straub2012-12-141-6/+5
|
* Deploy git_clone_options to network sampleBen Straub2012-12-141-5/+10
|
* Enable authenticated clones in network sampleBen Straub2012-12-131-1/+17
|
* Stop premature remote freeing when cloningBen Straub2012-12-131-0/+1
|
* Fix network exampleBen Straub2012-12-131-2/+11
|
* Deploy GIT_REMOTE_CALLBACKS_INITBen Straub2012-11-301-2/+1
|
* Deploy GIT_CHECKOUT_OPTS_INITBen Straub2012-11-301-1/+1
|
* API updates for remote.hBen Straub2012-11-272-3/+3
| | | | | Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
* Examples: fix clone apiBen Straub2012-11-271-1/+1
|
* Fix various cross-platform build issuesRussell Belfer2012-11-094-13/+29
| | | | | | This fixes a number of warnings and problems with cross-platform builds. Among other things, it's not safe to name a member of a structure "strcmp" because that may be #defined.
* Remove 'bytes' param from git_remote_downloadBen Straub2012-10-241-6/+3
|
* Renaming: fix exampleBen Straub2012-10-243-14/+17
|
* Network progress: rename thingsBen Straub2012-10-241-1/+1
| | | | | | | git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
* Improve clone sample's formattingBen Straub2012-10-191-9/+6
|
* Checkout progress now reports completed/total stepsBen Straub2012-10-191-4/+8
|
* gitno_buffer: callback on each packetBen Straub2012-10-191-3/+4
| | | | | The fetch code takes advantage of this to implement a progress callback every 100kb of transfer.
* Correct progress reporting from checkoutBen Straub2012-10-191-3/+3
|
* Clone: in-line callbacks for progressBen Straub2012-10-191-42/+50
| | | | Also implemented in the git2 example.
* Fix example compilationBen Straub2012-10-192-2/+2
|
* Example: compile fixes (not yet working)Ben Straub2012-10-191-3/+2
|
* Add accessor for git_remote's stats fieldBen Straub2012-10-191-9/+8
| | | | Also converted the network example to use it.
* examples: add progress output to fetchCarlos Martín Nieto2012-08-241-1/+13
|
* indexer: recognize and mark when all of the packfile has been downloadedCarlos Martín Nieto2012-08-241-1/+1
| | | | | We can't always rely on the network telling us when the download is finished. Recognize it from the indexer itself.
* Merge pull request #778 from ben/cloneVicent Martí2012-08-194-0/+71
|\ | | | | Clone
| * Rename example function to avoid name collision.Ben Straub2012-07-313-3/+3
| |
| * Checkout: save index on checkout.Ben Straub2012-07-311-1/+0
| |
| * Add clone to the network example.Ben Straub2012-07-304-0/+72
| |
* | examples: fix warnings in network/Carlos Martín Nieto2012-07-304-46/+24
| |
* | remote: start moving the protocol to a common areaCarlos Martín Nieto2012-07-301-0/+3
|/ | | | | | | For the transition, http is going to keep its own logic until the git/common code catches up with the implied multi_ack that http has. This also has the side-effect of making the code cleaner and more correct regardingt he protocol.
* Add a struct for network callbacksCarlos Martín Nieto2012-07-211-2/+9
| | | | | Currently only update_tips is used, but it prepares the way for progress output during download.
* indexer: don't use '/objects/pack/' unconditionallyCarlos Martín Nieto2012-06-282-2/+2
| | | | | Not everyone who indexes a packfile wants to put it in the standard git repository location.
* Fix incorrect revertChris Young2012-06-141-1/+1
|
* Updates from comments on OS4 compatibility pull request ↵Chris Young2012-06-142-8/+2
| | | | http://github.com/libgit2/libgit2/pull/766
* Let platform 'Generic' get the regex deps so we don't need to use our ↵Chris Young2012-06-091-2/+2
| | | | external ones
* allow disabling pthreads for testingChris Young2012-06-091-0/+6
|
* Fix makefileChris Young2012-06-091-3/+4
|
* examples/network: consistently use tabs for indentationCarlos Martín Nieto2012-05-242-126/+126
|
* errors: Rename the generic return codesVicent Martí2012-05-183-10/+10
|
* examples: fix an oopsieCarlos Martín Nieto2012-05-111-0/+1
|
* examples: update network examples error handlingCarlos Martín Nieto2012-05-101-2/+5
| | | | Use giterr_last() and make sure it's not NULL.
* remotes: change git_remote_new's signatureCarlos Martín Nieto2012-05-082-2/+2
| | | | | 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-252-2/+21
| | | | | | | | 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
|