refactor(git.ts): change double quotes to single quotes in git commands and remove unnecessary whitespace

This commit is contained in:
di-sukharev
2023-03-30 14:53:18 +08:00
parent 95d3d8b6c9
commit 4b53a08653
6 changed files with 29 additions and 30 deletions
+8 -8
View File
@@ -26,16 +26,16 @@ export const getOpenCommitIgnore = (): Ignore => {
};
export const getStagedFiles = async (): Promise<string[]> => {
const { stdout: gitDir } = await execa("git", [
"rev-parse",
"--show-toplevel"
const { stdout: gitDir } = await execa('git', [
'rev-parse',
'--show-toplevel'
]);
const { stdout: files } = await execa("git", [
"diff",
"--name-only",
"--cached",
"--relative",
const { stdout: files } = await execa('git', [
'diff',
'--name-only',
'--cached',
'--relative',
gitDir
]);