MCPcopy Create free account
hub / github.com/libgit2/git2go / diffLineFromC

Function diffLineFromC

diff.go:124–132  ·  view source on GitHub ↗
(line *C.git_diff_line)

Source from the content-addressed store, hash-verified

122}
123
124func diffLineFromC(line *C.git_diff_line) DiffLine {
125 return DiffLine{
126 Origin: DiffLineType(line.origin),
127 OldLineno: int(line.old_lineno),
128 NewLineno: int(line.new_lineno),
129 NumLines: int(line.num_lines),
130 Content: C.GoStringN(line.content, C.int(line.content_len)),
131 }
132}
133
134type Diff struct {
135 doNotCompare

Callers 1

diffForEachLineCallbackFunction · 0.85

Calls 1

DiffLineTypeTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…