aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-02-09 15:28:48 +0100
committerSantiago M. Mola <santi@mola.io>2017-02-09 15:28:48 +0100
commit726204ed80d74f7503b93bb3fce665cab47dee33 (patch)
tree824dd6c705ebf4443d2a5b26d184d93afe9cd7a2 /worktree.go
parent4f7ef8fe49e4824b741792bca6424b332b40421f (diff)
downloadgo-git-726204ed80d74f7503b93bb3fce665cab47dee33.tar.gz
git: make Storer public in Repository.
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worktree.go b/worktree.go
index 7b47650..58e008e 100644
--- a/worktree.go
+++ b/worktree.go
@@ -47,7 +47,7 @@ func (w *Worktree) Checkout(commit plumbing.Hash) error {
return err
}
- return w.r.s.SetIndex(idx)
+ return w.r.Storer.SetIndex(idx)
}
func (w *Worktree) checkoutFile(f *object.File, idx *index.Index) error {
@@ -97,7 +97,7 @@ func (w *Worktree) indexFile(f *object.File, idx *index.Index) error {
}
func (w *Worktree) Status() (Status, error) {
- idx, err := w.r.s.Index()
+ idx, err := w.r.Storer.Index()
if err != nil {
return nil, err
}