pub fn write_temp_commit_file(initial: &str) -> Result<PathBuf>
Utility to write/read a temporary commit message file for hooks to modify. Uses NamedTempFile to avoid memory leaks while keeping the file accessible.