simple-git
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -44,2 +44,4 @@ # Simple Git | ||
`.checkoutLocalBranch(branchName, handlerFn)` checks out a new local branch | ||
`.checkoutLatestTag(handlerFn)` convenience method to pull then checkout the latest tag | ||
@@ -46,0 +48,0 @@ |
@@ -168,2 +168,14 @@ (function() { | ||
/** | ||
* Check out a local branch | ||
* | ||
* @param {String} name of branch | ||
* @param {Function} [then] | ||
*/ | ||
Git.prototype.checkoutLocalBranch = function(branchName, then) { | ||
return this._run('git checkout -b "' + branchName + '"', function(err, data) { | ||
then && then(err, !err && this._parseCheckout(data)); | ||
}); | ||
}; | ||
/** | ||
@@ -170,0 +182,0 @@ * Add a submodule |
17396
398
96