gitRefExists reports whether a git ref exists locally.
(ref string)
| 755 | |
| 756 | // gitRefExists reports whether a git ref exists locally. |
| 757 | func gitRefExists(ref string) bool { |
| 758 | cmd := exec.Command("git", "rev-parse", "--verify", ref) |
| 759 | return cmd.Run() == nil |
| 760 | } |
| 761 | |
| 762 | // printExperimentDetails renders experiment details to stderr in human-readable form. |
| 763 | func printExperimentDetails(d *ExperimentDetails) { |
no test coverage detected