File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,7 @@ mod submodule_status {
199
199
let local_repo = repo. to_thread_local ( ) ;
200
200
let submodule_paths = match local_repo. submodules ( ) ? {
201
201
Some ( sm) => {
202
- let mut v: Vec < _ > = sm
203
- . filter ( |sm| sm. is_active ( ) . unwrap_or_default ( ) )
204
- . filter_map ( |sm| sm. path ( ) . ok ( ) . map ( Cow :: into_owned) )
205
- . collect ( ) ;
202
+ let mut v: Vec < _ > = sm. filter_map ( |sm| sm. path ( ) . ok ( ) . map ( Cow :: into_owned) ) . collect ( ) ;
206
203
v. sort ( ) ;
207
204
v
208
205
}
@@ -271,7 +268,8 @@ mod submodule_status {
271
268
///
272
269
/// ### Submodules
273
270
///
274
- /// Note that submodules can be set to 'inactive' which automatically excludes them from the status operation.
271
+ /// Note that submodules can be set to 'inactive', which will not exclude them from the status operation, similar to
272
+ /// how `git status` includes them.
275
273
///
276
274
/// ### Index Changes
277
275
///
You can’t perform that action at this time.
0 commit comments