mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-04 10:51:37 +00:00
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:
parent
540f2eb583
commit
f5e4c77f8e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue