Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | transports: allow the creds callback to say it doesn't exist | Carlos Martín Nieto | 2014-04-22 | 1 | -0/+3 |
| | | | | | | | | Allow the credentials callback to return GIT_PASSTHROUGH to make the transports code behave as though none was set. This should make it easier for bindings to behave closer to the C code when there is no credentials callback set at their level. | ||||
* | remote: provide read access to the callback structure | Carlos Martín Nieto | 2014-04-22 | 1 | -0/+11 |
| | | | | | This should make it easier for bindings to dynamically override their own callbacks. | ||||
* | remote: rename inmemory to anonymous and swap url and fetch order | Carlos Martín Nieto | 2014-04-01 | 1 | -7/+7 |
| | | | | | | | | | | The order in this function is the opposite to what create_with_fetchspec() has, so change this one, as url-then-refspec is what git does. As we need to break compilation and the swap doesn't do that, let's take this opportunity to rename in-memory remotes to anonymous as that's really what sets them apart. | ||||
* | Added function-based initializers for every options struct. | Matthew Bowen | 2014-03-05 | 1 | -0/+13 |
| | | | | The basic structure of each function is courtesy of arrbee. | ||||
* | Correct default reflog message for git_remote_fetch | Ben Straub | 2014-02-06 | 1 | -1/+2 |
| | |||||
* | Fix terrible indentation | Ben Straub | 2014-02-06 | 1 | -1/+1 |
| | |||||
* | Add reflog parameters to remote apis | Ben Straub | 2014-02-04 | 1 | -2/+14 |
| | | | Also added a test for git_remote_fetch. | ||||
* | Make sure git_remote_dup copies a remote's refspecs correctly. | Arthur Schreiber | 2014-01-26 | 1 | -1/+1 |
| | |||||
* | Add some missing const declarations. | Arthur Schreiber | 2014-01-26 | 1 | -6/+6 |
| | |||||
* | Add `git_remote_dup`. | Arthur Schreiber | 2014-01-14 | 1 | -0/+12 |
| | |||||
* | Merge pull request #1951 from victorgp/create-remote-plus-fetch | Vicent Martí | 2013-11-14 | 1 | -0/+19 |
|\ | | | | | Allowing create remotes with custom fetch spec | ||||
| * | fixing typo | Victor Garcia | 2013-11-08 | 1 | -1/+1 |
| | | |||||
| * | splitting funcionality in two methods to avoid ambiguity with NULL | Victor Garcia | 2013-11-08 | 1 | -1/+17 |
| | | |||||
| * | adding doc for new param and test to check fetch spec is correctly added | Victor Garcia | 2013-11-07 | 1 | -1/+3 |
| | | |||||
| * | allowing create remote with custom fetch spec | Victor Garcia | 2013-11-07 | 1 | -1/+2 |
| | | |||||
* | | remote: make _ls return the list directly | Carlos Martín Nieto | 2013-11-11 | 1 | -6/+7 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | remote: don't allow such direct access to the refspecs | Carlos Martín Nieto | 2013-11-10 | 1 | -10/+27 |
| | | | | | | | | | | | | 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. | ||||
* | | remote: download HEAD when no refspecs are given | Carlos Martín Nieto | 2013-11-01 | 1 | -1/+1 |
|/ | | | | | | | The correct behaviour when a remote has no refspecs (e.g. a URL from the command-line) is to download the remote's HEAD. Let's do that. This fixes #1261. | ||||
* | Remove leftover function declaration | Carlos Martín Nieto | 2013-10-30 | 1 | -15/+0 |
| | |||||
* | transport: let the progress output return an error | Carlos Martín Nieto | 2013-10-23 | 1 | -1/+1 |
| | | | | | There are any number of issues that can come up in the progress callback, and we should let the user cancel at that point as well. | ||||
* | clone: put the callbacks struct directly in the clone options | Carlos Martín Nieto | 2013-10-02 | 1 | -1/+1 |
| | | | | There's no need for this to be a pointer to somewhere else. | ||||
* | remote: add some comments to the callback struct | Carlos Martín Nieto | 2013-10-02 | 1 | -1/+33 |
| | | | | Hopefully clear up what they're for. | ||||
* | remote: add a convenience 'fetch' function. | Carlos Martín Nieto | 2013-10-02 | 1 | -0/+11 |
| | |||||
* | remote: move the credentials callback to the struct | Carlos Martín Nieto | 2013-10-02 | 1 | -0/+1 |
| | | | | | 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 others | Carlos Martín Nieto | 2013-10-02 | 1 | -9/+2 |
| | | | | | | 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. | ||||
* | remote: fix git_remote_download() documentation | Carlos Martín Nieto | 2013-07-23 | 1 | -13/+7 |
| | | | | | | | | The description of what the function does hasn't been true for quite a while. Change it to reflect the way it currently works. While here, remove an even older comment about missing features that have been implemented. | ||||
* | Add `git_remote_owner` | Etienne Samson | 2013-07-15 | 1 | -0/+8 |
| | |||||
* | Fixed most documentation header bugs | Andreas Linde | 2013-06-24 | 1 | -2/+2 |
| | | | | | | | | | | | Fixed a few header @param and @return typos with the help of -Wdocumentation in Xcode. The following warnings have not been fixed: common.h:213 - Not sure how the documentation format is for '...' notes.h:102 - Correct @param name but empty text notes.h:111 - Correct @param name but empty text pack.h:140 - @return missing text pack.h:148 - @return missing text | ||||
* | Proposal to handle default value (auto = 0) | yorah | 2013-05-30 | 1 | -4/+3 |
| | |||||
* | remote: add resfpec list accessors | Carlos Martín Nieto | 2013-04-30 | 1 | -0/+26 |
| | | | | | | Bring back a way of acessing the git_refspec* from a remote. Closes #1514 | ||||
* | remove git_remote_pushspec | Nikolai Vladimirov | 2013-04-23 | 1 | -9/+0 |
| | |||||
* | remote: allow querying for refspecs | Carlos Martín Nieto | 2013-04-20 | 1 | -2/+24 |
| | | | | | | | | 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 refspecs | Carlos Martín Nieto | 2013-04-20 | 1 | -14/+15 |
| | | | | | | | | | | | | | 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: specify what values direction can mean in git_remote_connect() | Carlos Martín Nieto | 2013-04-19 | 1 | -1/+2 |
| | | | | This fixes #1487 | ||||
* | remote: Introduce git_remote_is_valid_name() | nulltoken | 2013-02-11 | 1 | -0/+8 |
| | | | | Fix libgit2/libgit2sharp#318 | ||||
* | Kill vestigal dangling-remote code | Ben Straub | 2013-01-11 | 1 | -11/+1 |
| | | | Fixes #1232 | ||||
* | update copyrights | Edward Thomson | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | Move `url` to last place in parameter list | Ben Straub | 2013-01-02 | 1 | -3/+3 |
| | |||||
* | remote: Prevent create() from blindly overwriting | nulltoken | 2012-12-24 | 1 | -1/+1 |
| | |||||
* | remote: Improve documentation | nulltoken | 2012-12-24 | 1 | -4/+6 |
| | |||||
* | remote: Enhance in-memory remote test coverage | nulltoken | 2012-12-24 | 1 | -1/+1 |
| | |||||
* | In-memory remotes don't have names | Ben Straub | 2012-12-21 | 1 | -2/+0 |
| | |||||
* | git_remote_create calls git_remote_save | Ben Straub | 2012-12-20 | 1 | -2/+4 |
| | |||||
* | Remote: deprecate dangling, prevent saving in-memory | Ben Straub | 2012-12-20 | 1 | -8/+0 |
| | |||||
* | Rename remote creation APIs | Ben Straub | 2012-12-20 | 1 | -13/+22 |
| | | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory | ||||
* | Define constant for default fetch spec | Ben Straub | 2012-12-13 | 1 | -0/+8 |
| | |||||
* | API to set a dangling remote's repository | Ben Straub | 2012-12-12 | 1 | -0/+10 |
| | |||||
* | Allow creation of dangling remotes | Ben Straub | 2012-12-12 | 1 | -3/+3 |
| | |||||
* | Add a payload param to git_cred_acquire_cb | Ben Straub | 2012-12-10 | 1 | -1/+2 |
| | | | Fixes #1128. | ||||
* | Allow compilation as C++ | Ben Straub | 2012-12-06 | 1 | -1/+1 |
| |