summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename opt init functions to `options_init`Edward Thomson2019-06-141-2/+2
| | | | | | | | | | | | | In libgit2 nomenclature, when we need to verb a direct object, we name a function `git_directobject_verb`. Thus, if we need to init an options structure named `git_foo_options`, then the name of the function that does that should be `git_foo_options_init`. The previous names of `git_foo_init_options` is close - it _sounds_ as if it's initializing the options of a `foo`, but in fact `git_foo_options` is its own noun that should be respected. Deprecate the old names; they'll now call directly to the new ones.
* git_error: use full class name in public error APIEdward Thomson2019-01-221-1/+1
| | | | | | | | | Move to the `git_error` name in error-related functions, deprecating the `giterr` functions. This means, for example, that `giterr_last` is now `git_error_last`. The old names are retained for compatibility. This only updates the public API; internal API and function usage remains unchanged.
* Introduce GIT_CALLBACK macro to enforce cdeclEdward Thomson2019-01-171-2/+2
| | | | | | | | | Since we now always build the library with cdecl calling conventions, our callbacks should be decorated as such so that users will not be able to provide callbacks defined with other calling conventions. The `GIT_CALLBACK` macro will inject the `__cdecl` attribute as appropriate.
* docs: standardize struct git_*_options commentsEtienne Samson2018-05-071-2/+2
|
* docs: standardize comment block for git_*_init_options functionsEtienne Samson2018-05-071-4/+6
|
* Remove the callbacks struct from the remoteCarlos Martín Nieto2015-05-131-7/+6
| | | | | | | | | | | | | | Having the setting be different from calling its actions was not a great idea and made for the sake of the wrong convenience. Instead of that, accept either fetch options, push options or the callbacks when dealing with the remote. The fetch options are currently only the callbacks, but more options will be moved from setters and getters on the remote to the options. This does mean passing the same struct along the different functions but the typical use-case will only call git_remote_fetch() or git_remote_push() and so won't notice much difference.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-6/+0
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* checkout: remove `GIT_CHECKOUT_SAFE_CREATE` as a strategyEdward Thomson2015-02-271-4/+4
|
* doc: add documentation to all the public structs and enumscmn/doc-allCarlos Martín Nieto2014-12-061-1/+0
| | | | | | | | | | This makes them show up in the reference, even if the text itself isn't the most descriptive. These have been found with grep -Przon '\n\ntypedef struct.*?\{' -- include grep -Przon '\n\ntypedef enum.*?\{' -- include
* 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
|