IsExactSHA1 returns true if the source is a SHA1 hash.
()
| 61 | |
| 62 | // IsExactSHA1 returns true if the source is a SHA1 hash. |
| 63 | func (s RefSpec) IsExactSHA1() bool { |
| 64 | return plumbing.IsHash(s.Src()) |
| 65 | } |
| 66 | |
| 67 | // Src returns the src side. |
| 68 | func (s RefSpec) Src() string { |