MCPcopy
hub / github.com/go-git/go-git / IsUntracked

Method IsUntracked

status.go:27–30  ·  view source on GitHub ↗

IsUntracked checks if file for given path is 'Untracked'

(path string)

Source from the content-addressed store, hash-verified

25
26// IsUntracked checks if file for given path is 'Untracked'
27func (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.
33func (s Status) IsClean() bool {

Callers 3

doCleanMethod · 0.80
TestStatusUnmodifiedMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestStatusUnmodifiedMethod · 0.64