aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-06-14 01:42:12 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2020-06-14 01:42:12 +0200
commitae693a97b7f10b672dfd5816a0dc2bb3cb3bfa9f (patch)
tree11a3bc96f3e1a6520c652f832aa1b66a2222779a /worktree_test.go
parentb77bbc985343c5b866136c89fc2c3919002c1acf (diff)
downloadgo-git-ae693a97b7f10b672dfd5816a0dc2bb3cb3bfa9f.tar.gz
Worktree.AddWithOptions: improve documentation and interface
Diffstat (limited to 'worktree_test.go')
-rw-r--r--worktree_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worktree_test.go b/worktree_test.go
index 2ee830a..72bcbd9 100644
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -1396,7 +1396,7 @@ func (s *WorktreeSuite) TestAddAll(c *C) {
w.Excludes = make([]gitignore.Pattern, 0)
w.Excludes = append(w.Excludes, gitignore.ParsePattern("file3", nil))
- _, err = w.AddWithOptions(&AddOptions{All: true})
+ err = w.AddWithOptions(&AddOptions{All: true})
c.Assert(err, IsNil)
idx, err = w.r.Storer.Index()
@@ -1437,7 +1437,7 @@ func (s *WorktreeSuite) TestAddGlob(c *C) {
err = util.WriteFile(w.Filesystem, "qux/bar/baz", []byte("BAZ"), 0755)
c.Assert(err, IsNil)
- err = w.AddGlob(w.Filesystem.Join("qux", "b*"))
+ err = w.AddWithOptions(&AddOptions{Glob: w.Filesystem.Join("qux", "b*")})
c.Assert(err, IsNil)
idx, err = w.r.Storer.Index()