summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-02-26 15:18:47 +0100
committerCarlos Martín Nieto <[email protected]>2014-02-26 15:19:07 +0100
commit1e01cae286652885432c3d65d0693363e1b4a05c (patch)
treee692db489968c9d9c87411a9f39f0c2e91818cf7 /index.go
parent179b69ce21fd1742c4f51e4ae0f2c1ef6929019e (diff)
Remove pointer to git_index_entry
We have all the data
Diffstat (limited to 'index.go')
-rw-r--r--index.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/index.go b/index.go
index 90a49de..2bf3d04 100644
--- a/index.go
+++ b/index.go
@@ -18,7 +18,6 @@ type Index struct {
}
type IndexEntry struct {
- ptr *C.git_index_entry
Ctime time.Time
Mtime time.Time
Mode uint
@@ -68,7 +67,6 @@ func (v *Index) EntryCount() uint {
func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
return &IndexEntry{
- entry,
time.Unix(int64(entry.ctime.seconds), int64(entry.ctime.nanoseconds)),
time.Unix(int64(entry.mtime.seconds), int64(entry.mtime.nanoseconds)),
uint(entry.mode),