(hunk *C.git_diff_hunk)
| 104 | } |
| 105 | |
| 106 | func diffHunkFromC(hunk *C.git_diff_hunk) DiffHunk { |
| 107 | return DiffHunk{ |
| 108 | OldStart: int(hunk.old_start), |
| 109 | OldLines: int(hunk.old_lines), |
| 110 | NewStart: int(hunk.new_start), |
| 111 | NewLines: int(hunk.new_lines), |
| 112 | Header: C.GoStringN(&hunk.header[0], C.int(hunk.header_len)), |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | type DiffLine struct { |
| 117 | Origin DiffLineType |
no outgoing calls
no test coverage detected
searching dependent graphs…