mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
Swap out master for main in visualizations
This commit is contained in:
parent
6af2950e77
commit
4c4e607096
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ var VisBranch = VisBase.extend({
|
|||
if (name === 'HEAD' && isHg) {
|
||||
name = '.';
|
||||
}
|
||||
if (name.match(/\bmaster\b/)) {
|
||||
name = name.replace(/\bmaster\b/, 'main');
|
||||
}
|
||||
|
||||
var after = (selected && !this.getIsInOrigin() && !isRemote) ? '*' : '';
|
||||
return name + after;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue