(commandStr, getTreePromise)
| 93 | // horrible hack so we can just quickly get a tree string for async git |
| 94 | // operations, aka for git demonstration views |
| 95 | var getTreeQuick = function(commandStr, getTreePromise) { |
| 96 | var headless = new HeadlessGit(); |
| 97 | headless.sendCommand(commandStr).then(function() { |
| 98 | getTreePromise.resolve(headless.gitEngine.exportTree()); |
| 99 | }); |
| 100 | }; |
| 101 | |
| 102 | HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) { |
| 103 | var chain = Promise.resolve(); |
nothing calls this directly
no test coverage detected