gift-recursive-tree

1.0.6 • Public • Published

Gift Recursive Tree

Simple utility to take a Gift repository and get a recursive tree

Installation

$ npm install gift-recursive-tree

Usage

You must have first instantiated an Gift repository. Passing in an array of Commits, will yield the tree, recursively, for those commits. The result will be one concatenated list. This will add a path field which has the full path.

Example:

git = require 'gift'
giftRecursiveTree = 'gift-recursive-tree'

git.clone "git@host:path/to/remote/repo.git", "path/to/local/clone/repo", (err, _repo) ->
  repo = _repo

  repo.current_commit (err, _commit) ->
    giftRecursiveTree.getTree repo, [_commit], (err, tree) ->
      console.log tree

Package Sidebar

Install

npm i gift-recursive-tree

Weekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • shamoons