aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-10-09 06:34:46 +0200
committerGitHub <noreply@github.com>2018-10-09 06:34:46 +0200
commit37caf1f77e48b9e33172be3abf1dcac953e8ffe9 (patch)
tree5fc148d21fa3e7b3098f2b16e9b6c6776136874b
parentba9c38b7c7cb0bbdeadfb599f080999016338572 (diff)
parentda56abd1530ce85640479a6b6cf292009891a0f5 (diff)
downloadgo-git-37caf1f77e48b9e33172be3abf1dcac953e8ffe9.tar.gz
Merge pull request #978 from urld/isclean
git: Fix Status.IsClean() documentation
-rw-r--r--status.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/status.go b/status.go
index ecbf793..7f18e02 100644
--- a/status.go
+++ b/status.go
@@ -26,7 +26,7 @@ func (s Status) IsUntracked(path string) bool {
return ok && stat.Worktree == Untracked
}
-// IsClean returns true if all the files aren't in Unmodified status.
+// IsClean returns true if all the files are in Unmodified status.
func (s Status) IsClean() bool {
for _, status := range s {
if status.Worktree != Unmodified || status.Staging != Unmodified {