slowly moving git command logic out of command model

This commit is contained in:
Peter Cottle 2012-12-25 18:02:13 -08:00
parent bbdaa37abd
commit 5e2bace639
7 changed files with 246 additions and 115 deletions

View file

@ -7,6 +7,7 @@ var CommitCollection = Collections.CommitCollection;
var BranchCollection = Collections.BranchCollection;
var GitVisuals = require('../visuals').GitVisuals;
var InputWaterfall = require('../level/inputWaterfall').InputWaterfall;
var Visualization = Backbone.View.extend({
initialize: function(options) {
@ -28,6 +29,10 @@ var Visualization = Backbone.View.extend({
var Main = require('../app');
this.events = Main.getEvents();
// hook the git engine up to the command input
this.inputWaterfall = new InputWaterfall();
this.commitCollection = new CommitCollection();
this.branchCollection = new BranchCollection();