diff --git a/spec/create.js b/spec/create.js new file mode 100644 index 00000000..f934d743 --- /dev/null +++ b/spec/create.js @@ -0,0 +1,15 @@ +var TreeCompare = require('../src/js/git/treeCompare').TreeCompare; +var HeadlessGit = require('../src/js/git/headless').HeadlessGit; + +var prompt = require('prompt'); + +prompt.start(); + +prompt.get(['command'], function(err, result) { + var headless = new HeadlessGit(); + headless.sendCommand(result.command); + setTimeout(function() { + console.log(headless.gitEngine.printTree()); + }, 100); +}); + diff --git a/todo.txt b/todo.txt index 1330ffa8..ce96e3e8 100644 --- a/todo.txt +++ b/todo.txt @@ -25,8 +25,6 @@ so "git push origin branchNotOnLocal" fails but "git push origin someBranch" wil 3) HOWEVER if I'm git push-ing on banana and I say "git push origin master" then it pretends Im checked out on master. aka master is both source and destination, as expected. this is really 3 -4) - Cases to handle / things to edit =======================