mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
slowly moving git command logic out of command model
This commit is contained in:
parent
bbdaa37abd
commit
5e2bace639
7 changed files with 246 additions and 115 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue