()
| 79 | } |
| 80 | |
| 81 | func (r *Remote) String() string { |
| 82 | var fetch, push string |
| 83 | if len(r.c.URLs) > 0 { |
| 84 | fetch = r.c.URLs[0] |
| 85 | push = r.c.URLs[0] |
| 86 | } |
| 87 | |
| 88 | return fmt.Sprintf("%s\t%s (fetch)\n%[1]s\t%[3]s (push)", r.c.Name, fetch, push) |
| 89 | } |
| 90 | |
| 91 | // Push performs a push to the remote. Returns NoErrAlreadyUpToDate if the |
| 92 | // remote was already up-to-date. |