aboutsummaryrefslogtreecommitdiffstats
path: root/status.go
diff options
context:
space:
mode:
authorDavid Url <david@urld.io>2018-10-06 13:00:11 +0200
committerDavid Url <david@urld.io>2018-10-06 22:55:42 +0200
commitda56abd1530ce85640479a6b6cf292009891a0f5 (patch)
treeea615a5caf55b8deed014ae3df7bed901a136edc /status.go
parentd3cec13ac0b195bfb897ed038a08b5130ab9969e (diff)
downloadgo-git-da56abd1530ce85640479a6b6cf292009891a0f5.tar.gz
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 <david@urld.io>
Diffstat (limited to 'status.go')
-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 {