GetHeadRef returns the ref that is the current HEAD.
()
| 205 | |
| 206 | // GetHeadRef returns the ref that is the current HEAD. |
| 207 | func (repo *GitRepo) GetHeadRef() (string, error) { |
| 208 | return repo.runGitCommand("symbolic-ref", "HEAD") |
| 209 | } |
| 210 | |
| 211 | // GetCommitHash returns the hash of the commit pointed to by the given ref. |
| 212 | func (repo *GitRepo) GetCommitHash(ref string) (string, error) { |
nothing calls this directly
no test coverage detected