aboutsummaryrefslogtreecommitdiffstats
path: root/blame.go
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: blame, Complete rewrite. Fixes #603Arieh Schneier2023-07-061-162/+450
| | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-3/+3
|
* *: avoid unnecessary conversionsChristian Muehlhaeuser2019-07-291-3/+3
| | | | | | | No need to convert these values, they're already of the right type. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit a1d8a7ac8bd0e4aff0f27dbb8bb37b8bd13a1346)
* blame: fix edge case with missing \n in content length causing mismatched ↵Máximo Cuadros2018-10-161-5/+16
| | | | | | length error Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Add commit hash to blame resultShane Da Silva2018-03-271-2/+5
| | | | Signed-off-by: Shane Da Silva <shanemichaeldasilva@gmail.com>
* blame.go: Add blame line dataShane Da Silva2018-02-191-2/+6
| | | | Signed-off-by: Shane Da Silva <shanemichaeldasilva@gmail.com>
* all: simplificationferhat elmas2017-11-291-5/+2
| | | | | | | | | | - no length for map initialization - don't check for boolean/error return - don't format string - use string method of bytes buffer instead of converting bytes to string - use `strings.Contains` instead of `strings.Index` - use `bytes.Equal` instead of `bytes.Compare`
* Add Repository.Log() method (fix #298)Antonio Jesus Navarro Perez2017-04-111-2/+2
| | | | | | | | | | - 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.
* Simplify Blame documentationAntonio Jesus Navarro Perez2017-03-031-25/+26
|
* Add full stops and keep implementation details as internal comments.Antonio Jesus Navarro Perez2017-03-031-5/+10
|
* improve git package documentation (fix #231)Antonio Jesus Navarro Perez2017-03-031-15/+15
|
* Remove TODOs from documentationAntonio Jesus Navarro Perez2017-02-281-5/+11
|
* documentation changesMáximo Cuadros2017-01-311-13/+9
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-3/+3
|
* blame: make line and its members public so they can be actually used (#213)Alberto Cortés2017-01-191-10/+11
|
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-141-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-3/+3
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* v3 -> v4Máximo Cuadros2016-08-111-2/+2
|
* fix misspellingsv3.0.4Máximo Cuadros2016-05-191-1/+1
|
* Refactor to use core.ObjectReader and core.ObjectWriterJoshua Sjoding2016-02-251-3/+12
| | | | | | | | | | | | * 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-23/+23
|
* package documentationMáximo Cuadros2016-02-161-8/+0
|
* blame code reorganization, and mutting the testMáximo Cuadros2015-12-121-0/+276