summaryrefslogtreecommitdiff
path: root/examples/network
Commit message (Collapse)AuthorAgeFilesLines
...
* Removing unneeded code duplication in ls-remote.cKrzysztof Adamski2013-09-011-33/+7
|
* examples: init the threading systemCarlos Martín Nieto2013-04-231-0/+2
|
* Fix clang warnings and improve checksRussell Belfer2013-04-093-8/+17
|
* Fix link issue in network exampleslionel vitte2013-03-201-2/+3
|
* Give props to Martin PoolMartin Woodward2013-02-261-1/+4
| | | | | | Martin Pool was the original author of the code referenced in the clone example. Make note that he's given his permission and also give him the proper credit.
* Allow progress callback to cancel fetchBen Straub2013-02-051-1/+2
| | | | | This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
* Add user-from-url param to auth callbackBen Straub2013-01-311-0/+1
|
* update examples to work on windowsEdward Thomson2013-01-233-8/+31
|
* Don't call pthread_exit() in the callback.Sebastian Bauer2013-01-101-1/+1
| | | | | | | | Compilers that are not aware that pthread_exit() does not return issue a warning when compiling the present code. This change exchanges the call to pthread_exit() with a simple return statement. According to the pthread specification this is equivalent.
* Include checkout options inlineBen Straub2013-01-021-1/+1
|
* Move `url` to last place in parameter listBen Straub2013-01-022-2/+2
|
* 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