summaryrefslogtreecommitdiff
path: root/src/clone.c
Commit message (Collapse)AuthorAgeFilesLines
...
* No such thing as an orphan branchCarlos Martín Nieto2013-09-171-1/+1
| | | | | | | | | | | 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.
* clone: Anal as fuckVicent Marti2013-09-161-2/+1
|
* git_clone supports optional init_optionsLinquize2013-09-161-3/+11
|
* Make refspec_transform paranoid about argumentsRussell Belfer2013-07-011-2/+2
|
* Reorganize diff and add basic diff driverRussell Belfer2013-06-101-0/+1
| | | | | | | | | | | | | | | | | | 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.
* Merge pull request #1624 from libgit2/vmg/full-ref-iteratorVicent Martí2013-06-031-1/+1
|\ | | | | Breaking RefDB changes
| * What are the chances, reallyVicent Marti2013-05-291-1/+1
| |
* | Merge pull request #1621 from NHDaly/clone_transport_flagsVicent Martí2013-05-311-0/+4
|\ \ | | | | | | Added support for setting transport flags (No check SSL cert) to git_clo...
| * | Added support for setting transport flags (No check SSL cert) to git_clone call.Nathan Daly2013-05-311-0/+4
| |/
* | Proposal to handle default value (auto = 0)yorah2013-05-301-1/+0
|/
* Fix trailing whitespacesnulltoken2013-05-151-1/+1
|
* Merge pull request #1385 from carlosmn/refs-iterEdward Thomson2013-05-111-1/+0
|\ | | | | Introduce a refs iterator
| * refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto2013-05-111-1/+0
| | | | | | | | | | | | | | | | | | 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.
* | clone: fix -Wmaybe-uninitialized warningMichael Schubert2013-05-101-1/+1
| |
* | Merge pull request #1526 from arrbee/cleanup-error-return-without-msgVicent Martí2013-05-061-13/+4
|\ \ | | | | | | Make sure error messages are set for most error returns
| * | fix typoRussell Belfer2013-05-011-1/+1
| | |
| * | Simplify error reportingRussell Belfer2013-05-011-13/+4
| |/
* | Do not write tagopt configuration option on clone by defaultJameson Miller2013-05-041-25/+35
|/
* Make git_oid_cmp public and add git_oid__cmpRussell Belfer2013-04-291-3/+3
|
* Clone: replace fetch spec with custom valueBen Straub2013-04-231-3/+5
|
* remote: allow querying for refspecsCarlos Martín Nieto2013-04-201-2/+2
| | | | | | | | 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.
* remote: handle multiple refspecsCarlos Martín Nieto2013-04-201-3/+9
| | | | | | | | | | | | | 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.
* Clone should not delete directories it did not createJameson Miller2013-03-011-1/+10
|
* Merge pull request #1316 from ben/clone-cancelRussell Belfer2013-02-121-2/+2
|\ | | | | Allow network operations to cancel
| * Allow progress callback to cancel fetchBen Straub2013-02-051-2/+2
| | | | | | | | | | This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
* | Clone: fetch all tagsBen Straub2013-02-061-0/+1
|/
* Fix fail clone local repo which head detatchedFrank Li2013-01-271-2/+4
| | | | | | Set head detach if can't found branch after download Signed-off-by: Frank Li <lznuaa@gmail.com>
* Add missing git_buf_freeSascha Cunz2013-01-111-0/+1
|
* Implement analog for 'git checkout --branch xxx ...'Sascha Cunz2013-01-111-1/+31
|
* Fix possible free'ing of unitialized pointer in error caseSascha Cunz2013-01-111-1/+1
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Merge pull request #1196 from scunz/allow_clone_without_master_branchVicent Martí2013-01-061-10/+16
|\ | | | | Allow to clone repositories that don't have a `master` branch
| * Allow to clone repositories that don't have a `master` branchSascha Cunz2013-01-061-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | clone: Fix a memory leaknulltoken2013-01-061-0/+1
|/
* Oh yeah, bugs from my rebaseRussell Belfer2013-01-041-1/+1
|
* Include checkout options inlineBen Straub2013-01-021-2/+5
|
* Rename remote creation APIsBen Straub2012-12-201-1/+1
| | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
* Initialize variableBen Straub2012-12-191-2/+2
|
* Clone: trust but verifyBen Straub2012-12-191-0/+3
|
* Add more clone options. Push test suite segfaults.Ben Straub2012-12-191-47/+78
|
* Move non-options back out of options structBen Straub2012-12-141-5/+12
|
* Deploy git_clone_options; remove git_clone_bareBen Straub2012-12-141-34/+10
|
* Stop premature remote freeing when cloningBen Straub2012-12-131-1/+0
|
* Convert clone to use dangling remotesBen Straub2012-12-121-12/+11
|
* API updates for remote.hBen Straub2012-11-271-1/+1
| | | | | Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
* More external API cleanupVicent Marti2012-11-271-5/+5
| | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-1/+1
|
* Merge pull request #1016 from arrbee/fix-checkout-dir-removalVicent Martí2012-11-131-1/+1
|\ | | | | Update checkout with new strategies & behavior
| * Extensions to rmdir and mkdir utilitiesRussell Belfer2012-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Rework GIT_DIRREMOVAL values to GIT_RMDIR flags, allowing combinations of flags * Add GIT_RMDIR_EMPTY_PARENTS flag to remove parent dirs that are left empty after removal * Add GIT_MKDIR_VERIFY_DIR to give an error if item is a file, not a dir (previously an EEXISTS error was ignored, even for files) and enable this flag for git_futils_mkpath2file call * Improve accuracy of error messages from git_futils_mkdir
* | create FETCH_HEAD specially instead of as a ref fileEdward Thomson2012-11-111-0/+6
|/