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

Function diffDeltaFromC

diff.go:88–96  ·  view source on GitHub ↗
(delta *C.git_diff_delta)

Source from the content-addressed store, hash-verified

86}
87
88func diffDeltaFromC(delta *C.git_diff_delta) DiffDelta {
89 return DiffDelta{
90 Status: Delta(delta.status),
91 Flags: DiffFlag(delta.flags),
92 Similarity: uint16(delta.similarity),
93 OldFile: diffFileFromC(&delta.old_file),
94 NewFile: diffFileFromC(&delta.new_file),
95 }
96}
97
98type DiffHunk struct {
99 OldStart int

Callers 5

statusEntryFromCFunction · 0.85
DeltaMethod · 0.85
diffForEachFileCallbackFunction · 0.85
diffNotifyCallbackFunction · 0.85
deltaApplyCallbackFunction · 0.85

Calls 3

DeltaTypeAlias · 0.85
DiffFlagTypeAlias · 0.85
diffFileFromCFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…