diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-31 23:09:28 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-31 23:09:52 +0100 |
commit | a6197bd8c459c7d10717bd9486c17f6c8b3f7f88 (patch) | |
tree | 63180ec210c66fda317c87197d2f6bab508406b6 /blame.go | |
parent | 2308066c28d3cbbfb472fb634c3e10a1c7786cfc (diff) | |
download | go-git-a6197bd8c459c7d10717bd9486c17f6c8b3f7f88.tar.gz |
documentation changes
Diffstat (limited to 'blame.go')
-rw-r--r-- | blame.go | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -50,20 +50,16 @@ type BlameResult struct { // All this work is done in the assignOrigin function which holds all // the internal relevant data in a "blame" struct, that is not // exported. -// -// TODO: ways to improve the efficiency of this function: -// -// 1. Improve revlist -// -// 2. Improve how to traverse the history (example a backward -// traversal will be much more efficient) -// -// TODO: ways to improve the function in general: -// -// 1. Add memoization between revlist and assign. -// -// 2. It is using much more memory than needed, see the TODOs below. func Blame(c *object.Commit, path string) (*BlameResult, error) { + // TODO: ways to improve the efficiency of this function: + // 1. Improve revlist + // 2. Improve how to traverse the history (example a backward traversal will + // be much more efficient) + // + // TODO: ways to improve the function in general: + // 1. Add memoization between revlist and assign. + // 2. It is using much more memory than needed, see the TODOs below. + b := new(blame) b.fRev = c b.path = path |