Skip to content

Commit d835526

Browse files
committed
Apply momo to gix::object::tree
to: - `Tree<'_>::lookup_entry_by_path` - `Tree<'_>::peel_to_entry_by_path` Signed-off-by: Jiahao XU <[email protected]>
1 parent 46a9dfe commit d835526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gix/src/object/tree/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use gix_hash::ObjectId;
2+
use gix_macros::momo;
23
pub use gix_object::tree::EntryMode;
34
use gix_object::{bstr::BStr, TreeRefIter};
45
use gix_odb::FindExt;
@@ -132,6 +133,7 @@ impl<'repo> Tree<'repo> {
132133
///
133134
/// If any path component contains illformed UTF-8 and thus can't be converted to bytes on platforms which can't do so natively,
134135
/// the returned component will be empty which makes the lookup fail.
136+
#[momo]
135137
pub fn lookup_entry_by_path(
136138
&self,
137139
relative_path: impl AsRef<std::path::Path>,
@@ -154,6 +156,7 @@ impl<'repo> Tree<'repo> {
154156
///
155157
/// If any path component contains illformed UTF-8 and thus can't be converted to bytes on platforms which can't do so natively,
156158
/// the returned component will be empty which makes the lookup fail.
159+
#[momo]
157160
pub fn peel_to_entry_by_path(
158161
&mut self,
159162
relative_path: impl AsRef<std::path::Path>,

0 commit comments

Comments
 (0)