npm.io
0.1.0 • Published 12 years ago

git-execute

Licence
MIT
Version
0.1.0
Deps
1
Vulns
2
Weekly
0
Stars
1

git-execute

Utility module over child_process.exec for git commands.

Usage

gitExecute(repoPath, execArguments, callback)

Example:

var gitExecute = require('git-execute');

// get the total number of commits
gitExecute(repoPath, [
  'rev-list',
  'HEAD',
  '--count'
], function(err, stdout, stderr) {
  if (err) { throw err; }

  console.log(stdout);
});

License

MIT

Keywords