()
| 133 | } |
| 134 | |
| 135 | func (s RefSpec) Reverse() RefSpec { |
| 136 | spec := string(s) |
| 137 | separator := strings.Index(spec, refSpecSeparator) |
| 138 | |
| 139 | return RefSpec(spec[separator+1:] + refSpecSeparator + spec[:separator]) |
| 140 | } |
| 141 | |
| 142 | func (s RefSpec) String() string { |
| 143 | return string(s) |