MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / get_commit_hash

Method get_commit_hash

src/run_environment/provider.rs:151–153  ·  view source on GitHub ↗

Returns the HEAD commit hash of the repository at the given path.

(&self, repository_root_path: &str)

Source from the content-addressed store, hash-verified

149
150 /// Returns the HEAD commit hash of the repository at the given path.
151 fn get_commit_hash(&self, repository_root_path: &str) -> Result<String> {
152 get_commit_hash_default_impl(repository_root_path)
153 }
154}
155
156fn get_commit_hash_default_impl(repository_root_path: &str) -> Result<String> {

Callers 1

get_upload_metadataMethod · 0.45

Implementers 4

provider.rssrc/run_environment/buildkite/provider
provider.rssrc/run_environment/github_actions/pro
provider.rssrc/run_environment/local/provider.rs
provider.rssrc/run_environment/gitlab_ci/provider

Calls 1

Tested by

no test coverage detected