tarlatan
    Preparing search index...

    Function anySymbolicLink

    • Whether any of paths, each relative to commonDir, is a symbolic link, by lstat, which never follows one (review F3A): the keeper deletes no ref whose loose location lies below a directory reached through a link, since git follows it both when it lists and when update-ref --no-deref deletes. A path that does not exist is no link; the keeper has already checked that commonDir is the ref root git uses (review F4A). Fails with LooseRefsUnreadable when a path exists and cannot be read, so the caller can refuse rather than guess.

      Parameters

      • commonDir: string
      • paths: readonly string[]

      Returns Effect<boolean, LooseRefsUnreadable>