From 5539137e9a6da3276bc83ef47bbebca8bab56856 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 20 Oct 2014 11:53:10 -0400 Subject: Use Filemode type in TreeEntry and IndexEntry Fixes #121 --- index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.go') diff --git a/index.go b/index.go index b1542d5..289239d 100644 --- a/index.go +++ b/index.go @@ -19,7 +19,7 @@ type Index struct { type IndexEntry struct { Ctime time.Time Mtime time.Time - Mode uint + Mode Filemode Uid uint Gid uint Size uint @@ -34,7 +34,7 @@ func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry { return &IndexEntry{ time.Unix(int64(entry.ctime.seconds), int64(entry.ctime.nanoseconds)), time.Unix(int64(entry.mtime.seconds), int64(entry.mtime.nanoseconds)), - uint(entry.mode), + Filemode(entry.mode), uint(entry.uid), uint(entry.gid), uint(entry.file_size), -- cgit v1.2.3