GetCommitHash returns the hash of the commit pointed to by the given ref.
(ref string)
| 210 | |
| 211 | // GetCommitHash returns the hash of the commit pointed to by the given ref. |
| 212 | func (repo *GitRepo) GetCommitHash(ref string) (string, error) { |
| 213 | return repo.runGitCommand("show", "-s", "--format=%H", ref) |
| 214 | } |
| 215 | |
| 216 | // ResolveRefCommit returns the commit pointed to by the given ref, which may be a remote ref. |
| 217 | // |
no test coverage detected