String is equivalent to `git submodule status`
()
| 346 | |
| 347 | // String is equivalent to `git submodule status` |
| 348 | func (s SubmodulesStatus) String() string { |
| 349 | buf := bytes.NewBuffer(nil) |
| 350 | for _, sub := range s { |
| 351 | fmt.Fprintln(buf, sub) |
| 352 | } |
| 353 | |
| 354 | return buf.String() |
| 355 | } |
| 356 | |
| 357 | // SubmoduleStatus contains the status for a submodule in the worktree |
| 358 | type SubmoduleStatus struct { |