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

Method Status

submodule.go:60–67  ·  view source on GitHub ↗

Status returns the status of the submodule.

()

Source from the content-addressed store, hash-verified

58
59// Status returns the status of the submodule.
60func (s *Submodule) Status() (*SubmoduleStatus, error) {
61 idx, err := s.w.r.Storer.Index()
62 if err != nil {
63 return nil, err
64 }
65
66 return s.status(idx)
67}
68
69func (s *Submodule) status(idx *index.Index) (*SubmoduleStatus, error) {
70 status := &SubmoduleStatus{

Calls 2

statusMethod · 0.95
IndexMethod · 0.65