ShortSHA returns the first 8 characters of a SHA hash for display purposes.
(sha string)
| 810 | |
| 811 | // ShortSHA returns the first 8 characters of a SHA hash for display purposes. |
| 812 | func ShortSHA(sha string) string { |
| 813 | if len(sha) > 8 { |
| 814 | return sha[:8] |
| 815 | } |
| 816 | return sha |
| 817 | } |
| 818 | |
| 819 | func (c *Client) UnsetRemoteResolution(ctx context.Context, name string) error { |
| 820 | args := []string{"config", "--unset", fmt.Sprintf("remote.%s.gh-resolved", name)} |
no outgoing calls