File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ await $`git remote rm slidev`
12
12
await $ `git remote add slidev https://github.com/slidevjs/slidev`
13
13
await $ `git fetch slidev main`
14
14
15
- console . log ( 'Timestamp of last commit:' )
15
+ console . log ( '\nTimestamp of last commit:' )
16
16
const { stdout : timestamp } = await $ `git log -1 --format="%at" main`
17
- console . log ( 'Commits since last time:' )
17
+ console . log ( '\nCommits since last time:' )
18
18
const { stdout : hashes } = await $ `git log --since="${ + ( timestamp . toString ( ) ) + 1 } " slidev/main --format="%H"`
19
19
20
20
const firstHash = hashes . toString ( ) . trim ( ) . split ( '\n' ) . at ( - 1 )
@@ -24,5 +24,5 @@ if (!firstHash) {
24
24
}
25
25
26
26
const command = `git format-patch -k --stdout ${ firstHash } ...slidev/main --remove-empty -- docs | git am -3 -k --empty=drop`
27
- console . log ( 'Running command:' , command )
28
- await $ ( command )
27
+ console . log ( '\nRunning command:' , command )
28
+ await $ `git format-patch -k --stdout ${ firstHash } ...slidev/main --remove-empty -- docs | git am -3 -k --empty=drop`
You can’t perform that action at this time.
0 commit comments