Show More
@@ -343,7 +343,13 b" impl<'tree, 'on_disk> NodeRef<'tree, 'on" | |||||
343 | pub(super) fn state( |
|
343 | pub(super) fn state( | |
344 | &self, |
|
344 | &self, | |
345 | ) -> Result<Option<EntryState>, DirstateV2ParseError> { |
|
345 | ) -> Result<Option<EntryState>, DirstateV2ParseError> { | |
346 |
Ok(self.entry()?. |
|
346 | Ok(self.entry()?.and_then(|e| { | |
|
347 | if e.any_tracked() { | |||
|
348 | Some(e.state()) | |||
|
349 | } else { | |||
|
350 | None | |||
|
351 | } | |||
|
352 | })) | |||
347 | } |
|
353 | } | |
348 |
|
354 | |||
349 | pub(super) fn cached_directory_mtime( |
|
355 | pub(super) fn cached_directory_mtime( |
General Comments 0
You need to be logged in to leave comments.
Login now