Adjust to oid -> id
This commit is contained in:
parent
1e01cae286
commit
14f902afed
4
index.go
4
index.go
|
@ -24,7 +24,7 @@ type IndexEntry struct {
|
||||||
Uid uint
|
Uid uint
|
||||||
Gid uint
|
Gid uint
|
||||||
Size uint
|
Size uint
|
||||||
Oid *Oid
|
Id *Oid
|
||||||
Path string
|
Path string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
|
||||||
uint(entry.uid),
|
uint(entry.uid),
|
||||||
uint(entry.gid),
|
uint(entry.gid),
|
||||||
uint(entry.file_size),
|
uint(entry.file_size),
|
||||||
newOidFromC(&entry.oid),
|
newOidFromC(&entry.id),
|
||||||
C.GoString(entry.path),
|
C.GoString(entry.path),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue