Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc345b7e

Browse files
committed
reverse commit order from log
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent4f01daa commitc345b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/utils/commits.ts

Lines changed: 2 additions & 2 deletions
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
constinitMatches=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)

[8]ページ先頭

©2009-2025 Movatter.jp