Procházet zdrojové kódy

Adds "main" as a branch for special sorting

main
Eric Amodio před 4 roky
rodič
revize
d757a7ecda
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +2
    -0
      src/git/models/branch.ts

+ 2
- 0
src/git/models/branch.ts Zobrazit soubor

@ -58,6 +58,7 @@ export class GitBranch implements GitBranchReference {
(a, b) =>
(a.current ? -1 : 1) - (b.current ? -1 : 1) ||
(a.starred ? -1 : 1) - (b.starred ? -1 : 1) ||
(a.name === 'main' ? -1 : 1) - (b.name === 'main' ? -1 : 1) ||
(a.name === 'master' ? -1 : 1) - (b.name === 'master' ? -1 : 1) ||
(a.name === 'develop' ? -1 : 1) - (b.name === 'develop' ? -1 : 1) ||
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||
@ -68,6 +69,7 @@ export class GitBranch implements GitBranchReference {
(a, b) =>
(a.current ? -1 : 1) - (b.current ? -1 : 1) ||
(a.starred ? -1 : 1) - (b.starred ? -1 : 1) ||
(a.name === 'main' ? -1 : 1) - (b.name === 'main' ? -1 : 1) ||
(a.name === 'master' ? -1 : 1) - (b.name === 'master' ? -1 : 1) ||
(a.name === 'develop' ? -1 : 1) - (b.name === 'develop' ? -1 : 1) ||
(b.remote ? -1 : 1) - (a.remote ? -1 : 1) ||

Načítá se…
Zrušit
Uložit