Skip to main content

delete_commit_message_file

Function delete_commit_message_file 

Source
pub fn delete_commit_message_file() -> Result<()>
Expand description

Delete the commit-message.txt file after committing.

Called after a successful git commit to clean up the temporary commit message file. Silently succeeds if the file doesn’t exist.

Note: This function uses the current working directory for paths. For explicit path control, use delete_commit_message_file_at instead.