Skip to main content

get_commit_message_from_workspace

Function get_commit_message_from_workspace 

Source
pub fn get_commit_message_from_workspace(
    workspace: &dyn Workspace,
) -> Result<String>
Expand description

Handles the --show-commit-msg command using workspace abstraction.

This is a testable version that uses Workspace for file I/O, enabling tests to use MemoryWorkspace for isolation.

§Arguments

  • workspace - The workspace to read from

§Returns

Returns the commit message string on success.

§Errors

Returns error if the operation fails.