aboutsummaryrefslogtreecommitdiffstats
path: root/tag.go
Commit message (Collapse)AuthorAgeFilesLines
* tags tests, Tag.String and Commit.StringMáximo Cuadros2016-09-211-3/+9
|
* fixtures: new fixture package being use in all packagesMáximo Cuadros2016-09-121-1/+1
|
* storage: Add object type hint parameter to ObjectStorage.Get. (#69)Santiago M. Mola2016-08-291-1/+1
| | | | | | | Some storage backends can optimize object lookup if they get the object type that is expected. So we the signature of the Get method is now Get(Hash, ObjectType). Added generic tests for storage backends.
* object: Add Encode method to all objects. (#70)Santiago M. Mola2016-08-291-0/+25
| | | | | | | | 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.
* ForEach review and Commit.Tree err returnMáximo Cuadros2016-08-221-2/+2
|
* core: *Iter.ForEach methodMáximo Cuadros2016-08-151-0/+14
|
* v3 -> v4Máximo Cuadros2016-08-111-1/+1
|
* fix misspellingsv3.0.4Máximo Cuadros2016-05-191-2/+2
|
* Added Object interface for Commit, Tree, Blob and TagJoshua Sjoding2016-03-081-26/+46
| | | | | | | | | | | | | * 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/+8
| | | | | | | | | | | | * 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-6/+28
|
* Added support for annotated tagsJoshua Sjoding2016-02-181-0/+135