mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
die for levels
This commit is contained in:
parent
5d981a1268
commit
953bd49ee2
11 changed files with 270 additions and 14 deletions
|
@ -27,6 +27,10 @@ GitShim.prototype.insertShim = function() {
|
|||
this.eventBaton.stealBaton('processGitCommand', this.processGitCommand, this);
|
||||
};
|
||||
|
||||
GitShim.prototype.removeShim = function() {
|
||||
this.eventBaton.releaseBaton('processGitCommand', this.processGitCommand, this);
|
||||
};
|
||||
|
||||
GitShim.prototype.processGitCommand = function(command, deferred) {
|
||||
this.beforeCB(command);
|
||||
|
||||
|
|
|
@ -257,6 +257,10 @@ GitEngine.prototype.getOrMakeRecursive = function(tree, createdSoFar, objID) {
|
|||
throw new Error('ruh rho!! unsupported tyep for ' + objID);
|
||||
};
|
||||
|
||||
GitEngine.prototype.tearDown = function() {
|
||||
this.removeAll();
|
||||
};
|
||||
|
||||
GitEngine.prototype.removeAll = function() {
|
||||
this.branchCollection.reset();
|
||||
this.commitCollection.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue