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

Method get_commit_hash

src/run_environment/provider.rs:158–160  ·  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

156
157 /// Returns the HEAD commit hash of the repository at the given path.
158 fn get_commit_hash(&self, repository_root_path: &str) -> Result<String> {
159 get_commit_hash_default_impl(repository_root_path)
160 }
161}
162
163/// Where a CodSpeed Macro Runner writes the JSON object describing its configuration.

Callers 1

get_upload_metadataMethod · 0.45

Implementers 5

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
provider.rssrc/run_environment/circleci/provider.

Calls 1

Tested by

no test coverage detected