Status returns the status of the submodule.
()
| 55 | |
| 56 | // Status returns the status of the submodule. |
| 57 | func (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 | |
| 66 | func (s *Submodule) status(idx *index.Index) (*SubmoduleStatus, error) { |
| 67 | status := &SubmoduleStatus{ |