parent
179b69ce21
commit
1e01cae286
2
index.go
2
index.go
|
@ -18,7 +18,6 @@ type Index struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type IndexEntry struct {
|
type IndexEntry struct {
|
||||||
ptr *C.git_index_entry
|
|
||||||
Ctime time.Time
|
Ctime time.Time
|
||||||
Mtime time.Time
|
Mtime time.Time
|
||||||
Mode uint
|
Mode uint
|
||||||
|
@ -68,7 +67,6 @@ func (v *Index) EntryCount() uint {
|
||||||
|
|
||||||
func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
|
func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
|
||||||
return &IndexEntry{
|
return &IndexEntry{
|
||||||
entry,
|
|
||||||
time.Unix(int64(entry.ctime.seconds), int64(entry.ctime.nanoseconds)),
|
time.Unix(int64(entry.ctime.seconds), int64(entry.ctime.nanoseconds)),
|
||||||
time.Unix(int64(entry.mtime.seconds), int64(entry.mtime.nanoseconds)),
|
time.Unix(int64(entry.mtime.seconds), int64(entry.mtime.nanoseconds)),
|
||||||
uint(entry.mode),
|
uint(entry.mode),
|
||||||
|
|
Loading…
Reference in New Issue