Skip to content

Commit d476a9f

Browse files
committed
refactor: update cli.ts
1 parent b2904f4 commit d476a9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/git/cli.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function _execute(cwd: string, subcommand: string, options: string[] = []) {
3232
* added still to be safe.
3333
*/
3434
async function _diffIndex(options: string[] = []): Promise<Array<string>> {
35+
const cmd = "diff-index";
36+
3537
const fullOptions = [
3638
"--name-status",
3739
"--find-renames",
@@ -42,12 +44,12 @@ async function _diffIndex(options: string[] = []): Promise<Array<string>> {
4244
];
4345
const { stdout, stderr } = await _execute(
4446
getWorkspaceFolder(),
45-
"diff-index",
47+
cmd,
4648
fullOptions
4749
);
4850

4951
if (stderr) {
50-
console.debug("stderr for `git diff-index` command:", stderr);
52+
console.debug(`stderr for 'git ${cmd}' command:`, stderr);
5153
}
5254

5355
const lines = stdout.split("\n");

0 commit comments

Comments
 (0)