summaryrefslogtreecommitdiff
path: root/src/remote.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #1803 from libgit2/ntk/topic/even_more_lenient_remote_parsingVicent Martí2013-08-281-11/+35
|\ | | | | Even more lenient remote parsing
| * remote: Make git_remote_list() detect pushurlnulltoken2013-08-271-2/+4
| |
| * remote: Relax the parsing logic even morenulltoken2013-08-271-8/+25
| | | | | | | | | | | | In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`. ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
| * remote: Don't parse missing urls as empty stringsnulltoken2013-08-271-1/+1
| |
| * remote: Warn the user when connecting with no urlnulltoken2013-08-271-1/+4
| |
| * remote: Assert proper GIT_DIRECTION_XXXX valuesnulltoken2013-08-271-0/+2
| |
* | Merge pull request #1772 from libgit2/config-iterVicent Martí2013-08-281-1/+1
|\ \ | |/ |/| Configuration iterators redux
| * config: get_multivar -> get_multivar_foreachCarlos Martín Nieto2013-08-081-1/+1
| | | | | | | | | | The plain function will return an iterator, so move this one out of the way.
* | Merge pull request #1780 from phkelley/developmentVicent Martí2013-08-141-2/+27
|\ \ | | | | | | Respect GIT_SSL_NO_VERIFY and http.sslVerify
| * | Respect GIT_SSL_NO_VERIFY and http.sslVerifyPhilip Kelley2013-08-131-2/+27
| |/
* | remote: relax the url rulesCarlos Martín Nieto2013-08-141-6/+0
|/ | | | | | | | | | | | | Accept any value for the remote's url, including an empty string which we used to reject as invalid configuration. This is not quite what git does (although it has its own problems with such configurations) and it makes it harder to fix the issue, by not letting the user modify it. As we already need to check for a valid URL when we try to connect to the network, let that perform the check, as we don't need to do it anywhere else.
* Add `git_remote_owner`Etienne Samson2013-07-151-0/+6
|
* Fix some memory leaksRussell Belfer2013-06-101-1/+3
|
* Merge pull request #1624 from libgit2/vmg/full-ref-iteratorVicent Martí2013-06-031-39/+13
|\ | | | | Breaking RefDB changes
| * ...Aaaand this worksVicent Marti2013-05-301-4/+1
| |
| * Liike thisVicent Marti2013-05-281-36/+13
| |
* | Proposal to handle default value (auto = 0)yorah2013-05-301-6/+1
| |
* | remote: make default tag retrieving behaviour consistentyorah2013-05-301-6/+5
|/ | | | | Default for newly created remotes will be auto. Default when loading existing remotes with no tag retrieving behaviour set, was already auto.
* Fetch should not fail when remote HEAD reference is not present locallyJameson Miller2013-05-151-13/+0
|
* Merge pull request #1385 from carlosmn/refs-iterEdward Thomson2013-05-111-14/+19
|\ | | | | Introduce a refs iterator
| * Move a couple more functions to use iteratorsCarlos Martín Nieto2013-05-111-13/+19
| |
| * 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.
* | Merge pull request #1561 from arrbee/fix-windows-diff-eofnlVicent Martí2013-05-091-1/+1
|\ \ | | | | | | Fix windows diff eofnl error
| * | Fix win32 type warningsRussell Belfer2013-05-071-1/+1
| | |
* | | remote: correctly interpret tagopt '--tags'Carlos Martín Nieto2013-05-071-10/+18
|/ / | | | | | | | | | | | | When tagopt is set to '--tags', we should only take the default tags refspec into account and ignore any configured ones. Bring the code into compliance.
* | Factor out some code that needed to clear errorsRussell Belfer2013-05-011-43/+42
|/ | | | | | | A number of places were looking up option config values and then not clearing the error codes if the values were not found. This moves the repeated pattern into a shared routine and adds the extra call to giterr_clear() when needed.
* Merge pull request #1518 from arrbee/export-oid-comparisonVicent Martí2013-04-301-1/+1
|\ | | | | Remove most inlines from the public API
| * Make git_oid_cmp public and add git_oid__cmpRussell Belfer2013-04-291-1/+1
| |
* | remote: fix a leak when dwim'ing refspecsCarlos Martín Nieto2013-04-301-0/+1
| |
* | remote: add resfpec list accessorsCarlos Martín Nieto2013-04-301-0/+26
| | | | | | | | | | | | Bring back a way of acessing the git_refspec* from a remote. Closes #1514
* | remote: dwim the refspecs according to the remote's advertised refsCarlos Martín Nieto2013-04-281-9/+85
|/ | | | | As git allows you to store shorthand refspecs in the configuration, we need to do this ourselves.
* refspec: unify the string and parsed dataCarlos Martín Nieto2013-04-201-45/+19
| | | | | | | | It used to be separate as an attempt to make the querying easier, but it didn't work out that way, so put all the data together. Add git_refspec_string() as well to get the original string, which is now stored alongside the independent parts.
* remote: allow querying for refspecsCarlos Martín Nieto2013-04-201-2/+50
| | | | | | | | 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-149/+236
| | | | | | | | | | | | | 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.
* remote: don't try to update FETCH_HEAD if no extra heads existCarlos Martín Nieto2013-04-161-0/+4
| | | | | | | | Don't try to update anything if there are no heads to update. This saves us from trying to look into a fetch refspec when there is none. A better fix for compatibility with git when using remotes without refspecs is still needed, but this stops us from segfaulting.
* Allow git_remote_ls after disconnecting from the remoteCarlos Martín Nieto2013-04-151-5/+0
| | | | Keep the data around until free, as expected by our own fetch example
* branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-301-1/+1
| | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* Several warnings detected by static code analyzer fixedArkadiy Shapkin2013-03-181-1/+1
| | | | | | | Implicit type conversion argument of function to size_t type Suspicious sequence of types castings: size_t -> int -> size_t Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)' Unsigned type is never < 0
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-2/+4
|
* remote: Introduce git_remote_is_valid_name()nulltoken2013-02-111-14/+22
| | | | Fix libgit2/libgit2sharp#318
* Vector improvements and their falloutPhilip Kelley2013-01-271-2/+1
|
* clone: Prevent segfault upon faulted remote creationnulltoken2013-01-251-3/+6
|
* Kill vestigal dangling-remote codeBen Straub2013-01-111-13/+0
| | | Fixes #1232
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Remove `inmem` flag, use NULL name insteadBen Straub2013-01-021-4/+3
|
* Move `url` to last place in parameter listBen Straub2013-01-021-1/+1
|
* Fix GCC static/non-static compile errorBen Straub2012-12-271-23/+22
|
* remote: Prevent create() from blindly overwritingnulltoken2012-12-241-5/+5
|
* Fix indentationsnulltoken2012-12-241-8/+8
|
* In-memory remotes don't have namesBen Straub2012-12-211-2/+7
|