nice have left and right view also

This commit is contained in:
Peter Cottle 2012-12-20 12:16:40 -08:00
parent ff809dd85f
commit 7d05c5167d
4 changed files with 13 additions and 37 deletions

View file

@ -1017,7 +1017,7 @@ GitEngine.prototype.rebaseInteractive = function(targetSource, currentLocation)
.then(_.bind(function(userSpecifiedRebase) {
// first, they might have dropped everything (annoying)
if (!userSpecifiedRebase.length) {
throw new GitError({
throw new CommandResult({
msg: 'Nothing to do...'
});
}

View file

@ -99,7 +99,9 @@ var InteractiveRebaseView = ContainedBase.extend({
this.confirm();
}, this))
.fail(_.bind(function() {
this.deferred.reject();
// empty array does nothing, just like in git
this.hide();
this.deferred.resolve([]);
}, this))
.done();