working on rebase datesortfunc

This commit is contained in:
Peter Cottle 2013-01-03 15:03:49 -08:00
parent 984f139245
commit 1ec80eacf6
4 changed files with 45 additions and 30 deletions

View file

@ -19,7 +19,6 @@ var InteractiveRebaseView = ContainedBase.extend({
this.entryObjMap = {};
this.rebaseEntries = new RebaseEntryCollection();
options.toRebase.reverse();
_.each(options.toRebase, function(commit) {
var id = commit.get('id');
this.rebaseMap[id] = commit;
@ -41,7 +40,7 @@ var InteractiveRebaseView = ContainedBase.extend({
},
confirm: function() {
this.hide();
this.die();
// get our ordering
var uiOrder = [];
@ -58,6 +57,7 @@ var InteractiveRebaseView = ContainedBase.extend({
}
}, this);
toRebase.reverse();
this.deferred.resolve(toRebase);
// garbage collection will get us
this.$el.html('');