aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to use core.ObjectReader and core.ObjectWriterJoshua Sjoding2016-02-251-3/+1
| | | | | | | | | | | | * New function signatures provide the necessary interface to stream data from disk when using filesystem-based storage in the future * New function signatures provide proper error handling * ObjectReader and ObjectWriter interfaces added to avoid future refactoring, currently are type aliases for io.ReadCloser and io.WriteCloser respectively * Object.Reader now returns (ObjectReader, error) * Object.Writer now returns (ObjectWriter, error) * File.Contents now returns (string, error) * File.Lines now returns ([]string, error) * Blob.Reader now returns (core.ObjectReader, error) * Added internal close helper function for deferred calls to Close that need to check the return value
* Improved support for Blob objectsJoshua Sjoding2016-02-191-12/+26
|
* Added support for annotated tagsJoshua Sjoding2016-02-181-0/+20
|
* New iteration behavior via FileIter and TreeWalkerJoshua Sjoding2016-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | Instead of returning a channel of files, Tree.Files() now returns a FileIter with these qualities: * It returns files in the original order of the repository (relying on a * new Tree.OrderedNames property) * It can return errors encountered when retrieving files and trees from * underlying storage * It can be Closed without having to drain the entire channel * It defers the heavy lifting to a new TreeWalker type * Its behavior is a little more consistent with other Iter types * It's a little less prone to memory leaks This update includes a new TreeWalker type that will iterate through all of the entries of a tree and its descendant subtrees. It does the dirty work that Tree.walkEntries() used to do, but with a public API. A new TreeIter type is also included that just walks through subtrees. This could be useful for performing a directory search while ignoring files/blobs altogether.
* update imports to v3Máximo Cuadros2016-02-171-4/+4
|
* storages: memory objectMáximo Cuadros2016-02-171-1/+2
|
* Merge pull request #20 from scjalliance/generic-object-storageMáximo Cuadros2016-02-161-16/+14
|\ | | | | Iterable ObjectStorage interface for use in Repository struct
| * Functions in core.ObjectStorage interface now return an errorJoshua Sjoding2016-02-161-6/+12
| |
| * Renamed ObjectStorage.IterType() to Iter() and improved documentation for ↵Joshua Sjoding2016-02-151-1/+1
| | | | | | | | object iterators
| * Renamed ObjectStorage Iter function to IterTypeJoshua Sjoding2016-02-011-1/+1
| |
| * Repository now works against the generic ObjectStore interfaceJoshua Sjoding2016-01-231-10/+2
| |
* | repository: documentationMáximo Cuadros2016-02-161-0/+3
|/
* missing call to Close on Fetch return value (ReadCloser)Alberto Cortés2016-01-111-1/+4
|
* fix PR#7 commentsAlberto Cortés2015-12-041-0/+2
|
* common: GitUploadPackRequest Want, Have methodsMáximo Cuadros2015-11-101-6/+8
|
* clients: new AuthMethod and ConnectWithAuthMáximo Cuadros2015-11-051-2/+10
|
* internal -> coreMáximo Cuadros2015-10-311-6/+6
|
* tree and commitMáximo Cuadros2015-10-271-0/+40
|
* repositoryMáximo Cuadros2015-10-261-0/+68