aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/storage_test.go
Commit message (Collapse)AuthorAgeFilesLines
* update to go-billy.v4 and go-git-fixtures.v3Máximo Cuadros2017-11-231-2/+2
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* storage: reuse deltas from packfilesSantiago M. Mola2017-07-271-0/+9
| | | | | | | | | | | | | | | | | | | * 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/+1
|
* *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-181-2/+2
|
* storage/filesystem: call initialization explicitely, fixes #408Santiago M. Mola2017-06-011-10/+9
| | | | | | | | | | | | | filesystem.Storage was initializing the gitdir (creating objects and refs) on NewStorage. But this should be done only on init and clone operations, not on open. Now there is a new interface storer.Initializer that storers can implement if they need any initialization step before init or clone. filesystem.Storage is one of such implementations. git.Init and git.Clone now call to the storer Init() method if it does implement it. Otherwise, it just ignores initialization.
* storage: filesystem, initialize the default folder scaffoldingMáximo Cuadros2017-05-211-0/+10
|
* use go-billy.v2 versionAntonio Jesus Navarro Perez2017-03-101-2/+2
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-3/+3
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Repository.Init now handles non-standard .git locationMáximo Cuadros2017-02-131-0/+9
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* rename billy importsMáximo Cuadros2017-01-301-3/+2
|
* Extract billy (#173)Sergio Arbeo2016-12-191-1/+2
| | | | | | | | | | | | | | | * Extract billy Billy is a new library directly extracted from go-git. It abstract several storages systems in a filesystem interface. More in github.com/src-d/billy * Fix grouping in imports block * Update billy to v1 * Re-remove fs_implementation example
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-14/+2
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* storage: filesystem fix testsMáximo Cuadros2016-11-041-1/+1
|
* storage/filesystem: implement missing functionality. (#110)Santiago M. Mola2016-11-031-1/+25
| | | | | | | * 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.
* storage: filesystem idx generation (wip)Máximo Cuadros2016-09-061-8/+0
|
* storage: Storage entity support, and DotGit support for ReferencesMáximo Cuadros2016-08-121-313/+8
|
* storage: seekable renamed to filesystemMáximo Cuadros2016-08-111-0/+326