mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
refactor: replace all master to main
This commit is contained in:
parent
4148f0b846
commit
b7ac2851c6
55 changed files with 431 additions and 455 deletions
|
@ -252,7 +252,7 @@ var commandConfig = {
|
|||
} else if (firstArg) {
|
||||
source = firstArg;
|
||||
assertIsBranch(engine.origin, source);
|
||||
// get o/master locally if master is specified
|
||||
// get o/main locally if main is specified
|
||||
destination = engine.origin.resolveID(source).getPrefixedID();
|
||||
} else {
|
||||
// can't be detached
|
||||
|
@ -296,7 +296,7 @@ var commandConfig = {
|
|||
switch (generalArgs.length) {
|
||||
// git fakeTeamwork
|
||||
case 0:
|
||||
branch = 'master';
|
||||
branch = 'main';
|
||||
numToMake = 1;
|
||||
break;
|
||||
|
||||
|
@ -307,7 +307,7 @@ var commandConfig = {
|
|||
numToMake = 1;
|
||||
} else {
|
||||
numToMake = parseInt(generalArgs[0], 10);
|
||||
branch = 'master';
|
||||
branch = 'main';
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -393,7 +393,7 @@ var commandConfig = {
|
|||
// technically we have a destination here as the remote branch
|
||||
source = firstArg;
|
||||
assertIsBranch(engine.origin, source);
|
||||
// get o/master locally if master is specified
|
||||
// get o/main locally if main is specified
|
||||
destination = engine.origin.resolveID(source).getPrefixedID();
|
||||
}
|
||||
if (source) { // empty string fails this check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue