mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
improve
This commit is contained in:
@@ -8,7 +8,7 @@ const authorName = childProcess.execSync("git log -1 --pretty=format:'%an'").toS
|
||||
const commitTime = childProcess.execSync("git log -1 --pretty=format:'%cd'").toString().trim();
|
||||
const commitMsg = childProcess.execSync("git log -1 --pretty=%B").toString().trim();
|
||||
const totalCommitCount = childProcess.execSync("git rev-list --count HEAD").toString().trim();
|
||||
const change = childProcess.execSync("git diff").toString().trim();
|
||||
// const change = childProcess.execSync(``).toString().trim();
|
||||
|
||||
const versionInfo = {
|
||||
shortSHA: shortSHA,
|
||||
@@ -18,7 +18,7 @@ const versionInfo = {
|
||||
lastCommitTime: commitTime,
|
||||
lastCommitMessage: commitMsg,
|
||||
lastCommitNumber: totalCommitCount,
|
||||
change
|
||||
// change
|
||||
}
|
||||
|
||||
const versionInfoJson = JSON.stringify(versionInfo, null, 2);
|
||||
|
||||
Reference in New Issue
Block a user