gatelineAPI reference
  • The work-tree toplevel containing dir, or null when dir is not inside one. Sources must be rooted here, never at a subdirectory: pathspec reads (ls-tree/log -- <path>) resolve relative to the cwd's prefix inside a work tree while show(ref:path) is root-relative, so a subdirectory source lists no artifacts and silently empties the inbox (#83).

    Parameters

    • dir: string

    Returns Promise<null | string>