Status returns the status of the submodule.
()
| 58 | |
| 59 | // Status returns the status of the submodule. |
| 60 | func (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 | |
| 69 | func (s *Submodule) status(idx *index.Index) (*SubmoduleStatus, error) { |
| 70 | status := &SubmoduleStatus{ |