diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ca3ac31f..c15dedc74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * `jj` with no subcommand now defaults to `jj log` instead of showing help. This command can be overridden by setting `ui.default-command`. +* Description tempfiles created via `jj describe` now have the file extension + `.jjdescription` to help external tooling detect a unique filetype. + ### Fixed bugs * Modify/delete conflicts now include context lines diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 7095a6d93..aaee12f69 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1769,8 +1769,8 @@ fn edit_description( ) -> Result { let description_file_path = (|| -> Result<_, io::Error> { let mut file = tempfile::Builder::new() - .prefix("description-") - .suffix(".txt") + .prefix("editor-") + .suffix(".jjdescription") .tempfile_in(repo.repo_path())?; file.write_all(description.as_bytes())?; file.write_all(b"\nJJ: Lines starting with \"JJ: \" (like this one) will be removed.\n")?;