summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't clear the opt instance in the diff example.Sebastian Bauer2013-01-231-2/+0
| | | | | The version field is overwritten otherwise. The opt instance is already initialized properly.
* 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.
* Merge pull request #1152 from ben/clone-api-structificationVicent Martí2013-01-023-21/+22
|\ | | | | Segregate in-memory and persisted remotes
| * 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
| |
* | Update showindex exampleRussell Belfer2012-12-281-11/+23
|/ | | | | | | | I find the showindex example to be pretty useful on occasion, but there were are couple of output tweaks I wanted, plus I wanted the ability to specify a path to an actual index file instead of having to open the whole repository. This makes those changes and expands the example slightly.
* Fix diff constructor name order confusionRussell Belfer2012-12-172-8/+8
| | | | | | | | | | | | The diff constructor functions had some confusing names, where the "old" side of the diff was coming after the "new" side. This reverses the order in the function name to make it less confusing. Specifically... * git_diff_index_to_tree becomes git_diff_tree_to_index * git_diff_workdir_to_index becomes git_diff_index_to_workdir * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
* Make building samples more friendlyBen Straub2012-12-162-0/+6
|
* 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_DIFF_OPTIONS_INITBen Straub2012-11-301-1/+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).
* API updates for index.hBen Straub2012-11-271-1/+1
|
* Update diff callback param orderRussell Belfer2012-11-272-5/+5
| | | | | | | | This makes the diff functions that take callbacks both take the payload parameter after the callback function pointers and pass the payload as the last argument to the callback function instead of the first. This should make them consistent with other callbacks across the API.
* API review / update for tree.hRussell Belfer2012-11-271-2/+2
|
* Examples: fix clone apiBen Straub2012-11-271-1/+1
|
* Examples: fix reference namesBen Straub2012-11-272-3/+3
|
* tag: rename git_tag_type to git_tag_target_typenulltoken2012-11-171-1/+1
|
* Add explicit git_index ptr to diff and checkoutRussell Belfer2012-11-141-6/+6
| | | | | | | | A number of diff APIs and the `git_checkout_index` API take a `git_repository` object an operate on the index. This updates them to take a `git_index` pointer explicitly and only fall back on the `git_repository` index if the index input is NULL. This makes it easier to operate on a temporary index.
* 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.
* Improve docs, examples, warningsRussell Belfer2012-11-013-48/+63
| | | | | | This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
* index refactoringEdward Thomson2012-10-292-2/+3
|
* 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: fix config getter param orderCarlos Martín Nieto2012-09-301-2/+2
|
* 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
| |