diff options
author | Santiago M. Mola <santi@mola.io> | 2016-12-14 23:12:44 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-14 23:12:44 +0100 |
commit | 0af572dd21c0aa79d13745b633ee24ba6c4d6cf1 (patch) | |
tree | 49e81e74e82d84fd88b2fc1e4b0dc7c7bfe9c40f /cshared/blame_cshared.go | |
parent | df0f38af83f972f026d7e14150f3d37b95f13484 (diff) | |
download | go-git-0af572dd21c0aa79d13745b633ee24ba6c4d6cf1.tar.gz |
move plumbing from top level package to plumbing (#183)
* 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.
Diffstat (limited to 'cshared/blame_cshared.go')
-rw-r--r-- | cshared/blame_cshared.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cshared/blame_cshared.go b/cshared/blame_cshared.go index 8cb55e8..0f31cea 100644 --- a/cshared/blame_cshared.go +++ b/cshared/blame_cshared.go @@ -13,7 +13,7 @@ func c_Blame_get_Path(b uint64) *C.char { if !ok { return nil } - blame := obj.(*git.Blame) + blame := obj.(*git.BlameResult) return C.CString(blame.Path) } @@ -23,7 +23,7 @@ func c_Blame_get_Rev(b uint64) *C.char { if !ok { return nil } - blame := obj.(*git.Blame) + blame := obj.(*git.BlameResult) return CBytes(blame.Rev[:]) } @@ -33,7 +33,7 @@ func c_Blame_get_Lines_len(b uint64) int { if !ok { return 0 } - blame := obj.(*git.Blame) + blame := obj.(*git.BlameResult) return len(blame.Lines) } @@ -43,7 +43,7 @@ func c_Blame_get_Lines_item(b uint64, i int) { if !ok { return } - blame := obj.(*git.Blame) + blame := obj.(*git.BlameResult) line := blame.Lines[i] _ = line } |