got rid of dash in file names

This commit is contained in:
wukko
2022-07-17 17:21:51 +06:00
parent 67223b3acd
commit 299fe6336b
16 changed files with 17 additions and 20 deletions

View File

@@ -0,0 +1,10 @@
import { execSync } from "child_process";
export function shortCommit() {
return execSync('git rev-parse --short HEAD').toString().trim()
}
export function getCommitInfo() {
let d = execSync(`git show -s --format='%s;;;%B'`).toString().trim().replace(/[\r\n]/gm, '\n').split(';;;')
d[1] = d[1].replace(d[0], '').trim().toString().replace(/[\r\n]/gm, '<br>')
return d
}