aboutsummaryrefslogtreecommitdiffstats
path: root/commit.go
Commit message (Collapse)AuthorAgeFilesLines
* NewObjectLookupIter asking right typeMáximo Cuadros2016-08-311-0/+1
|
* object: Add Encode method to all objects. (#70)Santiago M. Mola2016-08-291-2/+36
| | | | | | | | Encode method encodes a typed object (commit, tree, tag, blob) into raw core.Object representation. Additionally, Decode does not trim commit message lines. This is needed for Decode/Encode to be idempotent.
* WalkCommitHistory adn Commit.HistoryMáximo Cuadros2016-08-231-0/+18
|
* ForEach review and Commit.Tree err returnMáximo Cuadros2016-08-221-6/+10
|
* core: *Iter.ForEach methodMáximo Cuadros2016-08-151-0/+14
|
* core: Storage, removing err returning *StoragesMáximo Cuadros2016-08-141-1/+4
|
* Repository and Remote API changesMáximo Cuadros2016-08-131-1/+1
|
* v3 -> v4Máximo Cuadros2016-08-111-1/+1
|
* documentationMáximo Cuadros2016-05-191-0/+3
|
* fix misspellingsv3.0.4Máximo Cuadros2016-05-191-2/+2
|
* Added Object interface for Commit, Tree, Blob and TagJoshua Sjoding2016-03-081-2/+24
| | | | | | | | | | | | | * New Object interface is distinct from core.Object * New Object interface is used in places where returned object could be of any type * Object is implemented by Commit, Tree, Blob, File and Tag * Added Repository.Object function for retrieving objects of any type * Tag.Object now returns Object instead of core.Object * Tag target hash is now publicly accessible * Renamed Tag.Type field to Tag.TargetType, making it distinct from Tag.Type function * Fixed infinite recursive loop in TagIter.Close * TreeWalker.Next now returns Object instead of core.Object * Removed some duplicate test setup code
* 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