aboutsummaryrefslogtreecommitdiffstats
path: root/storage/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #501 from smola/config-multiple-urlsMáximo Cuadros2017-08-021-1/+1
|\ | | | | config: multiple values in RemoteConfig (URLs and Fetch)
| * config: multiple values in RemoteConfig (URLs and Fetch)Santiago M. Mola2017-08-011-1/+1
| | | | | | | | | | | | | | | | * Change `URL string` to `URL []string` in `RemoteConfig`, since git allows multiple URLs per remote. See: http://marc.info/?l=git&m=116231242118202&w=2 * Fix marshalling of multiple fetch refspecs.
* | storage: reuse deltas from packfilesSantiago M. Mola2017-07-271-0/+34
|/ | | | | | | | | | | | | | | | | | | * plumbing: add DeltaObject interface for EncodedObjects that are deltas and hold additional information about them, such as the hash of the base object. * plumbing/storer: add DeltaObjectStorer interface for object storers that can return DeltaObject. Note that calls to EncodedObject will never return instances of DeltaObject. That requires explicit calls to DeltaObject. * storage/filesystem: implement DeltaObjectStorer interface. * plumbing/packfile: packfile encoder now supports reusing deltas that are already computed (e.g. from an existing packfile) if the storage implements DeltaObjectStorer. Reusing deltas boosts performance of packfile generation (e.g. on push).
* test: add more PackfileWriter testsSantiago M. Mola2017-07-191-0/+36
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-5/+5
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* documentation and API improvementsMáximo Cuadros2017-02-211-2/+30
|
* storage: git.Storer move to storage.Storer and module handlingMáximo Cuadros2017-02-121-0/+13
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-4/+4
|
* storage: IndexStorer implementationMáximo Cuadros2017-01-291-0/+9
|
* storage: IndexStorer implementationMáximo Cuadros2017-01-281-0/+14
|
* storage: shallow storage (#180)Máximo Cuadros2016-12-151-0/+16
| | | | | | | | * storage: shallow storage * changes * changes
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-141-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * plumbing: rename Object -> EncodedObject. * plumbing/storer: rename ObjectStorer -> EncodedObjectStorer. * move difftree to plumbing/difftree. * move diff -> utils/diff * make Object/Tag/Blob/Tree/Commit/File depend on storer. * Object and its implementations now depend only on storer.EncodedObjectStorer, not git.Repository. * Tests are decoupled accordingly. * move Object/Commit/File/Tag/Tree to plumbing/object. * move Object/Commit/File/Tag/Tree to plumbing/object. * move checkClose to utils/ioutil. * move RevListObjects to plumbing/revlist.Objects. * move DiffTree to plumbing/difftree package. * rename files with plural nouns to singular * plumbing/object: add GetBlob/GetCommit/GetTag/GetTree.
* config: Config, bare flag (#177)Máximo Cuadros2016-12-121-0/+1
| | | | | | | | * config.Config: bare flag * changes * changes
* revision based on goreportcard.comMáximo Cuadros2016-12-061-0/+1
|
* new plumbing package (#118)Máximo Cuadros2016-11-081-56/+57
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-85/+78
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* storage/filesystem: implement missing functionality. (#110)Santiago M. Mola2016-11-031-8/+50
| | | | | | | * storage/filesystem: added ObjectStorage Set. * storage/filesystem: now passes all tests, except those specific to transactions. * formats/config: Encoder now encodes subsections with no options. * formats/config: add HasSubsection on Section. * dotgit: add Ref method to get specific reference.
* do not assume remotes are sorted chronologically (#87)Alberto Cortés2016-10-181-2/+8
|
* storage: memory test improvements and coverageMáximo Cuadros2016-09-241-3/+121
|
* core: ObjectStorage.Begin and TxObjectStorageMáximo Cuadros2016-09-051-0/+45
|
* storage: idiomatic test suiteMáximo Cuadros2016-09-051-23/+46
|
* core: Storage.Get, switch order of argsMáximo Cuadros2016-08-291-4/+5
|
* storage: Add object type hint parameter to ObjectStorage.Get. (#69)Santiago M. Mola2016-08-291-0/+92
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.