()
| 29 | } |
| 30 | |
| 31 | func (c Commit) Name() string { |
| 32 | if c.ShortHash != "" { |
| 33 | return c.ShortHash |
| 34 | } else if c.Hash != "" { |
| 35 | return c.Hash |
| 36 | } else { |
| 37 | return "unknown" |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func (c Commit) String() string { |
| 42 | return fmt.Sprintf( |
no outgoing calls
no test coverage detected