MCPcopy Index your code
hub / github.com/alt-art/commit / write_cached_commit

Function write_cached_commit

src/commit.rs:56–59  ·  view source on GitHub ↗
(commit_message: &str)

Source from the content-addressed store, hash-verified

54}
55
56pub fn write_cached_commit(commit_message: &str) -> Result<()> {
57 fs::write(get_git_path()?.join("COMMIT_EDITMSG"), commit_message)?;
58 Ok(())
59}
60
61pub fn pre_commit_check(pre_commit_command: Option<String>, message: &str) -> Result<()> {
62 if let Some(command) = pre_commit_command {

Callers 1

mainFunction · 0.85

Calls 1

get_git_pathFunction · 0.85

Tested by

no test coverage detected