aboutsummaryrefslogtreecommitdiffstats
path: root/references.go
Commit message (Collapse)AuthorAgeFilesLines
* references.go: fix Parents from commit iteratorAntonio Jesus Navarro Perez2017-04-191-7/+9
| | | | Avoid a panic when we are iterating parents from a commit. There are more than EOF errors, like Parse errors. Now instead of throw a panic we return the error.
* Add Repository.Log() method (fix #298)Antonio Jesus Navarro Perez2017-04-111-2/+26
| | | | | | | | | | - CommitIter is now an interface - The old CommitIter implementation is now called StorerCommitIter - CommitWalker and CommitWalkerPost are now iterators (CommitPreIterator and CommitPostIterator). - Remove Commit.History() method. There are so many ways to iterate a commit history, depending of the use case. Now, instead of use the History() method, you must use CommitPreIterator or CommitPostIterator. - Move commitSorterer to references.go because is the only place that it is used, and it must not be used into another place. - Make References method private, it must only be used into blame logic. - Added a TODO into references method, where the sortCommits is used to remove it in a near future.
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-3/+3
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Add full stops and keep implementation details as internal comments.Antonio Jesus Navarro Perez2017-03-031-1/+2
|
* improve git package documentation (fix #231)Antonio Jesus Navarro Perez2017-03-031-5/+8
|
* Remove TODOs from documentationAntonio Jesus Navarro Perez2017-02-281-2/+2
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-3/+3
|
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-141-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * plumbing: rename Object -> EncodedObject. * plumbing/storer: rename ObjectStorer -> EncodedObjectStorer. * move difftree to plumbing/difftree. * move diff -> utils/diff * make Object/Tag/Blob/Tree/Commit/File depend on storer. * Object and its implementations now depend only on storer.EncodedObjectStorer, not git.Repository. * Tests are decoupled accordingly. * move Object/Commit/File/Tag/Tree to plumbing/object. * move Object/Commit/File/Tag/Tree to plumbing/object. * move checkClose to utils/ioutil. * move RevListObjects to plumbing/revlist.Objects. * move DiffTree to plumbing/difftree package. * rename files with plural nouns to singular * plumbing/object: add GetBlob/GetCommit/GetTag/GetTree.
* new plumbing package (#118)Máximo Cuadros2016-11-081-5/+5
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* Repository and Remote API changesMáximo Cuadros2016-08-131-1/+1
|
* v3 -> v4Máximo Cuadros2016-08-111-2/+2
|
* 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
* update imports to v3Máximo Cuadros2016-02-171-2/+2
|
* remove package docv2.2.0Máximo Cuadros2016-02-161-17/+0
|
* blame code reorganization, and mutting the testMáximo Cuadros2015-12-121-0/+242