ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: restore newline after each file in jj files

This commit is contained in:
Martin von Zweigbergk 2021-05-16 13:45:08 -07:00
parent b671eca7ad
commit b97d25038b

View file

@ -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(())
}