IsUntracked checks if file for given path is 'Untracked'
(path string)
| 25 | |
| 26 | // IsUntracked checks if file for given path is 'Untracked' |
| 27 | func (s Status) IsUntracked(path string) bool { |
| 28 | stat, ok := (s)[filepath.ToSlash(path)] |
| 29 | return ok && stat.Worktree == Untracked |
| 30 | } |
| 31 | |
| 32 | // IsClean returns true if all the files are in Unmodified status. |
| 33 | func (s Status) IsClean() bool { |
no outgoing calls