Skip to content

BulkOperationGitRepo.open method

BulkOperationGitRepo › open

Finds the git repo a folder belongs to.

Signature:

open(workingDirectory: string): Promise<BulkOperationGitRepo | null>

Parameters:

ParameterTypeDescription
workingDirectorystringThe folder, normally the vault root.

Returns: Promise<BulkOperationGitRepo | null> — The repo, or null when the folder is not inside a git work tree or git cannot be run.