Skip to content

Commit c345b7e

Browse files
committed
reverse commit order from log
Signed-off-by: shmck <[email protected]>
1 parent 4f01daa commit c345b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/utils/commits.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function getCommits({
7575
// add to the list
7676
commits[position].push(commit.hash);
7777
}
78-
positions.push(position);
78+
positions.unshift(position);
7979
} else {
8080
const initMatches = commit.message.match(/^INIT/);
8181
if (initMatches && initMatches.length) {
@@ -86,7 +86,7 @@ export async function getCommits({
8686
// add to the list
8787
commits.INIT.push(commit.hash);
8888
}
89-
positions.push("INIT");
89+
positions.unshift("INIT");
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)