diff options
author | David Url <david@urld.io> | 2018-10-06 13:00:11 +0200 |
---|---|---|
committer | David Url <david@urld.io> | 2018-10-06 22:55:42 +0200 |
commit | da56abd1530ce85640479a6b6cf292009891a0f5 (patch) | |
tree | ea615a5caf55b8deed014ae3df7bed901a136edc /status.go | |
parent | d3cec13ac0b195bfb897ed038a08b5130ab9969e (diff) | |
download | go-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |