mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
single commit and bumping go-git version
This commit is contained in:
1 parent
3b45fb91e3
commit
15dedda59a
48 files changed
+1453
-390
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user