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

Method commit

src/test_utils/git_test_utils.rs:55–60  ·  view source on GitHub ↗

Creates a commit with the given message. Returns the commit SHA.

(&self, message: &str)

Source from the content-addressed store, hash-verified

53 /// Creates a commit with the given message.
54 /// Returns the commit SHA.
55 pub fn commit(&self, message: &str) -> Result<String> {
56 self.run_git_command(&["commit", "-m", message])
57 .context("Failed to create commit")?;
58
59 self.get_current_commit()
60 }
61
62 /// Gets the SHA of the current commit.
63 pub fn get_current_commit(&self) -> Result<String> {

Calls 2

run_git_commandMethod · 0.80
get_current_commitMethod · 0.80

Tested by

no test coverage detected