+5
-0
lines changedFilter options
+5
-0
lines changed Original file line number Diff line number Diff line change
@@ -15,6 +15,11 @@ impl<'repo, 'a> EntryRef<'repo, 'a> {
15
15
self.inner.mode
16
16
}
17
17
18
+
/// The kind of object to which [`id()`][Self::id()] is pointing, as shortcut to [self.mode().kind()](Self::mode()).
19
+
pub fn kind(&self) -> gix_object::tree::EntryKind {
20
+
self.inner.mode.kind()
21
+
}
22
+
18
23
/// The name of the file in the parent tree.
19
24
pub fn filename(&self) -> &gix_object::bstr::BStr {
20
25
self.inner.filename
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4