1.0.6 • Published 9 years ago

gift-recursive-tree v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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
1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago