aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_commit.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-05-04 20:02:27 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-05-04 20:02:27 +0200
commit3713157d189a109bdccdb055200defb17297b6de (patch)
tree3cf652b8cfa94e011d4d7b5addfd13945870cda8 /worktree_commit.go
parentb8b61e74469e0d2662e7d690eee14893f91fe259 (diff)
downloadgo-git-3713157d189a109bdccdb055200defb17297b6de.tar.gz
worktree: Commit, tests improvements
Diffstat (limited to 'worktree_commit.go')
-rw-r--r--worktree_commit.go4
1 files changed, 2 insertions, 2 deletions
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