sweet command line util to make test cases

This commit is contained in:
Peter Cottle 2013-10-15 17:00:28 -07:00
parent 15e8877e95
commit bf48e54bbe
2 changed files with 15 additions and 2 deletions

15
spec/create.js Normal file
View file

@ -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);
});

View file

@ -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 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 Cases to handle / things to edit
======================= =======================