summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
Commit message (Collapse)AuthorAgeFilesLines
* clone: remote git_clone_into{,_local} from the public APIcmn/clone-custom-repoCarlos Martín Nieto2014-07-021-53/+0
| | | | | | As git_clone now has callbacks to configure the details of the repository and remote, remove the lower-level functions from the public API, as they lack some of the logic from git_clone proper.
* clone: add a callback for repository creationCarlos Martín Nieto2014-07-021-3/+36
| | | | | | Analogously to the remote creation callback, provide a way for the user of git_clone() to create the repository with whichever options they desire via callback.
* Improvements to git_transport extensibilityPhilip Kelley2014-06-261-13/+41
| | | | | git_remote_set_transport now takes a transport factory rather than a transport git_clone_options now allows the caller to specify a remote creation callback
* remote: update documentationCarlos Martín Nieto2014-06-111-18/+60
| | | | | Add docs for git_clone_local_t and move the docs for the git_clone_options to each field.
* clone: allow for linking in local cloneCarlos Martín Nieto2014-05-281-0/+4
| | | | | | | | If requested, git_clone_local_into() will try to link the object files instead of copying them. This only works on non-Windows (since it doesn't have this) when both are on the same filesystem (which are unix semantics).
* clone: add flag not to linkCarlos Martín Nieto2014-05-281-0/+1
|
* clone: add flags to override whether to perform a local cloneCarlos Martín Nieto2014-05-281-0/+7
|
* clone: perform a "local clone" when given a local pathCarlos Martín Nieto2014-05-281-0/+25
| | | | | | | | When git is given such a path, it will perform a "local clone", bypassing the git-aware protocol and simply copying over all objects that exist in the source. Copy this behaviour when given a local path.
* Make init_options fns use unsigned ints and macroRussell Belfer2014-05-021-10/+9
| | | | | Use an unsigned int for the version and add a helper macro so the code is simplified (and so the error message is a common string).
* git_checkout_opts -> git_checkout_optionsBen Straub2014-03-061-3/+3
|
* Added function-based initializers for every options struct.Matthew Bowen2014-03-051-0/+13
| | | | The basic structure of each function is courtesy of arrbee.
* Augment clone API with reflog parametersBen Straub2014-01-301-1/+6
|
* Update clone doc and tests for callback return valRussell Belfer2013-12-111-24/+33
| | | | | | | Clone callbacks can return non-zero values to cancel the clone. This adds some tests to verify that this actually works and updates the documentation to be clearer that this can happen and that the return value will be propagated back by the clone function.
* clone: put the callbacks struct directly in the clone optionsCarlos Martín Nieto2013-10-021-2/+2
| | | | There's no need for this to be a pointer to somewhere else.
* clone: mention clone_into in the clone documentationCarlos Martín Nieto2013-10-021-2/+5
| | | | Make the difference more explicit.
* clone: re-allow using a custom remote nameCarlos Martín Nieto2013-10-021-17/+5
| | | | | This is a small thing that by itself doesn't quite justify making the user use clone_into.
* clone: const-ify checkout optionsCarlos Martín Nieto2013-10-021-1/+1
| | | | | The removal of many options which lead to the direct usage of the user's checkout options means we should make sure they remain const.
* clone: re-add a way to ignore certificate errorsCarlos Martín Nieto2013-10-021-0/+1
| | | | | This used to be done via transport flags, which was removed in a previous commit.
* clone: remove more options from basic cloneCarlos Martín Nieto2013-10-021-7/+0
| | | | | | The basic clone function is there to make it easy to create a "normal" clone. Remove a bunch of options that are about changing the remote's configuration.
* clone: remove the autotag optionCarlos Martín Nieto2013-10-021-3/+0
| | | | | Downloading all tags is part of what makes it a clone instead of simply a fetch.
* clone: implement git_clone_intoCarlos Martín Nieto2013-10-021-0/+16
| | | | | This allows you to set up the repository and remote as you which to have them before performing the clone operation.
* remote: move the credentials callback to the structCarlos Martín Nieto2013-10-021-5/+0
| | | | | 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-021-2/+0
| | | | | | 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.
* git_clone supports optional init_optionsLinquize2013-09-161-0/+1
|
* Added support for setting transport flags (No check SSL cert) to git_clone call.Nathan Daly2013-05-311-0/+3
|
* clone: fix param commentCarlos Martín Nieto2013-03-191-1/+1
|
* Clone: fetch all tagsBen Straub2013-02-061-1/+1
|
* Default git_clone_options' checkout strategy to GIT_CHECKOUT_SAFE_CREATESascha Cunz2013-01-121-1/+1
|
* Implement analog for 'git checkout --branch xxx ...'Sascha Cunz2013-01-111-0/+3
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Include checkout options inlineBen Straub2013-01-021-4/+4
|
* Add more clone options. Push test suite segfaults.Ben Straub2012-12-191-3/+32
|
* Move non-options back out of options structBen Straub2012-12-141-8/+10
|
* Deploy git_clone_options; remove git_clone_bareBen Straub2012-12-141-38/+8
|
* Introduce git_clone_optionsBen Straub2012-12-141-0/+33
|
* Convert clone to use dangling remotesBen Straub2012-12-121-4/+4
|
* More external API cleanupVicent Marti2012-11-271-2/+2
| | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c
* Network progress: rename thingsBen Straub2012-10-241-2/+2
| | | | | | | git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
* Update doc strings, warn about callback perfBen Straub2012-10-231-3/+8
|
* Clone: in-line callbacks for progressBen Straub2012-10-191-2/+4
| | | | Also implemented in the git2 example.
* Remove checkout_stats from git_cloneBen Straub2012-10-191-1/+0
|
* Clone: fix indentationBen Straub2012-10-191-10/+12
|
* clone: Explicit support of no-checkout optionnulltoken2012-10-151-3/+6
|
* Add documentation for clone methods.Ben Straub2012-07-311-2/+3
|
* Add checkout.h to git2.h.Ben Straub2012-07-311-2/+2
| | | Also correcting some documentation strings.
* Restructure for better checkout optionsBen Straub2012-07-261-4/+14
| | | | | | * Removed the #define for defaults * Promoted progress structure to top-level API call argument
* Add progress reporting to clone.Ben Straub2012-06-211-3/+6
|
* Add git_clone and git_clone_bare.Ben Straub2012-06-211-0/+45
So far they only create a repo, setup the "origin" remote, and fetch. The API probably needs work as well; there's no way to get progress information at this point. Also uncovered a shortcoming; git_remote_download doesn't fetch over local transport.