Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit da56abd

Browse files
committed
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 <[email protected]>
1 parent d3cec13 commit da56abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

status.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (s Status) IsUntracked(path string) bool {
2626
return ok && stat.Worktree == Untracked
2727
}
2828

29-
// IsClean returns true if all the files aren't in Unmodified status.
29+
// IsClean returns true if all the files are in Unmodified status.
3030
func (s Status) IsClean() bool {
3131
for _, status := range s {
3232
if status.Worktree != Unmodified || status.Staging != Unmodified {

0 commit comments

Comments
 (0)