git-sparse-checkout
v0.1.0
Published
Sparsely checkout single tag from a remote repo url
Downloads
5
Readme
git-sparse-checkout
Sparsely checkout single tag from a remote repo url.
Resolve a tag on a remote repo url, then check if you have the commit local, otherwise fetch the pack for that commit, and sparsely checkout trees within the commit to mapped prefixes.
import gitSparseCheckout from "git-sparse-checkout";
gitSparseCheckout("[email protected]:Microsoft/TypeScript.git", "v2.9.2", {
"tests/cases/projects": "vendor/typescript/tests/cases/projects/",
"tests/cases/project": "vendor/typescript/tests/cases/project/",
"tests/baselines/reference/project":
"vendor/typescript/tests/baselines/reference/project/"
});