rebase onto commits

This commit is contained in:
Peter Cottle 2012-10-21 18:24:45 -07:00
parent 93abdd9043
commit 73cf66b35e
3 changed files with 14 additions and 4 deletions

View file

@ -736,11 +736,12 @@ GitEngine.prototype.rebaseStarter = function() {
GitEngine.prototype.rebase = function(targetSource, currentLocation) {
var targetObj = this.resolveID(targetSource);
/*
if (targetObj.get('type') !== 'branch') {
throw new GitError({
msg: 'Only rebase onto branches! Not individual commits'
});
}
}*/
// first some conditions
if (this.isUpstreamOf(targetSource, currentLocation)) {