git-get-patch

0.1.0 • Public • Published

git-get-patch

Returns a readable stream with a git patch.

Usage

streamPatch(repoPath, rev)

Example:

var streamPatch = require('./');
var path = require('path');
var repoPath = path.resolve(process.env.REPO || (__dirname + '/.git'));
var rev = process.env.REV || 'master';
 
streamPatch(repoPath, rev).on('error', function(err) {
  throw err;
}).on('end', function() {
  console.log('\n------ THE END ------');
}).pipe(process.stdout);

Tests

npm test

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i git-get-patch

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • alessioalex