aboutsummaryrefslogtreecommitdiffstats
path: root/formats/packfile/common.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to use core.ObjectReader and core.ObjectWriterJoshua Sjoding2016-02-251-0/+20
| | | | | | | | | | | | * 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
* Speed up packfile readingAlberto Cortés2016-01-261-0/+7
| | | | | By adding a bufio to the trackingReader, otherwise most of the time is spent in syscalls for small reads to the packfile.
* formats/packfile: new reader APIMáximo Cuadros2015-10-251-7/+4
|
* formats/packfile: cleanupMáximo Cuadros2015-10-231-0/+39