From eebc2ef5a1b768be5ed384cd44d7abe24e290eda Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 7 Jul 2023 01:35:10 -0700 Subject: [PATCH] commit_templater: avoid looking up tree only to get its id --- src/commit_templater.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commit_templater.rs b/src/commit_templater.rs index 0832a6253..04dbdfb03 100644 --- a/src/commit_templater.rs +++ b/src/commit_templater.rs @@ -259,7 +259,7 @@ fn build_commit_keyword_opt<'repo>( } "empty" => language.wrap_boolean(wrap_fn(property, |commit| { let parent_tree = rewrite::merge_commit_trees(repo, &commit.parents()).unwrap(); - commit.tree().id() == parent_tree.id() + commit.tree_id() == parent_tree.id() })), _ => return None, };