Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

git-walk-tree

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-walk-tree

walk a git tree represented by a git commit

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

git-walk-tree

given a commit object, walk its associated tree. exposed as a readable stream.

var load = require('git-fs-repo')
  , walk = require('git-walk-tree')

load('.git', function(err, git) {
  var head = git.ref('HEAD').hash
  git.find(head, gothead)

  function gothead(err, commit) {
    walk(git.find.bind(git), commit)
      .on('data', console.log)
  }
})

API

walk(findhash function, commit[, ignoreObject]) -> readable stream

given a function to lookup hashes and a commit object, walk the tree represented by commit.

ignoreObject maps hashes to ignore to true and can be changed by the caller at any point during execution -- use this to exclude known subdirectories.

License

MIT

Keywords

git

FAQs

Package last updated on 03 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts