##// END OF EJS Templates
rust-dirstate: don't return a state for untracked entries...
Raphaël Gomès -
r49921:a85c123c default
parent child Browse files
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()?.map(|e| e.state()))
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