0.1.0 • Published 6 years ago

git-sparse-checkout v0.1.0

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
6 years ago

git-sparse-checkout

Build Status Build status

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("git@github.com: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/"
});