git-sparse-checkout
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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/"
});

Readme

Keywords

Package Sidebar

Install

npm i git-sparse-checkout

Weekly Downloads

2

Version

0.1.0

License

BSD-2-Clause

Unpacked Size

17.8 kB

Total Files

7

Last publish

Collaborators

  • krisselden