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
2013-11-11remote: make _ls return the list directlyCarlos Martín Nieto
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.
2013-11-11remote: don't allow such direct access to the refspecsCarlos Martín Nieto
Removing arbitrary refspecs makes things more complex to reason about. Instead, let the user set the fetch and push refspec list to whatever they want it to be.
2013-10-03Initial iconv hookup for precomposed unicodeRussell Belfer
This hooks up git_path_direach and git_path_dirload so that they will take a flag indicating if directory entry names should be tested and converted from decomposed unicode to precomposed form. This code will only come into play on the Apple platform and even then, only when certain types of filesystems are used. This involved adding a flag to these functions which involved changing a lot of places in the code. This was an opportunity to do a bit of code cleanup here and there, for example, getting rid of the git_futils_cleanupdir_r function in favor of a simple flag to git_futils_rmdir_r to not remove the top level entry. That ended up adding depth tracking during rmdir_r which led to a safety check for infinite directory recursion. Yay. This hasn't actually been tested on the Mac filesystems where the issue occurs. I still need to get test environment for that.
2013-10-02clone: put the callbacks struct directly in the clone optionsCarlos Martín Nieto
There's no need for this to be a pointer to somewhere else.
2013-10-02clone: bring back NULL as defaultsCarlos Martín Nieto
This wasremoved as part of the large culling a few commits ago.
2013-10-02clone: re-allow using a custom remote nameCarlos Martín Nieto
This is a small thing that by itself doesn't quite justify making the user use clone_into.
2013-10-02clone: const-ify checkout optionsCarlos Martín Nieto
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.
2013-10-02clone: re-add a way to ignore certificate errorsCarlos Martín Nieto
This used to be done via transport flags, which was removed in a previous commit.
2013-10-02clone: remove more options from basic cloneCarlos Martín Nieto
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.
2013-10-02clone: implement git_clone on top of git_clone_intoCarlos Martín Nieto
Unify the code bases.
2013-10-02clone: remove the autotag optionCarlos Martín Nieto
Downloading all tags is part of what makes it a clone instead of simply a fetch.
2013-10-02remote: add a convenience 'fetch' function.Carlos Martín Nieto
2013-10-02clone: implement git_clone_intoCarlos Martín Nieto
This allows you to set up the repository and remote as you which to have them before performing the clone operation.
2013-10-02remote: move the credentials callback to the structCarlos Martín Nieto
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.
2013-10-02remote: put the _download() callback with the othersCarlos Martín Nieto
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.
2013-09-17No such thing as an orphan branchCarlos Martín Nieto
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
2013-09-17clone: Anal as fuckVicent Marti
2013-09-16git_clone supports optional init_optionsLinquize
2013-07-01Make refspec_transform paranoid about argumentsRussell Belfer
2013-06-10Reorganize diff and add basic diff driverRussell Belfer
This is a significant reorganization of the diff code to break it into a set of more clearly distinct files and to document the new organization. Hopefully this will make the diff code easier to understand and to extend. This adds a new `git_diff_driver` object that looks of diff driver information from the attributes and the config so that things like function content in diff headers can be provided. The full driver spec is not implemented in the commit - this is focused on the reorganization of the code and putting the driver hooks in place. This also removes a few #includes from src/repository.h that were overbroad, but as a result required extra #includes in a variety of places since including src/repository.h no longer results in pulling in the whole world.
2013-06-03Merge pull request #1624 from libgit2/vmg/full-ref-iteratorVicent Martí
Breaking RefDB changes
2013-05-31Merge pull request #1621 from NHDaly/clone_transport_flagsVicent Martí
Added support for setting transport flags (No check SSL cert) to git_clo...
2013-05-31Added support for setting transport flags (No check SSL cert) to git_clone call.Nathan Daly
2013-05-30Proposal to handle default value (auto = 0)yorah
2013-05-30What are the chances, reallyVicent Marti
2013-05-16Fix trailing whitespacesnulltoken
2013-05-11Merge pull request #1385 from carlosmn/refs-iterEdward Thomson
Introduce a refs iterator
2013-05-11refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto
Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
2013-05-10clone: fix -Wmaybe-uninitialized warningMichael Schubert
2013-05-06Merge pull request #1526 from arrbee/cleanup-error-return-without-msgVicent Martí
Make sure error messages are set for most error returns
2013-05-04Do not write tagopt configuration option on clone by defaultJameson Miller
2013-05-01fix typoRussell Belfer
2013-05-01Simplify error reportingRussell Belfer
2013-04-30Make git_oid_cmp public and add git_oid__cmpRussell Belfer
2013-04-23Clone: replace fetch spec with custom valueBen Straub
2013-04-20remote: allow querying for refspecsCarlos Martín Nieto
Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs from the remote and rename the refspec-adding functions to a less silly name. Use this instead of the vector index hacks in the tests.
2013-04-20remote: handle multiple refspecsCarlos Martín Nieto
A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
2013-03-01Clone should not delete directories it did not createJameson Miller
2013-02-12Merge pull request #1316 from ben/clone-cancelRussell Belfer
Allow network operations to cancel
2013-02-07Clone: fetch all tagsBen Straub
2013-02-05Allow progress callback to cancel fetchBen Straub
This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
2013-01-27Fix fail clone local repo which head detatchedFrank Li
Set head detach if can't found branch after download Signed-off-by: Frank Li <lznuaa@gmail.com>
2013-01-11Add missing git_buf_freeSascha Cunz
2013-01-11Implement analog for 'git checkout --branch xxx ...'Sascha Cunz
2013-01-11Fix possible free'ing of unitialized pointer in error caseSascha Cunz
2013-01-09update copyrightsEdward Thomson
2013-01-06Merge pull request #1196 from scunz/allow_clone_without_master_branchVicent Martí
Allow to clone repositories that don't have a `master` branch
2013-01-06clone: Fix a memory leaknulltoken
2013-01-06Allow to clone repositories that don't have a `master` branchSascha Cunz
Before this, we error out from `reference_matches_remote_head` if the reference we're searching for does not exist. Since we explicitly check if master is existing in `update_head_to_remote` and error out if it doesn't, a repository without master branch could not be cloned. In fact this was later clobbered by what is fixed in #1194. However, this patch introduces a `found` member in `head_info` and sets it accordingly. That also saves us from checking the string length of `branchname` a few times.
2013-01-05Oh yeah, bugs from my rebaseRussell Belfer