File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -234,17 +234,17 @@ impl file::Store {
234
234
}
235
235
Tag | LocalBranch | RemoteBranch | Note => ( commondir. into ( ) , name) ,
236
236
MainRef | MainPseudoRef => ( commondir. into ( ) , sn) ,
237
- LinkedRef { name : worktree_name } => sn
238
- . category ( )
239
- . is_some_and ( |cat| cat. is_worktree_private ( ) )
240
- . then ( || {
237
+ LinkedRef { name : worktree_name } => {
238
+ if sn. category ( ) . is_some_and ( |cat| cat. is_worktree_private ( ) ) {
241
239
if is_reflog {
242
240
( linked_git_dir ( worktree_name) . into ( ) , sn)
243
241
} else {
244
242
( commondir. into ( ) , name)
245
243
}
246
- } )
247
- . unwrap_or ( ( commondir. into ( ) , sn) ) ,
244
+ } else {
245
+ ( commondir. into ( ) , sn)
246
+ }
247
+ }
248
248
PseudoRef | Bisect | Rewritten | WorktreePrivate => ( self . git_dir . as_path ( ) . into ( ) , name) ,
249
249
}
250
250
} )
Original file line number Diff line number Diff line change @@ -222,8 +222,8 @@ mod init {
222
222
/// Create a new instance with commit filtering enabled.
223
223
///
224
224
/// * `find` - a way to lookup new object data during traversal by their `ObjectId`, writing their data into buffer and returning
225
- /// an iterator over commit tokens if the object is present and is a commit. Caching should be implemented within this function
226
- /// as needed.
225
+ /// an iterator over commit tokens if the object is present and is a commit. Caching should be implemented within this function
226
+ /// as needed.
227
227
/// * `tips`
228
228
/// * the starting points of the iteration, usually commits
229
229
/// * each commit they lead to will only be returned once, including the tip that started it
You can’t perform that action at this time.
0 commit comments