mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
sweet command line util to make test cases
This commit is contained in:
parent
15e8877e95
commit
bf48e54bbe
2 changed files with 15 additions and 2 deletions
15
spec/create.js
Normal file
15
spec/create.js
Normal 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);
|
||||
});
|
||||
|
2
todo.txt
2
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
|
||||
=======================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue