lody 0.74.0 → 0.75.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -603,7 +603,7 @@ let gitAvailable;
603
603
  function isGitAvailable() {
604
604
  if (gitAvailable === void 0) {
605
605
  try {
606
- gitAvailable = spawnSync("git", ["--version"], { stdio: "ignore" }).status === 0;
606
+ gitAvailable = spawnSync("git", ["--version"], { stdio: "ignore", windowsHide: true }).status === 0;
607
607
  } catch {
608
608
  gitAvailable = false;
609
609
  }
@@ -624,7 +624,8 @@ function gitNumstatLineCounts(oldText, newText) {
624
624
  writeFileSync(newPath, newText);
625
625
  const result = spawnSync("git", ["diff", "--no-index", "--numstat", "--", oldPath, newPath], {
626
626
  encoding: "utf8",
627
- maxBuffer: GIT_NUMSTAT_MAX_BUFFER
627
+ maxBuffer: GIT_NUMSTAT_MAX_BUFFER,
628
+ windowsHide: true
628
629
  });
629
630
  if (result.status !== 0 && result.status !== 1) {
630
631
  return null;
@@ -3,7 +3,7 @@ import { execFile } from "node:child_process";
3
3
  import { readFile } from "node:fs/promises";
4
4
  import path__default from "node:path";
5
5
  import { promisify } from "node:util";
6
- import { a as countTextLines } from "./diff-line-counts-BLxwWP6r.js";
6
+ import { a as countTextLines } from "./diff-line-counts-Du5QanrM.js";
7
7
  _enum(["host", "write", "read"]);
8
8
  _enum([
9
9
  "not-started",
@@ -293,7 +293,8 @@ async function runGit(repoPath, args, maxBuffer = 8 * 1024 * 1024) {
293
293
  const result = await execFileAsync("git", args, {
294
294
  cwd: repoPath,
295
295
  encoding: "utf8",
296
- maxBuffer
296
+ maxBuffer,
297
+ windowsHide: true
297
298
  });
298
299
  return result.stdout;
299
300
  }