From da56abd1530ce85640479a6b6cf292009891a0f5 Mon Sep 17 00:00:00 2001 From: David Url Date: Sat, 6 Oct 2018 13:00:11 +0200 Subject: [PATCH] git: Fix Status.IsClean() documentation The documentation of the IsClean Method contained a negation, so it was describing the opposite of its actual behavior. Fixes #838 Signed-off-by: David Url --- status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.go b/status.go index ecbf79350..7f18e0227 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 {