MCPcopy
hub / github.com/pcottle/learnGitBranching / getTreeQuick

Function getTreeQuick

src/js/git/headless.js:95–100  ·  view source on GitHub ↗
(commandStr, getTreePromise)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

thenMethod · 0.80
resolveMethod · 0.80
exportTreeMethod · 0.80

Tested by

no test coverage detected