(entry *C.git_index_entry)
| 73 | } |
| 74 | |
| 75 | func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry { |
| 76 | if entry == nil { |
| 77 | return nil |
| 78 | } |
| 79 | return &IndexEntry{ |
| 80 | IndexTime{int32(entry.ctime.seconds), uint32(entry.ctime.nanoseconds)}, |
| 81 | IndexTime{int32(entry.mtime.seconds), uint32(entry.mtime.nanoseconds)}, |
| 82 | Filemode(entry.mode), |
| 83 | uint32(entry.uid), |
| 84 | uint32(entry.gid), |
| 85 | uint32(entry.file_size), |
| 86 | newOidFromC(&entry.id), |
| 87 | C.GoString(entry.path), |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func populateCIndexEntry(source *IndexEntry, dest *C.git_index_entry) { |
| 92 | dest.ctime.seconds = C.int32_t(source.Ctime.Seconds) |
no test coverage detected
searching dependent graphs…