pub fn write_commit_message_file(message: &str) -> Result<()>Expand description
Write commit message to file.
Creates the .agent directory if it doesn’t exist and writes the commit message to .agent/commit-message.txt.
§Arguments
message- The commit message to write
§Errors
Returns an error if the file cannot be created or written.
Note: This function uses the current working directory for paths.
For explicit path control, use write_commit_message_file_at instead.