···271271 else rest
272272 else abs_path
273273274274-let find_self ctx dir entries =
274274+let self ctx dir entries =
275275 if List.mem ".git" entries then [ dir ]
276276 else if is_inside_git_repo ~cwd:ctx.cwd ~fs:ctx.fs dir then
277277 match git_root ~cwd:ctx.cwd ~fs:ctx.fs dir with
···289289 try Eio.Path.read_dir Eio.Path.(ctx.cwd / dir) with Eio.Io _ -> []
290290 in
291291 let child_path name = if dir = "." then name else Filename.concat dir name in
292292- let self = find_self ctx dir entries in
292292+ let self = self ctx dir entries in
293293 (* Only descend into children if we haven't found a git root yet *)
294294 let children =
295295 if self <> [] then []