rust/hg-core/src/dirstate/status.rs
changeset 44901 73d6ce2746d2
parent 44897 c802ec4f7196
child 44966 ce8fe77102f4
equal deleted inserted replaced
44900:526d69eeea31 44901:73d6ce2746d2
   845 ) -> StatusResult<(
   845 ) -> StatusResult<(
   846     (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>),
   846     (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>),
   847     Vec<PatternFileWarning>,
   847     Vec<PatternFileWarning>,
   848 )> {
   848 )> {
   849     // Needs to outlive `dir_ignore_fn` since it's captured.
   849     // Needs to outlive `dir_ignore_fn` since it's captured.
   850     let mut ignore_fn: IgnoreFnType;
   850     let ignore_fn: IgnoreFnType;
   851 
   851 
   852     // Only involve real ignore mechanism if we're listing unknowns or ignored.
   852     // Only involve real ignore mechanism if we're listing unknowns or ignored.
   853     let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored
   853     let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored
   854         || options.list_unknown
   854         || options.list_unknown
   855     {
   855     {