diff options
author | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-21 14:42:47 +0100 |
---|---|---|
committer | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-21 14:44:45 +0100 |
commit | 47666e18adfa70201efc951432ab3c204c1d2ed8 (patch) | |
tree | e223b2d3e3cf7637e3371586e4cf56a674b5ee6d /cshared/blame_cshared.go | |
parent | 0b8b8da617d5a077f282e57d0300dc106a604236 (diff) | |
download | go-git-47666e18adfa70201efc951432ab3c204c1d2ed8.tar.gz |
cshared: remove directory (Fix #236)
If some day this code is needed, we can go back into the commit history and get it.
Diffstat (limited to 'cshared/blame_cshared.go')
-rw-r--r-- | cshared/blame_cshared.go | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/cshared/blame_cshared.go b/cshared/blame_cshared.go deleted file mode 100644 index 8dfee31..0000000 --- a/cshared/blame_cshared.go +++ /dev/null @@ -1,49 +0,0 @@ -// +build ignore -package main - -import ( - "C" - - "srcd.works/go-git.v4" -) - -//export c_Blame_get_Path -func c_Blame_get_Path(b uint64) *C.char { - obj, ok := GetObject(Handle(b)) - if !ok { - return nil - } - blame := obj.(*git.BlameResult) - return C.CString(blame.Path) -} - -//export c_Blame_get_Rev -func c_Blame_get_Rev(b uint64) *C.char { - obj, ok := GetObject(Handle(b)) - if !ok { - return nil - } - blame := obj.(*git.BlameResult) - return CBytes(blame.Rev[:]) -} - -//export c_Blame_get_Lines_len -func c_Blame_get_Lines_len(b uint64) int { - obj, ok := GetObject(Handle(b)) - if !ok { - return 0 - } - blame := obj.(*git.BlameResult) - return len(blame.Lines) -} - -//export c_Blame_get_Lines_item -func c_Blame_get_Lines_item(b uint64, i int) { - obj, ok := GetObject(Handle(b)) - if !ok { - return - } - blame := obj.(*git.BlameResult) - line := blame.Lines[i] - _ = line -} |