From b97d25038bbcae58b8dd74c1bfc8c5c3bc2184bb Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 16 May 2021 13:45:08 -0700 Subject: [PATCH] cli: restore newline after each file in `jj files` --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index fb7b00bc5..67bc34cbc 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -825,7 +825,7 @@ fn cmd_files( let mut repo_command = command.repo_helper(ui)?; let commit = repo_command.resolve_revision_arg(sub_matches)?; for (name, _value) in commit.tree().entries() { - ui.write(&ui.format_file_path(repo_command.repo().working_copy_path(), &name))?; + writeln!(ui, "{}", &ui.format_file_path(repo_command.repo().working_copy_path(), &name))?; } Ok(()) }