basic command line history done

This commit is contained in:
Peter Cottle 2012-09-06 10:25:50 -07:00
parent 78d0aa5b55
commit 24fbcdd2ae
5 changed files with 118 additions and 5 deletions

View file

@ -249,6 +249,11 @@ GitEngine.prototype._deleteBranch = function(name) {
delete this.refs[id];
};
GitEngine.prototype.dispatch = function(commandObj) {
// TODO: parse arguments
this[commandObj.method]();
};
GitEngine.prototype.add = function() {
throw new Error(
"This demo is meant to demonstrate git branching, so don't worry about " +