aboutsummaryrefslogtreecommitdiffstats
path: root/formats/packfile/reader.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to use core.ObjectReader and core.ObjectWriterJoshua Sjoding2016-02-251-10/+54
| | | | | | | | | | | | * 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
* update imports to v3Máximo Cuadros2016-02-171-1/+1
|
* storages: memory objectMáximo Cuadros2016-02-171-2/+2
|
* Functions in core.ObjectStorage interface now return an errorJoshua Sjoding2016-02-161-6/+11
|
* fix zlib invalid header errorAlberto Cortés2016-01-271-3/+2
| | | | | The return value of reads to the packfile were being ignored, so zlib was getting invalid data on it read buffers.
* Speed up packfile readingAlberto Cortés2016-01-261-1/+1
| | | | | By adding a bufio to the trackingReader, otherwise most of the time is spent in syscalls for small reads to the packfile.
* internal -> coreMáximo Cuadros2015-10-311-14/+14
|
* objects: using readers from internal.ObjectMáximo Cuadros2015-10-261-14/+14
|
* formats/packfile: new reader APIMáximo Cuadros2015-10-251-133/+123
|
* formats/packfile: new reader API (wip)Máximo Cuadros2015-10-251-133/+82
|
* formats/packfile: new reader API (wip)Máximo Cuadros2015-10-251-83/+49
|
* formats/packfile: cleanupMáximo Cuadros2015-10-231-88/+72
|
* formats/packfile: type Hash instead of stringsMáximo Cuadros2015-10-231-0/+401