Skip to content

Commit 218387b

Browse files
authored
Merge pull request #598 from ianhi/new_branch_order
sort master branch to be second in the new branch dialog
2 parents f79b1bd + e19cec6 commit 218387b

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
@@ -236,6 +236,11 @@ export class NewBranchDialog extends React.Component<
236236
} else if (b.name === current) {
237237
return 1;
238238
}
239+
if (a.name === 'master') {
240+
return -1;
241+
} else if (b.name === 'master') {
242+
return 1;
243+
}
239244
return 0;
240245
}
241246
}

0 commit comments

Comments
 (0)