cli: add .txt suffix to temporary commit description file

I've configured emacs to enable spell checking for text-mode. This helps
emacs open a description file in text-mode.
This commit is contained in:
Yuya Nishihara 2022-05-26 11:35:12 +09:00
parent 540f2eb583
commit f5e4c77f8e

View file

@ -3165,7 +3165,7 @@ fn edit_description(
description: &str,
) -> Result<String, CommandError> {
let random: u32 = rand::random();
let description_file_path = repo.repo_path().join(format!("description-{}", random));
let description_file_path = repo.repo_path().join(format!("description-{}.txt", random));
{
let mut description_file = OpenOptions::new()
.write(true)