summaryrefslogtreecommitdiff
path: root/examples/network
Commit message (Collapse)AuthorAgeFilesLines
* remote: rename inmemory to anonymous and swap url and fetch orderCarlos Martín Nieto2014-04-012-2/+2
| | | | | | | | | | The order in this function is the opposite to what create_with_fetchspec() has, so change this one, as url-then-refspec is what git does. As we need to break compilation and the swap doesn't do that, let's take this opportunity to rename in-memory remotes to anonymous as that's really what sets them apart.
* git_checkout_opts -> git_checkout_optionsBen Straub2014-03-061-1/+1
|
* - BUGFIX #2133 (@fourplusone) in smart_protocol.cMiha2014-02-251-1/+1
| | | | | | - added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
* Fix a few references to changed function signaturesBen Straub2014-02-051-1/+1
|
* Merge pull request #1956 from libgit2/cmn/fetch-default-headVicent Martí2013-11-111-12/+14
|\ | | | | Remote revamp (director's cut)
| * remote: make _ls return the list directlyCarlos Martín Nieto2013-11-111-12/+14
| | | | | | | | | | | | | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
* | update example to new packfile creation signatureEdward Thomson2013-11-071-1/+1
| |
* | Fix warningsBen Straub2013-11-041-2/+2
|/
* Merge pull request #1916 from libgit2/simplify-examplesVicent Martí2013-11-012-3/+17
|\ | | | | Fix examples to make the important stuff more obvious
| * Fix typosBen Straub2013-11-011-2/+2
| |
| * A few formatting changes for roccoCarlos Martín Nieto2013-11-012-3/+17
| | | | | | | | | | I'm not too happy about manually inserting < and > but those get output as html tags otherwise.
* | indexer: remove the stream infixCarlos Martín Nieto2013-10-301-6/+6
|/ | | | | | | | | | | It was there to keep it apart from the one which read in from a file on disk. This other indexer does not exist anymore, so there is no need for anything other than git_indexer to refer to it. While here, rename _add() function to _append() and _finalize() to _commit(). The former change is cosmetic, while the latter avoids talking about "finalizing", which OO languages use to mean something completely different.
* Merge pull request #1891 from libgit2/cmn/fix-thin-packsVicent Martí2013-10-283-4/+20
|\ | | | | Add support for thin packs
| * indexer: include the delta statsCarlos Martín Nieto2013-10-232-2/+13
| | | | | | | | | | | | | | | | | | | | The user is unable to derive the number of deltas in the pack, as that would require them to capture the stats exactly in the moment between download and final processing, which is abstracted away in the fetch. Capture these numbers for the user and expose them in the progress struct. The clone and fetch examples now also present this information to the user.
| * examples: show used local objects in fetchCarlos Martín Nieto2013-10-231-1/+6
| | | | | | | | | | Show how many local objects were used to fix the thin pack in our fetch example.
| * indexer: fix thin packsCarlos Martín Nieto2013-10-041-1/+1
| | | | | | | | | | | | When given an ODB from which to read objects, the indexer will attempt to inject the missing bases at the end of the pack and update the header and trailer to reflect the new contents.
* | clone: put the callbacks struct directly in the clone optionsCarlos Martín Nieto2013-10-021-5/+3
| | | | | | | | There's no need for this to be a pointer to somewhere else.
* | remote: move the credentials callback to the structCarlos Martín Nieto2013-10-023-3/+5
| | | | | | | | | | Move this one as well, letting us have a single way of setting the callbacks for the remote, and removing fields from the clone options.
* | remote: put the _download() callback with the othersCarlos Martín Nieto2013-10-022-3/+5
|/ | | | | | 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.
* Adding credentials callback to ls-remote and fetch too.Krzysztof Adamski2013-09-016-33/+45
|
* 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
|