MCPcopy Create free account
hub / github.com/go-git/go-git / IsClean

Method IsClean

submodule.go:366–368  ·  view source on GitHub ↗

IsClean is the HEAD of the submodule is equals to the expected commit

()

Source from the content-addressed store, hash-verified

364
365// IsClean is the HEAD of the submodule is equals to the expected commit
366func (s *SubmoduleStatus) IsClean() bool {
367 return s.Current == s.Expected
368}
369
370// String is equivalent to `git submodule status <submodule>`
371//

Callers 1

StringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected