(t string)
| 443 | } |
| 444 | |
| 445 | func indent(t string) string { |
| 446 | var output []string |
| 447 | for _, line := range strings.Split(t, "\n") { |
| 448 | if len(line) != 0 { |
| 449 | line = " " + line |
| 450 | } |
| 451 | |
| 452 | output = append(output, line) |
| 453 | } |
| 454 | |
| 455 | return strings.Join(output, "\n") |
| 456 | } |
| 457 | |
| 458 | // CommitIter is a generic closable interface for iterating over commits. |
| 459 | type CommitIter interface { |