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

Function diffFileFromC

diff.go:70–78  ·  view source on GitHub ↗
(file *C.git_diff_file)

Source from the content-addressed store, hash-verified

68}
69
70func diffFileFromC(file *C.git_diff_file) DiffFile {
71 return DiffFile{
72 Path: C.GoString(file.path),
73 Oid: newOidFromC(&file.id),
74 Size: int(file.size),
75 Flags: DiffFlag(file.flags),
76 Mode: uint16(file.mode),
77 }
78}
79
80type DiffDelta struct {
81 Status Delta

Callers 2

diffDeltaFromCFunction · 0.85
checkoutNotifyCallbackFunction · 0.85

Calls 2

newOidFromCFunction · 0.85
DiffFlagTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…