File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- # React19qqqq
1
+ # React19qqqq31231
2
2
3
3
4月25日,React官方宣布React19在NPM上推出,可以先行下载使用。
4
4
正好此博客也是NextJS搭建的,尝试一下React19带来哪些变化。
Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ export function getLastGitUpdateTime(filePath: string): Date | null {
19
19
20
20
export function getFirstGitCommitTime ( filePath : string ) : Date | null {
21
21
try {
22
- const command = `git log --reverse -1 - -format="%ai" -- "${ filePath } "` ;
22
+ const command = `git log --reverse --format="%ai" -- "${ filePath } "` ;
23
23
const stdout = execSync ( command ) . toString ( ) . trim ( ) ;
24
+ console . log ( stdout ) ;
24
25
25
26
if ( ! stdout ) {
26
27
return null ;
27
28
}
28
29
29
30
return new Date ( stdout ) ;
30
31
} catch ( error ) {
31
- console . error ( 'Error fetching git first commit time:' , error ) ;
32
+ console . error ( 'Error fetching git commit time:' , error ) ;
32
33
33
34
return null ;
34
35
}
You can’t perform that action at this time.
0 commit comments