aboutsummaryrefslogtreecommitdiffstats
path: root/commit.go
Commit message (Collapse)AuthorAgeFilesLines
* Renamed internal close function to checkCloseJoshua Sjoding2016-02-271-1/+1
| | | | * Old name accidentally shadowed builtin close function
* Refactor to use core.ObjectReader and core.ObjectWriterJoshua Sjoding2016-02-251-2/+9
| | | | | | | | | | | | * 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-1/+1
|
* update imports to v3Máximo Cuadros2016-02-171-1/+1
|
* storages: memory objectMáximo Cuadros2016-02-171-0/+4
|
* Repository now works against the generic ObjectStore interfaceJoshua Sjoding2016-01-231-47/+10
|
* Fix commit.File() gorutine leakAlberto Cortés2016-01-211-10/+1
| | | | | | | | | | | | Commit.File() was leaking a goroutine because it was looping over an iterator without closing its channel. Now commit.File() calls the new Tree.File() method that searches the file in the repository by trasversing the dir tree instead of using the tree.Files() iterator. This not only prevent the goroutine leak, but also speeds up file searching.
* blame code reorganization, and mutting the testMáximo Cuadros2015-12-121-0/+23
|
* fix PR#7 commentsAlberto Cortés2015-12-041-0/+16
|
* Blame support for filesAlberto Cortés2015-11-251-0/+5
| | | | | | | | This also includes a diff package and revlist package (needed by blame) Some extra packfiles (<1MB) are also included, to be used as fixtures in the tests.
* iters: add IsClosed field, fixes #4Máximo Cuadros2015-11-171-1/+12
|
* internal -> coreMáximo Cuadros2015-10-311-12/+14
|
* tree and commitMáximo Cuadros2015-10-271-0/+127