MCPcopy Index your code
hub / github.com/celer-pkg/celer / IsModified

Function IsModified

pkgs/git/local.go:46–52  ·  view source on GitHub ↗

IsModified check if repo is modified.

(repoDir string)

Source from the content-addressed store, hash-verified

44
45// IsModified check if repo is modified.
46func IsModified(repoDir string) (bool, error) {
47 lines, err := statusLines(repoDir)
48 if err != nil {
49 return false, err
50 }
51 return len(lines) > 0, nil
52}
53
54// CleanRepo clean local changes of a repo to HEAD.
55func CleanRepo(repoDir string) error {

Callers 4

CloneConfMethod · 0.92
TestCleanFunction · 0.92
UpdateRepoFunction · 0.85

Calls 1

statusLinesFunction · 0.85

Tested by 1

TestCleanFunction · 0.74