diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-10 20:17:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 20:17:22 +0100 |
commit | 87a84b1cb90149cf81e76be46811341a30e4a367 (patch) | |
tree | 824dd6c705ebf4443d2a5b26d184d93afe9cd7a2 /worktree.go | |
parent | 4f7ef8fe49e4824b741792bca6424b332b40421f (diff) | |
parent | 726204ed80d74f7503b93bb3fce665cab47dee33 (diff) | |
download | go-git-87a84b1cb90149cf81e76be46811341a30e4a367.tar.gz |
Merge pull request #263 from smola/public-storage
git: make Storer public in Repository.
Diffstat (limited to 'worktree.go')
-rw-r--r-- | worktree.go | 4 |
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 } |