(arg string)
| 351 | var commitHash = regexp.MustCompile(`\A[a-f0-9]{7,64}\z`) |
| 352 | |
| 353 | func isCommit(arg string) bool { |
| 354 | return commitHash.MatchString(arg) |
| 355 | } |
| 356 | |
| 357 | // gitClient is used to implement functions that can be performed on both local and remote git repositories |
| 358 | type gitClient interface { |
no outgoing calls
no test coverage detected