File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ export const branchSequencer: BranchSequencer = async ({
280280
281281 const originalBoundariesLength : number = branchesAndCommits . length ;
282282
283+ const latestBoundary : SimpleBranchAndCommit = branchesAndCommits [ branchesAndCommits . length - 1 ] ;
284+
283285 if ( reverseCheckoutOrder ) {
284286 branchesAndCommits . reverse ( ) ;
285287 }
@@ -288,6 +290,14 @@ export const branchSequencer: BranchSequencer = async ({
288290
289291 async function checkout ( boundaries : SimpleBranchAndCommit [ ] ) : Promise < void > {
290292 if ( ! boundaries . length ) {
293+ /**
294+ * done.
295+ *
296+ * now just checkout to the latest branch
297+ */
298+
299+ await repo . checkoutBranch ( latestBoundary . branchEndFullName ) ;
300+
291301 return ;
292302 }
293303
You can’t perform that action at this time.
0 commit comments