Methods
-
repo(directory, callback) → {Repo|null}
-
Create a new Repo object. If directory is not provided, simply return it. Otherwise open the repo asynchronously.
Parameters:
Name Type Description directory
String | null The directory for the git repo to open. Null if one does not want to open a repo. callback
repoCallback | null - Source:
- repo.js, line 121
Returns:
The Repo if no directory is provided, else undefined.- Type
- Repo | null