summaryrefslogtreecommitdiff
path: root/remote.go
AgeCommit message (Collapse)Author
2017-07-04remote: add keep-alive and references to the repositoryCarlos Martín Nieto
Especially in 1.8, the garbage collector can decide to finalize an object even as we are in one of its methods. This means it can free a remote while we're in one of its calls, as we're referencing the pointer inside the object, rather than the `Remote` itself.
2017-01-20Merge remote-tracking branch 'origin/next'Carlos Martín Nieto
2016-10-08Remote Rename FixMirko Nosenzo
Problem string array is returned if no error is occurred
2016-07-07Returning Problems on Remote RenameMirko Nosenzo
Problems can be returned as string array on RemoteCollection Rename
2016-05-29Remote RefinementsMirko Nosenzo
- Fixed credentialsCallback return value for missing callback - Added Remote Rename - Added Remote Disconnect
2016-04-23Update to 1dc4491Carlos Martín Nieto
2016-02-15Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
2015-11-12Fix Fetch/Push memory allocation problemsJose Alvarez
The Fetch/Push operations didn't allocate the git_*_options structure and this causes a memory problem in the libgit2 code. Following the example of Clone operation, the Fetch/Push functions allocates the options structure before calling the C.
2015-10-26Update libgit2 to 821131fCalin Seciu
The API changes are: - `*Remote.Connect` ```go // from: func (o *Remote) Connect(direction ConnectDirection, callbacks *RemoteCallbacks) error // to: func (o *Remote) Connect(direction ConnectDirection, callbacks *RemoteCallbacks, headers []string) error ``` - `*Remote.ConnectFetch` - `headers` was added as above - `*Remote.ConnectPush` - `headers` was added as above
2015-08-31Run go fmtCarlos Martín Nieto
As it seems to be something that many people can't get over, reformat all the files; as we're breaking things, whoever depended on 'next' will have to take many changes into account anyway, so let's include this to reduce the noise of incoming patches.
2015-08-31Add nil check on CredentialsCallback wrapperAaron O'Mullan
2015-08-31Add back support for RemoteCallbacks in Remote.Push()Aaron O'Mullan
2015-07-01Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
2015-07-01Merge commit 'refs/pull/174/head' of github.com:libgit2/git2goCarlos Martín Nieto
2015-06-28Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
Conflicts: branch.go
2015-06-28Create a RemoteCollection for managing remotesCarlos Martín Nieto
Instead of making the 'Remote' part of the function calls, create a collection object which serves to namespace the operations for the remotes.
2015-06-28Get rid of Owner() on Remote and SubmdouleCarlos Martín Nieto
These are inherently unsafe. The underlying pointer might get released at any moment.
2015-06-28Update to libgit2 fa39975Carlos Martín Nieto
2015-06-10Make the network code use handlesCarlos Martín Nieto
This wasn't ported together with the rest, but it does exhibit the same issues, so let's port it over now.
2015-06-08Update to libgit2 b6011e29Carlos Martín Nieto
2015-03-15Update to libgit2 d675982a153Carlos Martín Nieto
There's been some changes to the checkout strategy, especially the SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that shouldn't be necessary to use in the general case. The largest changes come from the removal of the signture from ref-modifying functions/methods and the removal of the reflog string in all but those directly related to moving references.
2015-03-04Default signatureMark Probst
2015-02-13use git_signature_freeMatthew Donoughe
2015-01-05Add prune methods to Remote.David Calavera
2015-01-04Update to libgit2 masterCarlos Martín Nieto
This gets rid of the Push object. All network now goes through the Remote object.
2014-12-13Add the new callbacks for Remote.Push()Carlos Martín Nieto
This unifies the types with the Push struct, in preparation for its deletion.
2014-12-13Update to masterCarlos Martín Nieto
This deprecates the Push struct in favour of Remote.Push()
2014-12-06Add the newer missing thread-locking instancesCarlos Martín Nieto
2014-12-06Add missing thread lockingCarlos Martín Nieto
2014-12-06Merge pull request #140 from AaronO/patch-1Carlos Martín Nieto
Add wrapper for git_remote_delete : Repository.DeleteRemote
2014-12-03Update to masterCarlos Martín Nieto
2014-11-26Add (*Repository).DeleteRemoteAaron O'Mullan
2014-10-28Make the constants have typesCarlos Martín Nieto
While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type.
2014-10-27Hide C.git_direction type.David Calavera
2014-10-27Make filtering logic more simple.David Calavera
2014-10-27Add connect methods to Remote.David Calavera
2014-10-24Add Remote#Ls.David Calavera
Allow filtering heads by name.
2014-10-19remote: use the library's certificate validity if no callback is setCarlos Martín Nieto
We should not return 0, as in this case that means we let it through, return an appropriate error instead.
2014-10-15Fix header nameCarlos Martín Nieto
It turns out that some systems have a strings.h which includes string.h, which does not happen on GNU systems.
2014-10-15Add support for hostkey certificatesCarlos Martín Nieto
While they're not exactly certificates, they belong in the same category.
2014-10-15Merge branch 'fetchhead'Carlos Martín Nieto
Conflicts: remote.go
2014-10-15add plumbing for update fetch head on remotesJess Sheneberger
2014-10-15Update to libgit2 masterCarlos Martín Nieto
The option to ignore the server's certificate has been removed, replaced witha callback for the user to perform their own checking. Remote.Fetch() now performs opportunistic updates and takes a list of refspecs to use as the active set for a particular fetch.
2014-04-26Merge pull request #81 from jezell/remote-set-callbacksCarlos Martín Nieto
add remote functions to set callbacks / set cert check
2014-04-26Adjust to libgit2 dev changesCarlos Martín Nieto
This fixes #87
2014-04-04add set callbacks / set cert checkJesse Ezell
2014-04-01Remote: The whole point of the anonymous changeCarlos Martín Nieto
Was that it would break and we'd remember that the order changed. Oh well.
2014-04-01rename inmemory to anonymous remoteJesse Ezell
2014-03-20return nil instead of empty array on errorJesse Ezell
2014-03-20add remote listJesse Ezell