6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-06 20:25:40 +00:00

Indicate if error occured during status loading and print the list of errors

This commit is contained in:
Grzegorz Dlugoszewski
2020-07-27 16:17:13 +02:00
parent d660a73c7f
commit b2d1d773f7
7 changed files with 107 additions and 59 deletions

View File

@@ -17,7 +17,7 @@ func NewDumpPrinter() *DumpPrinter {
func (p *DumpPrinter) Print(repos []Printable) string {
var str strings.Builder
for i, r := range repos {
for _, r := range repos {
str.WriteString(r.Remote())
// TODO: if head is detached maybe we should get the revision it points to in case it's a tag
@@ -25,9 +25,7 @@ func (p *DumpPrinter) Print(repos []Printable) string {
str.WriteString(" " + current)
}
if i < len(repos)-1 {
str.WriteString("\n")
}
str.WriteString("\n")
}
return str.String()