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

cli: leverage RevsetIteratorExt::commits() in jj log

I'm trying to remove uses of `IndexEntry`.
This commit is contained in:
Martin von Zweigbergk 2023-03-22 18:29:46 -07:00 committed by Martin von Zweigbergk
parent 5709822f05
commit 9ed537b3e8

View file

@ -1568,8 +1568,8 @@ fn cmd_log(ui: &mut Ui, command: &CommandHelper, args: &LogArgs) -> Result<(), C
} else {
Box::new(revset.iter())
};
for index_entry in iter {
let commit = store.get_commit(&index_entry.commit_id())?;
for commit_or_error in iter.commits(store) {
let commit = commit_or_error?;
with_content_format
.write(formatter, |formatter| template.format(&commit, formatter))?;
if !diff_formats.is_empty() {