GetRepoStateHash returns a hash which embodies the entire current state of a repository.
()
| 146 | |
| 147 | // GetRepoStateHash returns a hash which embodies the entire current state of a repository. |
| 148 | func (repo *GitRepo) GetRepoStateHash() (string, error) { |
| 149 | stateSummary, error := repo.runGitCommand("show-ref") |
| 150 | return fmt.Sprintf("%x", sha1.Sum([]byte(stateSummary))), error |
| 151 | } |
| 152 | |
| 153 | // GetUserEmail returns the email address that the user has used to configure git. |
| 154 | func (repo *GitRepo) GetUserEmail() (string, error) { |
nothing calls this directly
no test coverage detected