aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Nørgaard <b@noergaard.dk>2017-10-09 10:22:41 +0200
committerGitHub <noreply@github.com>2017-10-09 10:22:41 +0200
commit6bb28e4f35896aabbca307667388e094025ddc9b (patch)
treedd1c7eebdfdbd8298a26ca681b8ab9415d916bbe
parentf9879dd043f84936a1f8acb8a53b74332a7ae135 (diff)
downloadgo-git-6bb28e4f35896aabbca307667388e094025ddc9b.tar.gz
Fix spelling
-rw-r--r--worktree_status.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree_status.go b/worktree_status.go
index 24d0534..828f6e0 100644
--- a/worktree_status.go
+++ b/worktree_status.go
@@ -243,7 +243,7 @@ func diffTreeIsEquals(a, b noder.Hasher) bool {
}
// Add adds the file contents of a file in the worktree to the index. if the
-// file is already stagged in the index no error is returned.
+// file is already staged in the index no error is returned.
func (w *Worktree) Add(path string) (plumbing.Hash, error) {
s, err := w.Status()
if err != nil {