aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOri Rawlings <orirawlings@gmail.com>2017-10-09 06:39:04 -0500
committerGitHub <noreply@github.com>2017-10-09 06:39:04 -0500
commite4ce8aacbcfc2ba341b6dc1938cd16deb734fe56 (patch)
tree8dc9b3c41d7571dbcab3460c02558b1cec169656
parentd90adeb5d675bfe7998b756e2eb583a3f8e3888b (diff)
parent6bb28e4f35896aabbca307667388e094025ddc9b (diff)
downloadgo-git-e4ce8aacbcfc2ba341b6dc1938cd16deb734fe56.tar.gz
Merge pull request #617 from blacksails/patch-1
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 b2848f9..ac4be3a 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 {