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

Method Status

submodule.go:57–64  ·  view source on GitHub ↗

Status returns the status of the submodule.

()

Source from the content-addressed store, hash-verified

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

Calls 2

statusMethod · 0.95
IndexMethod · 0.65

Tested by 15

TestCheckoutSymlinkMethod · 0.36
TestCheckoutSubmoduleMethod · 0.36
TestCheckoutTagMethod · 0.36
TestCheckoutTagHashMethod · 0.36
testCheckoutBisectMethod · 0.36
TestStatusEmptyMethod · 0.36
TestStatusEmptyDirtyMethod · 0.36
TestCleanMethod · 0.36