mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 14:58:14 +00:00
feat: option to specify npx quartz sync message (closes #583)
This commit is contained in:
parent
74c63e448e
commit
cf6ab9e933
2 changed files with 7 additions and 1 deletions
quartz/cli
|
@ -483,8 +483,9 @@ export async function handleSync(argv) {
|
|||
dateStyle: "medium",
|
||||
timeStyle: "short",
|
||||
})
|
||||
const commitMessage = argv.message ?? `Quartz sync: ${currentTimestamp}`
|
||||
spawnSync("git", ["add", "."], { stdio: "inherit" })
|
||||
spawnSync("git", ["commit", "-m", `Quartz sync: ${currentTimestamp}`], { stdio: "inherit" })
|
||||
spawnSync("git", ["commit", "-m", commitMessage], { stdio: "inherit" })
|
||||
|
||||
if (contentStat.isSymbolicLink()) {
|
||||
// put symlink back
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue