MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / get_head_commit

Method get_head_commit

src/test_utils/git_test_utils.rs:176–178  ·  view source on GitHub ↗

Gets the SHA of the HEAD commit (alias for get_current_commit).

(&self)

Source from the content-addressed store, hash-verified

174
175 /// Gets the SHA of the HEAD commit (alias for get_current_commit).
176 pub fn get_head_commit(&self) -> Result<String> {
177 self.get_current_commit()
178 }
179
180 /// Gets the name of the current branch.
181 pub fn current_branch(&self) -> Result<String> {

Calls 1

get_current_commitMethod · 0.80

Tested by

no test coverage detected