From 3713157d189a109bdccdb055200defb17297b6de Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 4 May 2017 20:02:27 +0200 Subject: worktree: Commit, tests improvements --- worktree_commit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worktree_commit.go') diff --git a/worktree_commit.go b/worktree_commit.go index 9cefdcf..bec75b2 100644 --- a/worktree_commit.go +++ b/worktree_commit.go @@ -22,7 +22,7 @@ func (w *Worktree) Commit(msg string, opts *CommitOptions) (plumbing.Hash, error return plumbing.ZeroHash, err } - if opts.All == true { + if opts.All { if err := w.autoAddModifiedAndDeleted(); err != nil { return plumbing.ZeroHash, err } @@ -103,7 +103,7 @@ func (w *Worktree) buildCommitObject(msg string, opts *CommitOptions, tree plumb } // commitIndexHelper converts a given index.Index file into multiple git objects -// reading the blogs from the given filesystem and creating the trees from the +// reading the blobs from the given filesystem and creating the trees from the // index structure. The created objects are pushed to a given Storer. type commitIndexHelper struct { fs billy.Filesystem -- cgit