ShortSHA returns the first 8 characters of a SHA hash for display purposes.
(sha string)
| 748 | |
| 749 | // ShortSHA returns the first 8 characters of a SHA hash for display purposes. |
| 750 | func ShortSHA(sha string) string { |
| 751 | if len(sha) > 8 { |
| 752 | return sha[:8] |
| 753 | } |
| 754 | return sha |
| 755 | } |
| 756 | |
| 757 | func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error { |
| 758 | args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)} |
no outgoing calls