diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-02-26 15:18:47 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-02-26 15:19:07 +0100 |
| commit | 1e01cae286652885432c3d65d0693363e1b4a05c (patch) | |
| tree | e692db489968c9d9c87411a9f39f0c2e91818cf7 | |
| parent | 179b69ce21fd1742c4f51e4ae0f2c1ef6929019e (diff) | |
Remove pointer to git_index_entry
We have all the data
| -rw-r--r-- | index.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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), |
