code: func (s Submodules) Status() (SubmodulesStatus, error) {
  	var list SubmodulesStatus
  
  	var r *Repository
  	for _, sub := range s {
  		if r == nil {
  			r = sub.w.r
  		}
  
  		idx, err := r.Storer.Index()
  		if err != nil {
  			return nil, err
  		}
  
  		status, err := sub.status(idx)
  		if err != nil {
  			return nil, err
  		}
  
  		list = append(list, status)
  	}
  
  	return list, nil
  }
docs: // Status returns the status of the submodules.