summaryrefslogtreecommitdiff
path: root/src/remote.c
Commit message (Collapse)AuthorAgeFilesLines
* 'geterr' -> 'giterr'empty-remote-url-crashJustin Spahr-Summers2012-11-051-1/+1
|
* Set GITERR_INVALID when encountering a NULL remote URLJustin Spahr-Summers2012-11-051-0/+1
|
* Bail out if remote->url would be NULLJustin Spahr-Summers2012-11-041-0/+5
| | | | This fixes a crash from attempting to invoke git__strdup() against NULL.
* Merge pull request #1030 from pwkelley/transportsVicent Martí2012-11-011-53/+76
|\ | | | | Reorganize transport architecture
| * Reorganize transport architecture (squashed 3)Philip Kelley2012-11-011-53/+76
| |
* | Ensure that non-error is not propagatedBen Straub2012-10-311-0/+1
| |
* | Fix a couple of warningsMichael Schubert2012-10-301-1/+1
|/
* Merge pull request #925 from nulltoken/topic/moving-branch-updates-configRussell Belfer2012-10-251-27/+359
|\ | | | | Updates config upon moving and deletion of branches
| * remote: introduce git_remote_rename()nulltoken2012-10-251-0/+285
| |
| * refspec: introduce git_refspec__serialize()nulltoken2012-10-251-7/+4
| |
| * remote: remove some code duplicationnulltoken2012-10-251-27/+48
| |
| * remote: prevent from saving a nameless remotenulltoken2012-10-251-0/+29
| |
* | Remove inline hintBen Straub2012-10-251-1/+1
| |
* | Fix Windows buildBen Straub2012-10-251-1/+1
| | | | | | | | Pedantic ordering of GIT_UNUSED vs. variable declarations.
* | Merge pull request #990 from ben/clone-callbacksVicent Martí2012-10-251-3/+12
|\ \ | |/ |/| Progress callbacks
| * Remove 'bytes' param from git_remote_downloadBen Straub2012-10-241-3/+2
| |
| * Network progress: rename thingsBen Straub2012-10-241-2/+2
| | | | | | | | | | | | | | git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
| * Fetch/indexer: progress callbacksBen Straub2012-10-191-2/+6
| |
| * Add accessor for git_remote's stats fieldBen Straub2012-10-191-0/+6
| | | | | | | | Also converted the network example to use it.
| * Add git_indexer_stats field to git_remoteBen Straub2012-10-191-3/+3
| | | | | | | | | | Also removing all the *stats parameters from external APIs that don't need them anymore.
* | Add config level support in the config APIyorah2012-10-231-2/+2
| | | | | | | | | | | | | | Added `struct git_config_entry`: a git_config_entry contains the key, the value, and the config file level from which a config element was found. Added `git_config_open_level`: build a single-level focused config object from a multi-level one. We are now storing `git_config_entry`s in the khash of the config_file
* | Merge pull request #963 from carlosmn/remote-save-autotagVicent Martí2012-10-221-0/+39
|\ \ | |/ |/| Save the autotag configuration for remotes
| * remote: don't auto-follow tags on an unamed remoteCarlos Martín Nieto2012-10-021-0/+5
| | | | | | | | | | | | | | | | An unnamed remote is used for commands like git fetch git://host/repo where no tags should be downloaded. Make this the default.
| * remote: set/unset the autotag setting on saveCarlos Martín Nieto2012-10-021-0/+34
| | | | | | | | | | Make the configuration option match the configured behavior when saving a remote.
* | remote: support fetch cancelationCarlos Martín Nieto2012-10-181-0/+5
| | | | | | | | | | | | Introduce git_remote_stop() which sets a variable that is checked by the fetch process in a few key places. If this is variable is set, the fetch is aborted.
* | remote: only keep a weak pointer in update_tipsCarlos Martín Nieto2012-10-071-1/+1
|/ | | | | | The reference is only needed inside the function. We mistakenly increased the reference counter causing the ODB not to get freed and leaking descriptors.
* remote: Fix mid-block declarationVicent Marti2012-10-011-1/+1
|
* remote: support downloading all tagsCarlos Martín Nieto2012-09-301-3/+6
| | | | Also honor remote.$name.tagopt = --tags.
* remote: use the refspec functions to parse, instead of rolling our ownCarlos Martín Nieto2012-09-301-37/+9
| | | | | The local function works for simple cases, but we shouldn't reinvent the wheel just for us.
* remote: add accessors for the autotag settingCarlos Martín Nieto2012-09-301-0/+10
|
* remote: create tags if we have themCarlos Martín Nieto2012-09-301-7/+48
| | | | | | Together with include-tag, this make us behave more like git. After a fetch, try to create any tags the remote told us about for which we have objects locally.
* fetch: use the include-tag capabilityCarlos Martín Nieto2012-09-301-0/+28
| | | | | This tells the remote to send us any tags that point to objects that we are downloading.
* refspec: add git_refspec__free, remove git_refspec_parseCarlos Martín Nieto2012-09-301-4/+2
| | | | | | | The latter shouldn't be exposed and isn't used, git_refspec__parse supersedes it. Fix a leak in the refspec tests while we're at it.
* network: add sideband supportCarlos Martín Nieto2012-08-241-0/+8
| | | | | This lets us notify the user of what the remote end is doing while we wait for it to start sending us the packfile.
* oid: Explicitly include `oid.h` for the inlined CMPVicent Marti2012-08-091-0/+1
|
* Fix iterator check and return valueRussell Belfer2012-08-061-1/+6
| | | | | | | | | There is a little cleanup necessary from PR #843. Since the new callbacks return `GIT_EUSER` we have to be a little careful about return values when they are used internally to the library. Also, callbacks should be checked for non-zero return values, not just less than zero.
* remotes: Proper return for `git_remote_ls`Vicent Marti2012-08-061-4/+2
|
* remote: add missing include git2/remote.hMichael Schubert2012-08-041-1/+0
| | | | | Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.
* transport: store the refs in a common areaCarlos Martín Nieto2012-07-301-1/+20
| | | | | | | | Instad of each transport having its own function and logic to get to its refs, store them directly in transport. Leverage the new gitno_buffer to make the parsing and storing of the refs use common code and get rid of the git_protocol struct.
* Merge pull request #834 from carlosmn/network-callbacksVicent Martí2012-07-271-3/+10
|\ | | | | Add a struct for network callbacks
| * Add a struct for network callbacksCarlos Martín Nieto2012-07-211-3/+10
| | | | | | | | | | Currently only update_tips is used, but it prepares the way for progress output during download.
* | remote: fix C99-ismCarlos Martín Nieto2012-07-271-1/+2
| |
* | Remotes: Use correct url in git_remote_connectSascha Cunz2012-07-271-1/+20
| |
* | Remotes: Save a cleaned pushurl (by deleting it from the config)Sascha Cunz2012-07-271-4/+13
| |
* | Remotes: Setter for url+pushurl; Getter for pushurlSascha Cunz2012-07-261-0/+32
| |
* | Remotes: Load/Save for fetch.foo.pushurlSascha Cunz2012-07-261-0/+32
| |
* | Remove unneccessary string transformationSascha Cunz2012-07-261-1/+1
| |
* | update_tips: report error if it fails to create a refCarlos Martín Nieto2012-07-241-1/+1
|/
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-2/+5
|
* Merge pull request #697 from carlosmn/sslVicent Martí2012-06-051-0/+10
|\ | | | | Add HTTPS support