Skip to content

Commit a8596fc

Browse files
committed
sort main branch in NewBranchDialog
1 parent 4efb0a7 commit a8596fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/NewBranchDialog.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ export class NewBranchDialog extends React.Component<
283283
} else if (b.name === 'master') {
284284
return 1;
285285
}
286+
if (a.name === 'main') {
287+
return -1;
288+
} else if (b.name === 'main') {
289+
return 1;
290+
}
286291
return 0;
287292
}
288293
}

0 commit comments

Comments
 (0)