Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-14clone::nonetwork: don't use fixed size bufferEdward Thomson
2015-05-13Merge pull request #3115 from libgit2/cmn/clone-submoduleEdward Thomson
submodule: add test initialising and cloning a repo
2015-05-13remote: move the transport ctor to the callbacksCarlos Martín Nieto
Instead of having it set in a different place from every other callback, put it the main structure. This removes some state from the remote and makes it behave more like clone, where the constructors are passed via the options.
2015-05-13Remove the callbacks struct from the remoteCarlos Martín Nieto
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.
2015-05-12submodule: add test initialising and cloning a repoCarlos Martín Nieto
We have a few tests checking each step, but we do not yet have a test which tests the documented workflow for creating a submodule, namely `setup_add` followed by cloning into it, followed by `add_finalize`. Add such a test to protect against regressions in this workflow.
2015-03-17clone: add failing test for local transport with a tagCarlos Martín Nieto
When there is a tag, we must make sure that we get all referenced objects from this tag as well. This failing test shows that e.g. when there is a tagged tree, we insert the top tree but do not descend, thus causing the clone to have broken links.
2015-03-03config: borrow refcounted referencesCarlos Martín Nieto
This changes the get_entry() method to return a refcounted version of the config entry, which you have to free when you're done. This allows us to avoid freeing the memory in which the entry is stored on a refresh, which may happen at any time for a live config. For this reason, get_string() has been forbidden on live configs and a new function get_string_buf() has been added, which stores the string in a git_buf which the user then owns. The functions which parse the string value takea advantage of the borrowing to parse safely and then release the entry.
2015-03-03repository: remove log message override for switching the active branchCarlos Martín Nieto
We want to use the "checkout: moving from ..." message in order to let git know when a change of branch has happened. Make the convenience functions for this goal write this message.
2015-03-03Remove the signature from ref-modifying functionsCarlos Martín Nieto
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.
2015-02-27clone: drop now unnecessary SAFE_CREATEEdward Thomson
2014-11-08remote: rename _load() to _lookup()Carlos Martín Nieto
This brings it in line with the rest of the lookup functions.
2014-10-27clone::local test: isalpha -> git__isalphaEdward Thomson
2014-10-23Remote paths: canonicalize UNC paths on Win32Edward Thomson
Git for Windows will handle UNC paths only when in forward-slash format, eg "//server/path". When given a UNC path as a remote, rewrite standard format ("\\server\path") into this ridiculous format.
2014-08-14Custom transport: minor cleanupsEdward Thomson
* Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
2014-07-12Handle local file:/// paths on WindowsEdward Thomson
Windows can't handle a path like `/c:/foo`; when turning file:/// URIs into local paths, we must strip the leading slash.
2014-07-02Merge pull request #2455 from ethomson/equal_oidVicent Marti
Introduce `cl_assert_equal_oid`
2014-07-02clone: remote git_clone_into{,_local} from the public APICarlos Martín Nieto
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.
2014-07-01Introduce cl_assert_equal_oidEdward Thomson
2014-06-27Improvements to git_transport extensibilityPhilip Kelley
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
2014-05-29clone: more explicit local testsCarlos Martín Nieto
Assert the exact amount of links we expect. While there, check that a plain git_clone() automatically chooses to link.
2014-05-28clone: allow for linking in local cloneCarlos Martín Nieto
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).
2014-05-28clone: add flag not to linkCarlos Martín Nieto
2014-05-28clone: add flags to override whether to perform a local cloneCarlos Martín Nieto
2014-04-02remote: write tests for cloning from an empty repoCarlos Martín Nieto
Cloning from an empty repo must set master's upstream to origin's master, even if neither of them exist. Fetching from a non-empty origin must then mark the master branch for-merge. This currently fails.
2014-03-07Merge pull request #2028 from libgit2/options-namesVicent Marti
Rename options structures
2014-03-07Plug a few leaks in the testsCarlos Martín Nieto
2014-03-06git_checkout_opts -> git_checkout_optionsBen Straub
2014-01-31Enhance testing of signature parametersBen Straub
2014-01-31Augment clone API with reflog parametersBen Straub
2014-01-31Add reflog params to set-head callsBen Straub
2014-01-27branch: move to git_buf when outputting newly-allocated stringsCarlos Martín Nieto
Internally we already did everything with git_bufs, so this is just exposing those functions with public names.
2013-12-11Update clone doc and tests for callback return valRussell Belfer
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.
2013-11-15Rename tests-clar to testsBen Straub