IsDelete returns true if the refspec indicates a delete (empty src).
()
| 56 | |
| 57 | // IsDelete returns true if the refspec indicates a delete (empty src). |
| 58 | func (s RefSpec) IsDelete() bool { |
| 59 | return s[0] == refSpecSeparator[0] |
| 60 | } |
| 61 | |
| 62 | // IsExactSHA1 returns true if the source is a SHA1 hash. |
| 63 | func (s RefSpec) IsExactSHA1() bool { |
no outgoing calls