aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-26 20:55:00 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-04-26 20:55:00 +0200
commit75c5adffb8b1e80665753784129e2f16210514c1 (patch)
treea51878832cabcd1f2142e4eb855b17f16d7c2ddf /worktree.go
parent9b75cb91384dd08eed2acce8c3099e082835da12 (diff)
downloadgo-git-75c5adffb8b1e80665753784129e2f16210514c1.tar.gz
*: applying new index.Index changes
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/worktree.go b/worktree.go
index e92449c..ad6e0f7 100644
--- a/worktree.go
+++ b/worktree.go
@@ -352,7 +352,7 @@ func (w *Worktree) checkoutFile(f *object.File) error {
}
func (w *Worktree) addIndexFromTreeEntry(name string, f *object.TreeEntry, idx *index.Index) error {
- idx.Entries = append(idx.Entries, index.Entry{
+ idx.Entries = append(idx.Entries, &index.Entry{
Hash: f.Hash,
Name: name,
Mode: filemode.Submodule,
@@ -372,7 +372,7 @@ func (w *Worktree) addIndexFromFile(name string, h plumbing.Hash, idx *index.Ind
return err
}
- e := index.Entry{
+ e := &index.Entry{
Hash: h,
Name: name,
Mode: mode,
@@ -383,7 +383,7 @@ func (w *Worktree) addIndexFromFile(name string, h plumbing.Hash, idx *index.Ind
// if the FileInfo.Sys() comes from os the ctime, dev, inode, uid and gid
// can be retrieved, otherwise this doesn't apply
if fillSystemInfo != nil {
- fillSystemInfo(&e, fi.Sys())
+ fillSystemInfo(e, fi.Sys())
}
idx.Entries = append(idx.Entries, e)