0.0.3 • Published 15 days ago
@altano/repository-tools v0.0.3
repository-tools
Misc tools for dealing with repositories of multiple version control systems
Supported Version Control Systems
- git
- mercurial
- sapling
- subversion
Tools
findRootSync
Given a path inside a repository, find the path of the root
Example:
findRootSync("/my-git-repo/some/subdirectory"); // => "/my-git-repo"
Example:
await findRoot("/my-git-repo/some/subdirectory"); // => "/my-git-repo"