mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
[Origin] few updates
This commit is contained in:
parent
29415cb525
commit
aba8265a00
7 changed files with 42 additions and 15 deletions
|
@ -62,7 +62,7 @@ var regexMap = {
|
|||
'git show': /^git +show($|\s)/,
|
||||
'git status': /^git +status($|\s)/,
|
||||
'git cherry-pick': /^git +cherry-pick($|\s)/,
|
||||
'git fakeTeamwork': /^git +fakeTeamwork *?$/,
|
||||
'git fakeTeamwork': /^git +fakeTeamwork($|\s)/,
|
||||
'git fetch': /^git +fetch *?$/,
|
||||
'git pull': /^git +pull($|\s)/,
|
||||
'git clone': /^git +clone *?$/
|
||||
|
|
|
@ -800,7 +800,13 @@ GitEngine.prototype.fetch = function() {
|
|||
};
|
||||
|
||||
GitEngine.prototype.pullStarter = function() {
|
||||
if (!this.hasOrigin()) {
|
||||
throw new GitError({
|
||||
msg: intl.str('git-error-origin-required')
|
||||
});
|
||||
}
|
||||
this.acceptNoGeneralArgs();
|
||||
|
||||
// no matter what fetch
|
||||
this.fetch();
|
||||
// then either rebase or merge
|
||||
|
@ -817,15 +823,18 @@ GitEngine.prototype.cloneStarter = function() {
|
|||
};
|
||||
|
||||
GitEngine.prototype.fakeTeamworkStarter = function() {
|
||||
this.acceptNoGeneralArgs();
|
||||
if (!this.hasOrigin()) {
|
||||
throw new GitError({
|
||||
msg: intl.str('git-error-origin-required')
|
||||
});
|
||||
}
|
||||
|
||||
var id = this.getUniqueID();
|
||||
this.origin.receiveTeamwork(id, this.animationQueue);
|
||||
var numToMake = this.generalArgs[0] || 1;
|
||||
this.validateArgBounds(this.generalArgs, 0, 1);
|
||||
for (var i = 0; i < numToMake; i++) {
|
||||
var id = this.getUniqueID();
|
||||
this.origin.receiveTeamwork(id, this.animationQueue);
|
||||
}
|
||||
};
|
||||
|
||||
GitEngine.prototype.receiveTeamwork = function(id, animationQueue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue