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