Skip to content

Commit aeb22bc

Browse files
authored
Make index time fields public (#750)
From gorelease: ``` Compatible changes: - IndexTime.Nanoseconds: added - IndexTime.Seconds: added ``` There are no extra tests because there isn't really anything to test closes #304
1 parent f6c5753 commit aeb22bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type Index struct {
5757
}
5858

5959
type IndexTime struct {
60-
seconds int32
61-
nanoseconds uint32
60+
Seconds int32
61+
Nanoseconds uint32
6262
}
6363

6464
type IndexEntry struct {
@@ -89,10 +89,10 @@ func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
8989
}
9090

9191
func populateCIndexEntry(source *IndexEntry, dest *C.git_index_entry) {
92-
dest.ctime.seconds = C.int32_t(source.Ctime.seconds)
93-
dest.ctime.nanoseconds = C.uint32_t(source.Ctime.nanoseconds)
94-
dest.mtime.seconds = C.int32_t(source.Mtime.seconds)
95-
dest.mtime.nanoseconds = C.uint32_t(source.Mtime.nanoseconds)
92+
dest.ctime.seconds = C.int32_t(source.Ctime.Seconds)
93+
dest.ctime.nanoseconds = C.uint32_t(source.Ctime.Nanoseconds)
94+
dest.mtime.seconds = C.int32_t(source.Mtime.Seconds)
95+
dest.mtime.nanoseconds = C.uint32_t(source.Mtime.Nanoseconds)
9696
dest.mode = C.uint32_t(source.Mode)
9797
dest.uid = C.uint32_t(source.Uid)
9898
dest.gid = C.uint32_t(source.Gid)

0 commit comments

Comments
 (0)