aboutsummaryrefslogtreecommitdiffstats
path: root/commit_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: Storage.Get, switch order of argsMáximo Cuadros2016-08-291-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/+37
| | | | | | | | 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.
* Repository: Clone protection if non empty object storage, Remote: ↵Máximo Cuadros2016-08-251-2/+2
| | | | NoErrAlreadyUpToDate
* WalkCommitHistory adn Commit.HistoryMáximo Cuadros2016-08-231-0/+8
|
* ForEach review and Commit.Tree err returnMáximo Cuadros2016-08-221-131/+60
|
* core: Storage, removing err returning *StoragesMáximo Cuadros2016-08-141-4/+4
|
* Repository and Remote API changesMáximo Cuadros2016-08-131-4/+4
|
* v3 -> v4Máximo Cuadros2016-08-111-1/+1
|
* Added Object interface for Commit, Tree, Blob and TagJoshua Sjoding2016-03-081-21/+2
| | | | | | | | | | | | | * 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
* New iteration behavior via FileIter and TreeWalkerJoshua Sjoding2016-02-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | Instead of returning a channel of files, Tree.Files() now returns a FileIter with these qualities: * It returns files in the original order of the repository (relying on a * new Tree.OrderedNames property) * It can return errors encountered when retrieving files and trees from * underlying storage * It can be Closed without having to drain the entire channel * It defers the heavy lifting to a new TreeWalker type * Its behavior is a little more consistent with other Iter types * It's a little less prone to memory leaks This update includes a new TreeWalker type that will iterate through all of the entries of a tree and its descendant subtrees. It does the dirty work that Tree.walkEntries() used to do, but with a public API. A new TreeIter type is also included that just walks through subtrees. This could be useful for performing a directory search while ignoring files/blobs altogether.
* update imports to v3Máximo Cuadros2016-02-171-2/+2
|
* Functions in core.ObjectStorage interface now return an errorJoshua Sjoding2016-02-161-2/+2
|
* Added tests for CommitIterJoshua Sjoding2016-02-151-7/+87
|
* Repository now works against the generic ObjectStore interfaceJoshua Sjoding2016-01-231-0/+3
|
* fix PR#7 commentsAlberto Cortés2015-12-041-4/+92
|
* iters: add IsClosed field, fixes #4Máximo Cuadros2015-11-171-0/+16