From bf48e54bbe6fea96ece721a8e6f5037084028eb2 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Tue, 15 Oct 2013 17:00:28 -0700 Subject: [PATCH] sweet command line util to make test cases --- spec/create.js | 15 +++++++++++++++ todo.txt | 2 -- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 spec/create.js 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 =======================