aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
Commit message (Collapse)AuthorAgeFilesLines
* BaseSuite improvements, usage of file:// protoMáximo Cuadros2016-12-021-1/+5
|
* capabilities: full integration (#151)Máximo Cuadros2016-12-011-3/+3
| | | | | | | | | | | | | | | | | | * format/pktline: fix readPayloadLen err handling * protocol/pakp: UploadReq validation and creation of capabilities * protocol/pakp: AdvRef tests * protocol/pakp: capability.List.Delete * protocol: filter unsupported capabilities * remote capability negociation * transport: UploadRequest validation * requested changes
* protocol/packp: capabilities new Capability entity and List struct, test ↵Máximo Cuadros2016-11-291-1/+2
| | | | | | | | | | improvements (#144) * protocol/pakp: capabilities new Capability entity and List struct, test improvements * etc: example cloud-config file * removing sorting from List.String
* remove old types from transport and use packp (#142)Santiago M. Mola2016-11-281-22/+34
| | | | | | | | | | * protocol: move UploadPackRequest to protocol. * UploadPackRequest is now defined as an embedding of UploadRequest and UploadHaves. * Move http encoding specific code from UploadPackRequest to transport/http. * rename UlReq to UploadRequest * packp: move AdvRefs Encoder/Decoder to Encode/Decode methods. * packp: move UploadRequest Encoder/Decoder to Encode/Decode methods. * packp: Remove transport.UploadPackInfo in favor of packp. AdvRefs.
* move: format/packp -> protocol/packp (#141)Santiago M. Mola2016-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * move: format/packp -> protocol/packp * format/packp -> protocol/packp * format/packp/pktline -> format/pktline. * move: protocol/packp/ulreq/* -> protocol/packp/* * protocol/packp: rename UlReq types to make them unique. * * protocol/packp: namespace UlReq encoder. * protocol/packp: namespace UlReq decoder. * protocol/packp: fix example names * move: protocol/packp/advrefs/* -> protocol/packp/* * further ulreq namespacing * protocol/packp: namespace AdvRefs types.
* transport: create Client interface (#132)Santiago M. Mola2016-11-231-15/+28
| | | | | | | | | | | | | | | * plumbing: move plumbing/client package to plumbing/transport. * transport: create Client interface. * A Client can instantiate any client transport service. * InstallProtocol installs a Client for a given protocol, instead of just a UploadPackService. * A Client can open a session for fetch-pack or send-pack for a specific Endpoint. * Adapt ssh and http clients to the new client interface. * updated doc
* Add configurable http client factory (fixes #120) (#121)ferhat elmas2016-11-151-5/+2
| | | | | | | | | | | | | | | | * new http client factory ready to install/override default http(s) * mv GitUploadPackServiceFactory to clients.common pkg * rename http.HTTPError to http.Err * rename http.HTTPAuthMethod to http.AuthMethod * add doc and examples/ usage * general improvements: - update install link in readme to v4 (example are already pointing v4) - fix indentation in package doc (styling for godoc.org) - use http.Status constants instead of integers - close leaked response body - rm named returns which stutter in doc - fix one format string - rm unnecessary if checks - documentation fixes
* new plumbing package (#118)Máximo Cuadros2016-11-081-25/+26
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-16/+14
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* remote, fix fetch tagsMáximo Cuadros2016-10-271-2/+12
|
* remote, fix copy tag reference on fetchMáximo Cuadros2016-10-261-3/+28
|
* Use advrefs in gituploadpackinfo (#92)Alberto Cortés2016-10-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add advrefs encoder and parser * modify advrefs encoder to resemble json encoder * turn advrefs parser into a decoder * clean code * improve documentation * improve documentation * clean code * upgrade to new pktline.Add and add Flush const to easy integration * gometalinter * Use packp/advrefs for GitUploadPackInfo parsing - GitUploadPackInfo now uses packp/advrefs instead of parsing the message by itself. - Capabilities has been moved from clients/common to packp to avoid a circular import. - Cleaning of advrefs_test code. - Add support for prefix encoding and decoding in advrefs. * clean advrefs test code * clean advrefs test code * clean advrefs test code * gometalinter * add pktline encoder * change pktline.EncodeFlush to pktline.Flush * make scanner tests use the encoder instead of Pktlines * check errors on flush and clean constants * ubstitute the PktLines type with a pktline.Encoder * use pktline.Encoder in all go-git * add example of pktline.Encodef() * add package overview * documentation * support symbolic links other than HEAD * simplify decoding of shallows * packp: fix mcuadros comments - all abbreviates removed (by visual inspection, some may remain) - all empty maps are initialized using make - simplify readRef with a switch - make decodeShallow malformed error more verbose - add pktline.Encoder.encodeLine - remove infamous panic in checkPayloadLength by refactoring out the whole function
* test coverage improved, Remote.Refs and Repository.Refs returns error, ↵Máximo Cuadros2016-09-221-4/+8
| | | | TreeWalker -> TreeIter
* dotgit: synced write packfile and index generationMáximo Cuadros2016-09-151-2/+6
|
* format: packfile fix ReadObjectAt without decodeMáximo Cuadros2016-09-111-1/+1
|
* storage: filesystem ref storage, and not not exists file handlingMáximo Cuadros2016-09-101-2/+13
|
* format: packfile new interfaceMáximo Cuadros2016-09-071-2/+3
|
* core: ObjectStorage.Begin and TxObjectStorageMáximo Cuadros2016-09-051-2/+2
|
* core: Storage.Get, switch order of argsMáximo Cuadros2016-08-291-1/+1
|
* storage: Add object type hint parameter to ObjectStorage.Get. (#69)Santiago M. Mola2016-08-291-1/+1
| | | | | | | Some storage backends can optimize object lookup if they get the object type that is expected. So we the signature of the Get method is now Get(Hash, ObjectType). Added generic tests for storage backends.
* Repository: Clone protection if non empty object storage, Remote: ↵Máximo Cuadros2016-08-251-5/+17
| | | | NoErrAlreadyUpToDate
* options renamed and some text fixesMáximo Cuadros2016-08-221-2/+2
|
* Remote.Fetch multiple RefSpec supportMáximo Cuadros2016-08-221-22/+39
|
* remote and repository base on ConfigStoreMáximo Cuadros2016-08-211-10/+5
|
* remote and repository base on ConfigStoreMáximo Cuadros2016-08-201-36/+25
|
* Remote.Fetch base on RefSpec, improvement of the responsabilities separationMáximo Cuadros2016-08-191-9/+91
|
* Repository.Pull, PoCMáximo Cuadros2016-08-151-0/+4
|
* Repository.Clone and Remote.Fetch remote, local branches and client: correct ↵Máximo Cuadros2016-08-151-11/+14
| | | | header read
* Repository.Clone and Remote.Fetch tests and improvementsMáximo Cuadros2016-08-131-11/+13
|
* Repository and Remote API changesMáximo Cuadros2016-08-131-12/+28
|
* small improvementsMáximo Cuadros2016-08-121-1/+1
|
* general: usage of the new Reference objectsMáximo Cuadros2016-08-121-26/+8
|
* v3 -> v4Máximo Cuadros2016-08-111-3/+3
|
* documentationMáximo Cuadros2016-05-191-0/+1
|
* remote.Head and repository.PullDefaultMáximo Cuadros2016-04-251-0/+5
|
* update imports to v3Máximo Cuadros2016-02-171-3/+3
|
* Add install protocols capabilities to GitUploadPackServiceAlberto Cortés2015-12-171-1/+5
|
* common: GitUploadPackRequest Want, Have methodsMáximo Cuadros2015-11-101-3/+4
|
* clients: new AuthMethod and ConnectWithAuthMáximo Cuadros2015-11-051-2/+21
|
* remote: info methodMáximo Cuadros2015-11-051-1/+6
|
* clients: capabilities improvementMáximo Cuadros2015-11-011-1/+1
|
* internal -> coreMáximo Cuadros2015-10-311-5/+5
|
* clients: Capabilities parsing improvement and GitUploadPackInfo encodingMáximo Cuadros2015-10-311-1/+6
|
* objects: using readers from internal.ObjectMáximo Cuadros2015-10-261-1/+18
|
* clients and remote: fetch implementationMáximo Cuadros2015-10-231-0/+14
|
* new remote abstractionMáximo Cuadros2015-10-231-0/+50