(data []byte)
| 58 | } |
| 59 | |
| 60 | func toPointer(data []byte) (ptr unsafe.Pointer) { |
| 61 | if len(data) > 0 { |
| 62 | ptr = unsafe.Pointer(&data[0]) |
| 63 | } else { |
| 64 | ptr = unsafe.Pointer(nil) |
| 65 | } |
| 66 | return |
| 67 | } |
| 68 | |
| 69 | func (v *Repository) PatchFromBuffers(oldPath, newPath string, oldBuf, newBuf []byte, opts *DiffOptions) (*Patch, error) { |
| 70 | var patchPtr *C.git_patch |
no outgoing calls
no test coverage detected
searching dependent graphs…