TypeDoc API - v0.28.20
    Preparing search index...

    Class RepositoryManager

    Responsible for keeping track of 0-N repositories which exist on a machine. This used to be inlined in SourcePlugin, moved out for easy unit testing.

    Git repositories can be nested. Files should be resolved to a repo as shown below:

    /project
    /project/.git (A)
    /project/file.js (A)
    /project/folder/file.js (A)
    /project/sub/.git (B)
    /project/sub/file.js (B)
    

    In order words, it is not safe to assume that just because a file is within the /project directory, that it belongs to repo A. As calling git is expensive (~20-300ms depending on the machine, antivirus, etc.) we check for .git folders manually, and only call git if one is found.

    Symlinked files have the potential to further complicate this. If TypeScript's preserveSymlinks option is on, then this may be passed the path to a symlinked file. Unlike TypeScript, we will resolve the path, as the repo link should really point to the actual file.

    Index