@statewalker/vcs-commands 0.10.0 → 0.11.0

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.
Files changed (72) hide show
  1. package/dist/commands/am/am-command.d.ts.map +1 -1
  2. package/dist/commands/cat-file/cat-file-command.d.ts +9 -0
  3. package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -1
  4. package/dist/commands/checkout-command.d.ts.map +1 -1
  5. package/dist/commands/clone-command.d.ts +9 -0
  6. package/dist/commands/clone-command.d.ts.map +1 -1
  7. package/dist/commands/default-branch.d.ts +12 -0
  8. package/dist/commands/default-branch.d.ts.map +1 -1
  9. package/dist/commands/diff-command.d.ts.map +1 -1
  10. package/dist/commands/format-rev-command.d.ts +6 -4
  11. package/dist/commands/format-rev-command.d.ts.map +1 -1
  12. package/dist/commands/fsmonitor-ipc.d.ts +30 -0
  13. package/dist/commands/fsmonitor-ipc.d.ts.map +1 -0
  14. package/dist/commands/fsmonitor-refresh.d.ts.map +1 -1
  15. package/dist/commands/index.d.ts +1 -0
  16. package/dist/commands/index.d.ts.map +1 -1
  17. package/dist/commands/index.js +6 -6
  18. package/dist/commands/log-output.d.ts +6 -0
  19. package/dist/commands/log-output.d.ts.map +1 -1
  20. package/dist/commands/ls-tree-command.d.ts.map +1 -1
  21. package/dist/commands/repo-command.d.ts +28 -6
  22. package/dist/commands/repo-command.d.ts.map +1 -1
  23. package/dist/commands/reset-command.d.ts +19 -2
  24. package/dist/commands/reset-command.d.ts.map +1 -1
  25. package/dist/commands/rev-parse-command.d.ts +3 -7
  26. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  27. package/dist/commands/revision-resolver.d.ts +15 -1
  28. package/dist/commands/revision-resolver.d.ts.map +1 -1
  29. package/dist/commands/signing.d.ts +8 -1
  30. package/dist/commands/signing.d.ts.map +1 -1
  31. package/dist/commands/status-command.d.ts +14 -1
  32. package/dist/commands/status-command.d.ts.map +1 -1
  33. package/dist/commands/submodule-add-command.d.ts +12 -0
  34. package/dist/commands/submodule-add-command.d.ts.map +1 -1
  35. package/dist/commands/submodule-update-command.d.ts +14 -0
  36. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  37. package/dist/commands/tag-command.d.ts.map +1 -1
  38. package/dist/commands/update-index-command.d.ts +21 -0
  39. package/dist/commands/update-index-command.d.ts.map +1 -1
  40. package/dist/{commands-Mlo1dxQN.js → commands-bQQ9OmCh.js} +354 -77
  41. package/dist/{fsck-CrhVMNIH.js → fsck-BHT9bUS-.js} +1 -1
  42. package/dist/git-command.d.ts +8 -2
  43. package/dist/git-command.d.ts.map +1 -1
  44. package/dist/index.js +6 -6
  45. package/dist/{maintenance-run-command-Bw21HEkH.js → maintenance-run-command-Cx2PlGV9.js} +9 -4
  46. package/dist/{remote-transport-Bu4PGSMD.js → remote-transport-BrQZfyHu.js} +3 -3
  47. package/dist/results/index.js +1 -1
  48. package/dist/{results-ERo9vELd.js → results-CNHQnU5Y.js} +327 -54
  49. package/package.json +12 -12
  50. package/src/commands/am/am-command.ts +30 -14
  51. package/src/commands/cat-file/cat-file-command.ts +46 -8
  52. package/src/commands/checkout-command.ts +22 -1
  53. package/src/commands/clone-command.ts +41 -2
  54. package/src/commands/default-branch.ts +19 -0
  55. package/src/commands/diff-command.ts +19 -1
  56. package/src/commands/format-rev-command.ts +28 -12
  57. package/src/commands/fsmonitor-ipc.ts +121 -0
  58. package/src/commands/fsmonitor-refresh.ts +7 -2
  59. package/src/commands/index.ts +1 -0
  60. package/src/commands/log-output.ts +11 -0
  61. package/src/commands/ls-tree-command.ts +25 -1
  62. package/src/commands/repo-command.ts +124 -25
  63. package/src/commands/reset-command.ts +75 -3
  64. package/src/commands/rev-parse-command.ts +14 -28
  65. package/src/commands/revision-resolver.ts +53 -11
  66. package/src/commands/signing.ts +54 -7
  67. package/src/commands/status-command.ts +31 -2
  68. package/src/commands/submodule-add-command.ts +18 -1
  69. package/src/commands/submodule-update-command.ts +18 -1
  70. package/src/commands/tag-command.ts +33 -11
  71. package/src/commands/update-index-command.ts +137 -5
  72. package/src/git-command.ts +48 -4
@@ -3,6 +3,7 @@ import { DEFAULT_ABBREV_LENGTH, DEFAULT_BIG_FILE_THRESHOLD, EMPTY_BLOB_ID, EMPTY
3
3
  import { compareGitPaths, decodeGitPath, encodeGitPath, foldAsciiCase, gitCharWidth, gitCharWidthAt, gitStrWidth, parseGitBool, parseGitInt, unquoteGitPath } from "@statewalker/vcs-utils/encoding";
4
4
  import { AttributesResolver, DIR_HIDE_EMPTY_DIRECTORIES, DIR_SHOW_IGNORED_TOO, DIR_SHOW_IGNORED_TOO_MODE_MATCHING, DIR_SHOW_OTHER_DIRECTORIES, DeleteStagingEntry, FsmonitorState, IndexChangedError, IndexPathLookup, MergeStage, UpdateStagingEntry, applyStatUpdate, attributesIndexOf, attributesSourceSetting, basicStatMatches, cacheTreeFullyValid, cacheTreeOfTree, clearSkipWorktreeFromPresentFiles, collectChunks, compareWithWorktree, compareWithWorktreeStat, copyCacheTree, createIndexTree, createUntrackedTree, createWorktreeTree, entryStatOf, excludeFileOid, expandUserPath, findUntrackedFiles, flattenTree, getStageState, getWorktreeEntries, hasTrackedChanges, invalidateCacheTreeAgainstIndex, invalidateCacheTreeForIntentToAdd, invalidateCacheTreePath, invalidateGitignore, invalidateUntrackedPath, isCleanByStat, isIndexUnborn, modeFromWorktree, newUntrackedCache, newUntrackedCacheDir, parseSharedRepository, parseSparseCheckoutPatterns, readCleanContent, readConvertedContent, readTreeAttributesFile, refreshIndexStats, refreshableEntries, resolveAttributesSource, scanIndex, scanUntracked, smudgeContent, statDataOf, statUpdateOf, storeWorktreeFile as storeWorktreeFile$1, unreadableDirectoryWarning, untrackedCacheIdent, untrackedCacheIdentIs, untrackedIndexPredicates, updateCacheTree, walkUntrackedScanHost, wholeSeconds, wildmatch, wildmatchBytes, withWorktreeEntries, worktreeEntryChunks, xdgConfigPath, zeroStatData } from "@statewalker/vcs-working-tree";
5
5
  import { BUILTIN_FUNCNAME_PATTERNS, BUILTIN_FUNCNAME_PATTERNS_2_43, BUILTIN_WORD_REGEXES, BUILTIN_WORD_REGEXES_2_43, ByteSink, OrderedMap, PosixRegexError, RawText, SHA1_OBJECT_FORMAT, SHA256_OBJECT_FORMAT, XDF_IGNORE_WHITESPACE, XDF_IGNORE_WHITESPACE_CHANGE, XDF_WHITESPACE_FLAGS, approxidateCareful, approxidateCareful as approxidateCareful$1, bytesToHex, compilePosixRegex, compressBlockPako, createInflater, createSha1, createSha256, decodeGitBinaryDelta, diffLineCounts, formatHunkHeader, formatRfc2822Date, isNullObjectId, isUrlNormalizeError, localTimezoneOffset, mergeLines, normalizeUrl, nullObjectIdLike, objectFormatByHexLength, parseGitBool as parseGitBool$1, parseGitDate, parseGitInt as parseGitInt$1, startProgress, unifiedDiffHunks, urlMatchedEntries, userdiffFindFunction, userdiffWordRegex, whitespaceFlags, writeHunks, xdiffHunks, xdlHashRecord, xdlIsSpace, xdlRecmatch } from "@statewalker/vcs-utils";
6
+ import { duplexOverPort } from "@statewalker/webrun-rpc";
6
7
  import { joinPath as joinPath$1, sharedRepositoryOf, withSharedPerm } from "@statewalker/vcs-utils/files";
7
8
  import { SHA1_OBJECT_FORMAT as SHA1_OBJECT_FORMAT$1, bytesToHex as bytesToHex$1, sha1Of } from "@statewalker/vcs-utils/hash";
8
9
  import { objectStorageFormatByUri, readProtectedConfig } from "@statewalker/vcs-store-files";
@@ -1616,6 +1617,115 @@ async function countObjects(objects) {
1616
1617
  return count;
1617
1618
  }
1618
1619
  //#endregion
1620
+ //#region src/commands/fsmonitor-ipc.ts
1621
+ /**
1622
+ * git's builtin file system monitor daemon asked over a `MessagePort` (fsmonitor-ipc.c's
1623
+ * `fsmonitor_ipc__send_query` over simple-ipc): the request is the token, the answer the new
1624
+ * token and the changed paths, both sent as pkt-lines ended by a flush packet.
1625
+ *
1626
+ * ```typescript
1627
+ * const port = await environment.openIpcPort({ service: "fsmonitor--daemon", path });
1628
+ * const answer = await queryFsmonitorDaemon(port, "builtin:fake");
1629
+ * // answer: "<token>\0<path>\0<path>\0..." as the daemon wrote it, or undefined on failure
1630
+ * ```
1631
+ *
1632
+ * The protocol code never sees a socket: the port speaks webrun-rpc's stream tier (one
1633
+ * stream per port, bounded both ways), whatever carries it (a Unix socket through
1634
+ * `connectSocketPort` of `@statewalker/vcs-utils-node`, a `MessageChannel`, a worker).
1635
+ */
1636
+ /** git's `LARGE_PACKET_DATA_MAX`: the largest payload of one pkt-line. */
1637
+ const LARGE_PACKET_DATA_MAX = 65516;
1638
+ /** The daemon's socket in the git directory (`fsmonitor_ipc__get_default_path`). */
1639
+ const FSMONITOR_DAEMON_IPC_NAME = "fsmonitor--daemon.ipc";
1640
+ const hex = (n) => n.toString(16).padStart(4, "0");
1641
+ /**
1642
+ * `write_packetized_from_buf_no_flush` then `packet_flush`: `payload` as pkt-lines of at
1643
+ * most {@link LARGE_PACKET_DATA_MAX} bytes (none for an empty payload), then `0000`.
1644
+ */
1645
+ function encodePacketized(payload) {
1646
+ const lines = Math.ceil(payload.byteLength / LARGE_PACKET_DATA_MAX);
1647
+ const out = new Uint8Array(payload.byteLength + lines * 4 + 4);
1648
+ let at = 0;
1649
+ for (let from = 0; from < payload.byteLength; from += LARGE_PACKET_DATA_MAX) {
1650
+ const chunk = payload.subarray(from, from + LARGE_PACKET_DATA_MAX);
1651
+ for (const c of hex(chunk.byteLength + 4)) out[at++] = c.charCodeAt(0);
1652
+ out.set(chunk, at);
1653
+ at += chunk.byteLength;
1654
+ }
1655
+ for (let i = 0; i < 4; i++) out[at++] = 48;
1656
+ return out;
1657
+ }
1658
+ /**
1659
+ * Reads pkt-lines from `chunks` up to the first flush packet (`read_packetized_to_strbuf`):
1660
+ * their payloads joined, or undefined when the stream ends first or a length is malformed.
1661
+ */
1662
+ async function readPacketized(chunks) {
1663
+ let buffer = /* @__PURE__ */ new Uint8Array(0);
1664
+ const parts = [];
1665
+ let size = 0;
1666
+ const fill = async (need) => {
1667
+ while (buffer.byteLength < need) {
1668
+ const next = await chunks.next();
1669
+ if (next.done) return false;
1670
+ const joined = new Uint8Array(buffer.byteLength + next.value.byteLength);
1671
+ joined.set(buffer);
1672
+ joined.set(next.value, buffer.byteLength);
1673
+ buffer = joined;
1674
+ }
1675
+ return true;
1676
+ };
1677
+ for (;;) {
1678
+ if (!await fill(4)) return void 0;
1679
+ let length = 0;
1680
+ for (let i = 0; i < 4; i++) {
1681
+ const digit = Number.parseInt(String.fromCharCode(buffer[i]), 16);
1682
+ if (Number.isNaN(digit)) return void 0;
1683
+ length = length * 16 + digit;
1684
+ }
1685
+ if (length === 0) break;
1686
+ if (length < 4) return void 0;
1687
+ if (!await fill(length)) return void 0;
1688
+ const payload = buffer.slice(4, length);
1689
+ parts.push(payload);
1690
+ size += payload.byteLength;
1691
+ buffer = buffer.subarray(length);
1692
+ }
1693
+ const out = new Uint8Array(size);
1694
+ let at = 0;
1695
+ for (const part of parts) {
1696
+ out.set(part, at);
1697
+ at += part.byteLength;
1698
+ }
1699
+ return out;
1700
+ }
1701
+ /**
1702
+ * Sends `token` to the daemon behind `port` and returns its answer (the new token, a NUL,
1703
+ * then the changed paths, each ended by a NUL); undefined when the exchange fails (the
1704
+ * stream fails or ends before the answer's flush packet), as git's
1705
+ * `ipc_client_send_command_to_connection` fails. The port is closed afterwards.
1706
+ */
1707
+ async function queryFsmonitorDaemon(port, token) {
1708
+ let answered = () => {};
1709
+ const done = new Promise((resolve) => {
1710
+ answered = resolve;
1711
+ });
1712
+ async function* request() {
1713
+ yield encodePacketized(new TextEncoder().encode(token));
1714
+ await done;
1715
+ }
1716
+ const output = duplexOverPort(port)(request());
1717
+ port.start();
1718
+ try {
1719
+ return await readPacketized(output);
1720
+ } catch {
1721
+ return;
1722
+ } finally {
1723
+ answered();
1724
+ await output.return(void 0).catch(() => void 0);
1725
+ port.close();
1726
+ }
1727
+ }
1728
+ //#endregion
1619
1729
  //#region src/commands/fsmonitor-refresh.ts
1620
1730
  /**
1621
1731
  * Asking the file system monitor (`core.fsmonitor`) what changed, as git does on every index
@@ -1672,6 +1782,7 @@ async function refreshFsmonitor(options) {
1672
1782
  if (done && done.owner === options.owner) return done.run;
1673
1783
  }
1674
1784
  const nanotime = options.nanotime ?? (() => BigInt(Date.now()) * 1000000n);
1785
+ const added = !state;
1675
1786
  if (!state) {
1676
1787
  state = new FsmonitorState(String(nanotime()));
1677
1788
  state.useForUntracked = true;
@@ -1687,7 +1798,7 @@ async function refreshFsmonitor(options) {
1687
1798
  run
1688
1799
  });
1689
1800
  state.hasRun = true;
1690
- await refresh(run, mode, options, nanotime);
1801
+ await refresh(run, mode, options, nanotime, added);
1691
1802
  if (run.untrackedPaths.length > 0 && staging.carryUntrackedCache) {
1692
1803
  const cache = staging.getUntrackedCache?.();
1693
1804
  if (cache) {
@@ -1715,7 +1826,7 @@ function cString$1(bytes, at) {
1715
1826
  return out;
1716
1827
  }
1717
1828
  /** `refresh_fsmonitor`. */
1718
- async function refresh(run, mode, options, nanotime) {
1829
+ async function refresh(run, mode, options, nanotime, added) {
1719
1830
  const { state } = run;
1720
1831
  let result;
1721
1832
  let token = "";
@@ -1724,7 +1835,7 @@ async function refresh(run, mode, options, nanotime) {
1724
1835
  if (mode.kind === "ipc") {
1725
1836
  result = await ask(options, {
1726
1837
  mode: "ipc",
1727
- token: state.token
1838
+ token: added ? "builtin:fake" : state.token
1728
1839
  });
1729
1840
  if (result) {
1730
1841
  token = cString$1(result, 0);
@@ -1834,6 +1945,7 @@ function onPath(run, entries, name, ignoreCase) {
1834
1945
  run.state.markInvalid(e);
1835
1946
  count++;
1836
1947
  }
1948
+ if (run.state.markSparseDirectoriesInvalid(prefix)) count++;
1837
1949
  };
1838
1950
  if (name.endsWith("/")) cone(name);
1839
1951
  else {
@@ -5055,6 +5167,20 @@ var UnsupportedObjectStorageError = class extends Error {
5055
5167
  this.lines = [line];
5056
5168
  }
5057
5169
  };
5170
+ /**
5171
+ * The death of an `--object-storage-format` option git master does not know: clone takes a
5172
+ * URI (`files`, `files://<dir>`: `object_storage_format_by_uri`), `submodule add`/`update` a
5173
+ * name (`files` alone: `object_storage_format_by_name`, so `files://objs` is unknown there).
5174
+ * Undefined when git takes the value.
5175
+ *
5176
+ * @example
5177
+ * ```typescript
5178
+ * unknownObjectStorageFormat("files://objs", "name"); // "fatal: unknown object storage format 'files://objs'"
5179
+ * ```
5180
+ */
5181
+ function unknownObjectStorageFormat(value, kind) {
5182
+ return (kind === "name" ? value === "files" : objectStorageFormatByUri(value) !== void 0) ? void 0 : `fatal: unknown object storage format '${value}'`;
5183
+ }
5058
5184
  /** A reinitialization naming another object storage payload: git dies (exit 128). */
5059
5185
  var ReinitializeObjectStorageError = class extends Error {
5060
5186
  name = "ReinitializeObjectStorageError";
@@ -5888,7 +6014,7 @@ function createPromisorFetcher(workingCopy, options = {}) {
5888
6014
  const history = historyWithoutLazyFetch(workingCopy.history);
5889
6015
  const compatibility = compatibilityOf();
5890
6016
  const run = async () => {
5891
- const { fetchFsckOf } = await import("./fsck-CrhVMNIH.js").then((n) => n.t);
6017
+ const { fetchFsckOf } = await import("./fsck-BHT9bUS-.js").then((n) => n.t);
5892
6018
  const environment = hostEnvironmentOf(workingCopy);
5893
6019
  const fsckWarnings = [];
5894
6020
  const unpackLimit = unpackLimitOf({ getAll: (key) => config.values(key) }, "fetch");
@@ -5902,7 +6028,7 @@ function createPromisorFetcher(workingCopy, options = {}) {
5902
6028
  home: environment.home
5903
6029
  } : {}
5904
6030
  });
5905
- const { prepareRemote, protocolVersionOf, withRemoteUploadPack } = await import("./remote-transport-Bu4PGSMD.js").then((n) => n.s);
6031
+ const { prepareRemote, protocolVersionOf, withRemoteUploadPack } = await import("./remote-transport-BrQZfyHu.js").then((n) => n.s);
5906
6032
  await withRemoteUploadPack(await prepareRemote(workingCopy, url, options.transports ?? createDefaultTransports()), {
5907
6033
  ...options.credentials ? { credentials: options.credentials } : {},
5908
6034
  ...options.headers ? { headers: options.headers } : {},
@@ -12478,6 +12604,13 @@ var RevisionResolver = class {
12478
12604
  lastMode;
12479
12605
  config;
12480
12606
  disambiguateChecked = false;
12607
+ /**
12608
+ * Whether an abbreviation missed: git's get_short_oid then runs `odb_reprepare`, which
12609
+ * flushes the loose object cache the map had put the compatibility ids into, and nothing
12610
+ * puts them back, so the rest of the process finds no compatibility id by `GET_OID_HASH_ANY`
12611
+ * (git master: `echo <miss> <compat id> | git cat-file --batch-check` reports both missing)
12612
+ */
12613
+ compatIdsFlushed = false;
12481
12614
  /** Refs read while resolving one revision (`HEAD~3` reads HEAD once) */
12482
12615
  refCache = /* @__PURE__ */ new Map();
12483
12616
  constructor(sources, now = () => Math.floor(Date.now() / 1e3)) {
@@ -13009,6 +13142,8 @@ var RevisionResolver = class {
13009
13142
  }
13010
13143
  /** The type of an object, undefined when the repository does not have it. */
13011
13144
  async objectType(id) {
13145
+ const compat = this.sources.objects?.compat;
13146
+ if (compat && id.length !== this.hexLength && id.length === compat.compat.hexLength) return (await safe(() => compat.readAsCompat(id)))?.type;
13012
13147
  const { commits, tags, trees, blobs } = this.sources;
13013
13148
  if (await safe(() => commits.has(id))) return "commit";
13014
13149
  if (tags && await safe(() => tags.has(id))) return "tag";
@@ -13233,10 +13368,20 @@ var RevisionResolver = class {
13233
13368
  * when it accepts several.
13234
13369
  */
13235
13370
  async shortOid(name, flags = {}) {
13236
- if (name.length < MINIMUM_ABBREV_LENGTH || name.length > this.hexLength || !HEX_DIGITS.test(name)) return { status: "invalid" };
13371
+ const compat = flags.hashAny && !this.compatIdsFlushed ? this.sources.objects?.compat : void 0;
13372
+ const maxLength = Math.max(this.hexLength, compat?.compat.hexLength ?? 0);
13373
+ if (name.length < MINIMUM_ABBREV_LENGTH || name.length > maxLength || !HEX_DIGITS.test(name)) return { status: "invalid" };
13237
13374
  const prefix = name.toLowerCase();
13238
- const candidates = await this.objectsWithPrefix(prefix);
13239
- if (candidates.length === 0) return { status: "missing" };
13375
+ const candidates = name.length <= this.hexLength ? await this.objectsWithPrefix(prefix) : [];
13376
+ if (compat && name.length <= compat.compat.hexLength) {
13377
+ const ids = await compat.compatIdsWithPrefix(prefix);
13378
+ for (const id of ids) if (!candidates.includes(id)) candidates.push(id);
13379
+ candidates.sort();
13380
+ }
13381
+ if (candidates.length === 0) {
13382
+ if (this.sources.objects?.compat) this.compatIdsFlushed = true;
13383
+ return { status: "missing" };
13384
+ }
13240
13385
  const hint = flags.hint ?? this.defaultHint();
13241
13386
  let status;
13242
13387
  let listedHint = hint;
@@ -13268,10 +13413,10 @@ var RevisionResolver = class {
13268
13413
  type: await this.objectType(id)
13269
13414
  });
13270
13415
  const rank = (t) => t === "tag" ? 0 : t === "commit" ? 1 : t === "tree" ? 2 : t === "blob" ? 3 : -1;
13271
- typed.sort((a, b) => rank(a.type) !== rank(b.type) ? rank(a.type) - rank(b.type) : a.id < b.id ? -1 : 1);
13416
+ typed.sort((a, b) => rank(a.type) !== rank(b.type) ? rank(a.type) - rank(b.type) : a.id.length !== b.id.length ? a.id.length - b.id.length : a.id < b.id ? -1 : 1);
13272
13417
  const shown = [];
13273
13418
  for (const c of typed) if (hint === void 0 || await this.satisfies(c.id, hint)) shown.push(c);
13274
- const lengths = await safe(async () => this.sources.abbreviate?.(shown.map((c) => c.id))) ?? void 0;
13419
+ const lengths = await safe(async () => this.sources.abbreviate?.(shown.filter((c) => c.id.length === this.hexLength).map((c) => c.id))) ?? void 0;
13275
13420
  const lines = [`error: short object ID ${prefix} is ambiguous`, "hint: The candidates are:"];
13276
13421
  for (const { id, type } of shown) {
13277
13422
  const hash = id.slice(0, lengths?.get(id) ?? 7);
@@ -13824,15 +13969,49 @@ async function signPayload(workingCopy, sign, payload, options) {
13824
13969
  */
13825
13970
  async function signCommit(workingCopy, sign, commit, options = {}) {
13826
13971
  if (sign === void 0) return commit;
13827
- const { gpgSignature: _dropped, ...unsigned } = commit;
13972
+ const { gpgSignature: _dropped, compatSignature: _droppedCompat, ...unsigned } = commit;
13828
13973
  const payload = await collectCommitBytes(unsigned);
13829
- const signature = new TextDecoder().decode(await signPayload(workingCopy, sign, payload, {
13974
+ const signOptions = {
13830
13975
  ...options,
13831
13976
  committer: commit.committer
13832
- }));
13833
- return {
13977
+ };
13978
+ const signature = new TextDecoder().decode(await signPayload(workingCopy, sign, payload, signOptions));
13979
+ const signed = {
13834
13980
  ...unsigned,
13835
- gpgSignature: signature.endsWith("\n") ? signature.slice(0, -1) : signature
13981
+ gpgSignature: headerSignature(signature)
13982
+ };
13983
+ const compat = workingCopy.history.objects?.compat;
13984
+ if (compat) {
13985
+ const compatPayload = await compat.convertToCompat("commit", payload);
13986
+ const compatSignature = new TextDecoder().decode(await signPayload(workingCopy, sign, compatPayload, signOptions));
13987
+ signed.compatSignature = {
13988
+ header: compat.compat.signatureHeader,
13989
+ value: headerSignature(compatSignature)
13990
+ };
13991
+ }
13992
+ return signed;
13993
+ }
13994
+ /**
13995
+ * A signature as a header holds it: its lines without the last newline (add_header_signature
13996
+ * writes each line with its newline).
13997
+ */
13998
+ function headerSignature(signature) {
13999
+ return signature.endsWith("\n") ? signature.slice(0, -1) : signature;
14000
+ }
14001
+ /**
14002
+ * builtin/tag.c `do_sign` in a repository with a compatibility object format: the tag as
14003
+ * that format sees it signed too, its signature to go in the tag's header (the storage
14004
+ * signature ends the message), so the tag's compatibility id covers a signature in its own
14005
+ * format. Undefined without a compatibility format.
14006
+ */
14007
+ async function signTagCompat(workingCopy, sign, payload, options) {
14008
+ const compat = workingCopy.history.objects?.compat;
14009
+ if (!compat) return void 0;
14010
+ const compatPayload = await compat.convertToCompat("tag", payload);
14011
+ const signature = new TextDecoder().decode(await signPayload(workingCopy, sign, compatPayload, options));
14012
+ return {
14013
+ header: compat.compat.signatureHeader,
14014
+ value: headerSignature(signature)
13836
14015
  };
13837
14016
  }
13838
14017
  /** A uint32 length-prefixed string of an ssh wire buffer at `at`. */
@@ -14155,15 +14334,32 @@ var GitCommand = class {
14155
14334
  return refreshFsmonitor({
14156
14335
  staging,
14157
14336
  owner: this,
14158
- config: (key) => config.value(key),
14337
+ config: (key) => key === "core.fsmonitor" && !this.hasWorktree() ? void 0 : config.value(key),
14159
14338
  ignoreCase: parseGitBool$1(config.value("core.ignorecase")) === true,
14160
14339
  query: async (query) => {
14161
14340
  if (environment?.fsmonitor) return environment.fsmonitor.query(query);
14162
- if (query.mode !== "hook" || query.command === void 0) return void 0;
14341
+ if (query.mode === "ipc") {
14342
+ if (!environment?.openIpcPort) return void 0;
14343
+ const gitDir = await this.hooks.hostGitDir({ real: false });
14344
+ if (!gitDir) return void 0;
14345
+ const stdout = await queryFsmonitorDaemon(await environment.openIpcPort({
14346
+ service: "fsmonitor--daemon",
14347
+ path: `${gitDir}/${FSMONITOR_DAEMON_IPC_NAME}`
14348
+ }), query.token);
14349
+ return stdout ? {
14350
+ exitCode: 0,
14351
+ stdout
14352
+ } : void 0;
14353
+ }
14354
+ if (query.command === void 0) return void 0;
14163
14355
  return this.hooks.runShellCommandBytes("fsmonitor", query.command, [String(query.version), query.token]);
14164
14356
  }
14165
14357
  });
14166
14358
  }
14359
+ /** Whether the working copy has a worktree (a bare repository's refuses to give one). */
14360
+ hasWorktree() {
14361
+ return "worktree" in this._workingCopy && !!this._workingCopy.worktree;
14362
+ }
14167
14363
  /**
14168
14364
  * The hooks this command runs (git's `run_hooks_opt`), through the host environment's
14169
14365
  * `hookRunner`; with none, no hook runs.
@@ -14858,8 +15054,10 @@ var GitCommand = class {
14858
15054
  *
14859
15055
  * @param refuseUnwritten false for a command that writes no index (`clean`): unwritten
14860
15056
  * edits are then kept and used instead of refusing
15057
+ *
15058
+ * The file system monitor is then asked (git's `tweak_fsmonitor`, see `fsmonitorRefresh`).
14861
15059
  */
14862
- async readCurrentIndex(refuseUnwritten = true) {
15060
+ async readCurrentIndex(refuseUnwritten = true, fsmonitor = true) {
14863
15061
  const staging = this.staging;
14864
15062
  if (await staging.isOutdated()) {
14865
15063
  if (staging.hasUnwrittenChanges?.() !== false) {
@@ -14869,6 +15067,7 @@ var GitCommand = class {
14869
15067
  await staging.read();
14870
15068
  }
14871
15069
  await this.clearPresentSkipWorktree();
15070
+ if (fsmonitor && !await isIndexUnborn(staging)) await this.fsmonitorRefresh(staging);
14872
15071
  }
14873
15072
  /**
14874
15073
  * git's `clear_skip_worktree_from_present_files`, which `repo_read_index` runs on every
@@ -15210,6 +15409,16 @@ var GitCommand = class {
15210
15409
  * from its stored bytes without the name check. Undefined when the tree cannot be read.
15211
15410
  */
15212
15411
  async listedTreeEntries(id) {
15412
+ const compat = this.compatObjects;
15413
+ if (compat && id.length !== this.objectFormat.hexLength) {
15414
+ const tree = await compat.readAsCompat(id).catch(() => void 0);
15415
+ if (tree?.type !== "tree") return void 0;
15416
+ return decodeTreeBytes(tree.content, {
15417
+ canonicalModes: true,
15418
+ idLength: compat.compat.rawLength,
15419
+ checkNames: false
15420
+ });
15421
+ }
15213
15422
  try {
15214
15423
  const loaded = await this.trees.load(id);
15215
15424
  if (!loaded) return void 0;
@@ -26349,6 +26558,10 @@ var LogPrinter = class {
26349
26558
  this.verboseHeader = !options.diffTree || prettyGiven;
26350
26559
  const pretty = options.oneline ? "oneline" : options.pretty ?? host.config("format.pretty");
26351
26560
  this.format = parseCommitFormat(pretty, host);
26561
+ if (options.prettyOnly) this.format = {
26562
+ ...this.format,
26563
+ expandTabs: 0
26564
+ };
26352
26565
  const dateSpec = options.date ?? host.config("log.date");
26353
26566
  this.dateMode = dateSpec ? parseDateMode(dateSpec) : this.format.dateShort ? {
26354
26567
  type: "short",
@@ -26700,6 +26913,10 @@ var LogPrinter = class {
26700
26913
  log.pending = false;
26701
26914
  const { fmt } = this.format;
26702
26915
  if (this.options.noCommitId) return;
26916
+ if (this.options.prettyOnly) {
26917
+ this.out.text(await this.prettyPrint(entry, ""));
26918
+ return;
26919
+ }
26703
26920
  if (!this.verboseHeader) {
26704
26921
  if (this.graph) this.out.text(this.graph.showCommit());
26705
26922
  else {
@@ -35627,7 +35844,7 @@ var SubmoduleUnpack = class SubmoduleUnpack {
35627
35844
  }
35628
35845
  async m() {
35629
35846
  if (this.loadedMover) return this.loadedMover;
35630
- this.moverLoad ??= import("./commands-Mlo1dxQN.js").then((n) => n.Hn).then((commands) => {
35847
+ this.moverLoad ??= import("./commands-bQQ9OmCh.js").then((n) => n.Hn).then((commands) => {
35631
35848
  this.commands = commands;
35632
35849
  this.loadedMover = new commands.SubmoduleHeadMover(this.workingCopy, this.superPrefix);
35633
35850
  return this.loadedMover;
@@ -36080,9 +36297,11 @@ var ResetCommand = class extends GitCommand {
36080
36297
  staging: this.staging
36081
36298
  }) : void 0;
36082
36299
  let flagged;
36300
+ let fsmKept;
36083
36301
  if (this.mode === "hard") {
36084
36302
  const commit = await this.commits.load(targetId);
36085
36303
  if (commit) {
36304
+ if (this.worktreeAccess) fsmKept = await fsmonitorKeptEntries(this.trees, this.staging, commit.tree);
36086
36305
  flagged = await checkFlaggedEntries({
36087
36306
  trees: this.trees,
36088
36307
  staging: this.staging,
@@ -36108,14 +36327,14 @@ var ResetCommand = class extends GitCommand {
36108
36327
  this.warnings.push(...await moveHeadAsReset(this.refsStore, state, headId, targetId, this.reflogLine(message), `${this.hasReflogAction() ? this.reflogAction("reset") : "reset"}: updating ORIG_HEAD`));
36109
36328
  if (this.mode === "mixed" || this.mode === "hard") {
36110
36329
  markIndexUpdate(this.staging, this.mode === "hard" ? { workdir: true } : { skipWorktree: true });
36111
- await this.resetStaging(targetId);
36330
+ await this.resetStaging(targetId, fsmKept);
36112
36331
  }
36113
36332
  if (this.mode === "mixed" && await this.refreshAfterReset()) await this.staging.write();
36114
36333
  if (this.mode === "hard") {
36115
36334
  const written = await this.resetWorkingTree(targetId, trackedBefore ?? /* @__PURE__ */ new Set(), flagged?.keptOut, sparse, submodules && {
36116
36335
  unpack: submodules,
36117
36336
  oldIndex
36118
- });
36337
+ }, fsmKept && new Set(fsmKept.keys()));
36119
36338
  if (this.worktreeAccess && written.size > 0) {
36120
36339
  await recordWrittenStat(this.staging, this.worktreeAccess, written);
36121
36340
  await this.staging.write();
@@ -36345,7 +36564,7 @@ var ResetCommand = class extends GitCommand {
36345
36564
  * @param targetId Commit to reset the working tree to
36346
36565
  * @param trackedBefore Paths tracked before staging was reset
36347
36566
  */
36348
- async resetWorkingTree(targetId, trackedBefore, keptOut, sparse, submodules) {
36567
+ async resetWorkingTree(targetId, trackedBefore, keptOut, sparse, submodules, unchanged) {
36349
36568
  const worktree = this.worktreeAccess;
36350
36569
  if (!worktree) return /* @__PURE__ */ new Set();
36351
36570
  const commit = await this.commits.load(targetId);
@@ -36355,16 +36574,17 @@ var ResetCommand = class extends GitCommand {
36355
36574
  blobs: this.blobs,
36356
36575
  workingCopy: this.workingCopy,
36357
36576
  worktree
36358
- }, commit.tree, trackedBefore, keptOut, sparse, submodules);
36577
+ }, commit.tree, trackedBefore, keptOut, sparse, submodules, unchanged);
36359
36578
  }
36360
36579
  /**
36361
36580
  * Reset staging area to match a tree.
36362
36581
  */
36363
- async resetStaging(commitId) {
36582
+ async resetStaging(commitId, kept) {
36364
36583
  const commit = await this.commits.load(commitId);
36365
36584
  if (commit) {
36366
36585
  if (this.mode !== "mixed") {
36367
36586
  await this.staging.readTree(this.trees, commit.tree, { keepMatching: "flags" });
36587
+ if (kept) await restoreKeptEntries(this.staging, kept);
36368
36588
  await this.primeCacheTree(commit.tree);
36369
36589
  await this.staging.write();
36370
36590
  return;
@@ -36435,7 +36655,7 @@ var ResetCommand = class extends GitCommand {
36435
36655
  * patterns are written, nothing that stays outside is removed, and the files leaving the
36436
36656
  * checkout are unlinked first. Returns the paths written.
36437
36657
  */
36438
- async function restoreWorktreeHard(deps, treeId, trackedBefore, keptOut, sparse, submodules) {
36658
+ async function restoreWorktreeHard(deps, treeId, trackedBefore, keptOut, sparse, submodules, unchanged) {
36439
36659
  const { trees, blobs, workingCopy, worktree } = deps;
36440
36660
  const subs = submodules?.unpack;
36441
36661
  const oldGitlink = (path) => {
@@ -36448,7 +36668,8 @@ async function restoreWorktreeHard(deps, treeId, trackedBefore, keptOut, sparse,
36448
36668
  ...worktreePathRules(workingCopy, worktree),
36449
36669
  reservedNames: worktree.capabilities?.reservedNames
36450
36670
  });
36451
- const skip = sparse ? (path) => !sparse.writes(path) : keptOut && keptOut.size > 0 ? (path) => keptOut.has(path) : void 0;
36671
+ const outside = sparse ? (path) => !sparse.writes(path) : keptOut && keptOut.size > 0 ? (path) => keptOut.has(path) : void 0;
36672
+ const skip = unchanged && unchanged.size > 0 ? (path) => unchanged.has(path) || !!outside?.(path) : outside;
36452
36673
  const plan = skip ? {
36453
36674
  ...fullPlan,
36454
36675
  entries: fullPlan.entries.filter((e) => !skip(e.path)),
@@ -36513,6 +36734,42 @@ async function recordWrittenStat(staging, worktree, paths) {
36513
36734
  if (edits > 0) await editor.finish();
36514
36735
  }
36515
36736
  /**
36737
+ * unpack-trees' `oneway_merge` under a reset (`reset --hard`, `checkout -f`): a stage-0 entry
36738
+ * the target keeps unchanged and the file system monitor holds valid (`CE_FSMONITOR_VALID`)
36739
+ * is neither lstat'ed nor written, and stays in the index as it is, bit and stat included.
36740
+ * Only an entry the monitor was asked about in this command, and reported nothing for, is
36741
+ * held valid (`FsmonitorState.isValid`: exactly as marked); gitlinks and skip-worktree
36742
+ * entries never are here. The entries by path, empty when the monitor is off.
36743
+ */
36744
+ async function fsmonitorKeptEntries(trees, staging, treeId) {
36745
+ const kept = /* @__PURE__ */ new Map();
36746
+ const state = staging.getFsmonitor?.();
36747
+ if (!state?.hasRun) return kept;
36748
+ let target;
36749
+ for await (const entry of staging.entries()) {
36750
+ if (entry.stage !== 0 || entry.mode === FileMode.GITLINK) continue;
36751
+ if (entry.skipWorktree || entry.intentToAdd || !state.isValid(entry)) continue;
36752
+ target ??= await flatTree(trees, treeId);
36753
+ const t = target.get(entry.path);
36754
+ if (t && t.mode === entry.mode && t.objectId === entry.objectId) kept.set(entry.path, entry);
36755
+ }
36756
+ return kept;
36757
+ }
36758
+ /**
36759
+ * After a one-way reset read the target into the index: the entries `oneway_merge` kept
36760
+ * (`fsmonitorKeptEntries`) put back exactly as they were (`add_entry` of the old entry), so
36761
+ * their stat and fsmonitor bit survive. Not written here.
36762
+ */
36763
+ async function restoreKeptEntries(staging, kept) {
36764
+ if (kept.size === 0) return;
36765
+ const editor = staging.createEditor();
36766
+ for (const old of kept.values()) editor.add({
36767
+ path: old.path,
36768
+ apply: (existing) => existing && existing.stage === 0 && existing.mode === old.mode && existing.objectId === old.objectId ? old : existing
36769
+ });
36770
+ await editor.finish();
36771
+ }
36772
+ /**
36516
36773
  * The index entries whose flags cheat (assume-unchanged, skip-worktree) before a one-way
36517
36774
  * reset onto `treeId` (`reset --hard`, `checkout -f`): unpack-trees checks them even when it
36518
36775
  * resets (`verify_uptodate_1`: "CE_VALID and CE_SKIP_WORKTREE cheat"), so one the tree
@@ -40039,16 +40296,9 @@ var RevParseCommand = class extends GitCommand {
40039
40296
  if (await this.tryParentShorthands(resolver, arg, lines)) continue;
40040
40297
  const reversed = arg.startsWith("^");
40041
40298
  let id;
40042
- if (output !== void 0) {
40043
- const translated = await this.translatedRevision(reversed ? arg.slice(1) : arg, output);
40044
- if (translated !== void 0) {
40045
- lines.push(reversed ? `^${translated}` : translated);
40046
- continue;
40047
- }
40048
- }
40049
40299
  try {
40050
- id = await resolver.resolve(reversed ? arg.slice(1) : arg);
40051
- if (id !== void 0 && output === "compat") id = await this.outputCompat(id);
40300
+ id = await resolver.resolve(reversed ? arg.slice(1) : arg, output !== void 0 ? { hashAny: true } : {});
40301
+ if (id !== void 0 && output !== void 0) id = await this.outputId(id, output);
40052
40302
  } catch (error) {
40053
40303
  if (error instanceof RevisionError && resolver.warnings.length > 0) throw new RevisionError(arg, [...resolver.warnings, error.message].join("\n"));
40054
40304
  throw error;
@@ -40070,21 +40320,15 @@ var RevParseCommand = class extends GitCommand {
40070
40320
  };
40071
40321
  }
40072
40322
  /**
40073
- * A full id of the compatibility format under `--output-object-format` (git's
40074
- * `GET_OID_HASH_ANY`): printed as given in that format, else as the storage id the map
40075
- * gives (as given when it has none, as git's ignored `repo_oid_to_algop` failure leaves it).
40076
- * Undefined for anything else.
40323
+ * `repo_oid_to_algop`: `id` (of either format) printed in the format asked, through the map;
40324
+ * as it is when the map has no translation (git ignores that failure).
40077
40325
  */
40078
- async translatedRevision(name, output) {
40326
+ async outputId(id, output) {
40079
40327
  const compat = this.compatObjects;
40080
- if (!compat || name.length !== compat.compat.hexLength || !/^[0-9a-fA-F]+$/.test(name)) return;
40081
- const id = name.toLowerCase();
40082
- if (output === "compat") return id;
40083
- return await compat.toStorage(id) ?? id;
40084
- }
40085
- /** `id` in the compatibility format, as the map gives it (else as it is, as git) */
40086
- async outputCompat(id) {
40087
- return await this.compatObjects?.toCompat(id) ?? id;
40328
+ if (!compat) return id;
40329
+ const isStorage = id.length === this.objectFormat.hexLength;
40330
+ if (output === "storage") return isStorage ? id : await compat.toStorage(id) ?? id;
40331
+ return isStorage ? await compat.toCompat(id) ?? id : id;
40088
40332
  }
40089
40333
  /**
40090
40334
  * git's `try_difference`: `a..b` prints b and ^a; `a...b` prints b, a and ^ each merge base.
@@ -41576,16 +41820,34 @@ async function concat(chunks) {
41576
41820
  return out;
41577
41821
  }
41578
41822
  /**
41823
+ * The warning lines for a submodule we cannot look into (git opens it, we do not), or
41824
+ * undefined for any other failure, which stays fatal as git's child status dies on it.
41825
+ */
41826
+ function submoduleNotSupportedWarning(path, error) {
41827
+ if (!(error instanceof Error) || error.name !== "UnsupportedRepositoryFormatError") return;
41828
+ if (!error.notSupportedHere) return;
41829
+ return [`warning: cannot look into submodule '${path}': ${error.message}`];
41830
+ }
41831
+ /**
41579
41832
  * The state of the submodule at `path` in its own index and worktree, as git's
41580
41833
  * `is_submodule_modified` reads it from `git status --porcelain=2` run inside it: an
41581
41834
  * untracked file there (or a nested submodule holding only untracked files, `S..U`) is
41582
41835
  * untracked content; any other change, a nested submodule's included, is modified content.
41583
41836
  * Nothing for a submodule that is not populated (or that the worktree cannot open). A
41584
41837
  * configuration the inner status cannot read fails with its messages and git's
41585
- * `'git status --porcelain=2' failed in submodule <path>`.
41838
+ * `'git status --porcelain=2' failed in submodule <path>`. A repository git opens and we do
41839
+ * not (an `extensions.objectStorage` payload, statewalker/webrun-vcs#441) is no failure of
41840
+ * the superproject: its state is `unreadable`, with a warning.
41586
41841
  */
41587
41842
  async function readSubmoduleDirt(worktree, path, ignoreUntracked) {
41588
- const inner = await worktree.openGitlink?.(path);
41843
+ let inner;
41844
+ try {
41845
+ inner = await worktree.openGitlink?.(path);
41846
+ } catch (error) {
41847
+ const unreadable = submoduleNotSupportedWarning(path, error);
41848
+ if (unreadable) return { unreadable };
41849
+ throw error;
41850
+ }
41589
41851
  if (!inner) return {};
41590
41852
  const command = new StatusCommand(inner).setRenames(false);
41591
41853
  if (ignoreUntracked) command.setUntrackedFiles("no");
@@ -42115,6 +42377,7 @@ var StatusCommand = class extends GitCommand {
42115
42377
  const indexTime = this.staging.getUpdateTime();
42116
42378
  const gitlinks = /* @__PURE__ */ new Set();
42117
42379
  const refresh = [];
42380
+ const submoduleWarnings = [];
42118
42381
  const unmerged = /* @__PURE__ */ new Map();
42119
42382
  const upToDate = /* @__PURE__ */ new Set();
42120
42383
  const matchAll = this.paths.length === 0;
@@ -42206,7 +42469,10 @@ var StatusCommand = class extends GitCommand {
42206
42469
  if (!result.kind && !replaced && !flags && !entry.intentToAdd) fsm?.state.markValid(entry);
42207
42470
  if (!result.kind && isIgnoreFilePath(entry.path)) upToDate.add(entry.path);
42208
42471
  if (flags && result.kind === "modified") commitChanged = true;
42209
- if (flags && !flags.dirty && result.worktreeEntry?.isDirectory) dirt = await readSubmoduleDirt(worktree, entry.path, flags.untracked);
42472
+ if (flags && !flags.dirty && result.worktreeEntry?.isDirectory) {
42473
+ dirt = await readSubmoduleDirt(worktree, entry.path, flags.untracked);
42474
+ if (dirt.unreadable) submoduleWarnings.push(...dirt.unreadable);
42475
+ }
42210
42476
  if (result.kind === "deleted") {
42211
42477
  y = "D";
42212
42478
  missing.add(entry.path);
@@ -42275,6 +42541,7 @@ var StatusCommand = class extends GitCommand {
42275
42541
  }
42276
42542
  const renamed = /* @__PURE__ */ new Map();
42277
42543
  const warnings = (fsm?.warnings ?? []).map((w) => `warning: ${w}`);
42544
+ warnings.push(...submoduleWarnings);
42278
42545
  const renameMode = this.renameMode();
42279
42546
  if (renameMode) await this.pairRenames(files, renamed, worktree, warnings, renameMode);
42280
42547
  const host = worktree ? await worktree.untrackedScanHost?.() : void 0;
@@ -45537,12 +45804,17 @@ var DiffCommand = class DiffCommand extends GitCommand {
45537
45804
  const trust = worktreeModeTrust(this.workingCopy, worktree);
45538
45805
  const indexTime = this.staging.getUpdateTime();
45539
45806
  const ignoreOf = await this.submoduleIgnoreOf();
45807
+ const fsm = await this.fsmonitorRefresh(this.staging);
45808
+ const fsmValid = (entry) => !!fsm && entry.stage === 0 && fsm.state.isValid(entry);
45809
+ const statsValid = unmergedAsFiles && this.hooks.compatibility === "2.43";
45810
+ const fsmUnstated = (entry) => !statsValid && fsmValid(entry);
45540
45811
  const compareWith = async (entry, current) => {
45541
45812
  const indexSide = {
45542
45813
  mode: entry.mode,
45543
45814
  id: entry.objectId
45544
45815
  };
45545
- if (entry.skipWorktree || entry.assumeValid) return indexSide;
45816
+ if (entry.skipWorktree || entry.assumeValid || fsmUnstated(entry)) return indexSide;
45817
+ if (fsmValid(entry)) return (current !== void 0 ? current : await worktree.getEntry(entry.path).catch(() => null)) ? indexSide : void 0;
45546
45818
  const ignore = entry.mode === GITLINK ? ignoreOf(entry.path) : void 0;
45547
45819
  if (entry.mode === GITLINK && ignore === "all") return indexSide;
45548
45820
  const result = await compareWithWorktree(worktree, entry, {
@@ -45557,6 +45829,7 @@ var DiffCommand = class DiffCommand extends GitCommand {
45557
45829
  const dirt = {};
45558
45830
  if (entry.mode === GITLINK && ignore !== "dirty" && (this.dirtyThisCall || id === entry.objectId) && result.worktreeEntry?.isDirectory) {
45559
45831
  const found = await readSubmoduleDirt(worktree, entry.path, ignore !== "none");
45832
+ for (const line of found.unreadable ?? []) if (!this.configWarnings.includes(line)) this.configWarnings.push(line);
45560
45833
  if (found.modified) dirt.modified = true;
45561
45834
  if (ignore === "none" && found.untracked) dirt.untracked = true;
45562
45835
  dirty = !!dirt.modified || !!dirt.untracked;
@@ -45606,7 +45879,7 @@ var DiffCommand = class DiffCommand extends GitCommand {
45606
45879
  };
45607
45880
  };
45608
45881
  const compare = (entry) => compareWith(entry);
45609
- const stated = (entry) => entry.stage === 0 && !entry.skipWorktree && !entry.assumeValid && entry.mode !== GITLINK && this.matches(entry.path);
45882
+ const stated = (entry) => entry.stage === 0 && !entry.skipWorktree && !entry.assumeValid && entry.mode !== GITLINK && !fsmUnstated(entry) && this.matches(entry.path);
45610
45883
  for await (const { item: entry, current } of withWorktreeEntries(worktree, this.staging.entries(), stated)) {
45611
45884
  if (entry.stage !== 0) {
45612
45885
  let stages = unmerged.get(entry.path);
@@ -49670,4 +49943,4 @@ let RevertStatus = /* @__PURE__ */ function(RevertStatus) {
49670
49943
  return RevertStatus;
49671
49944
  }({});
49672
49945
  //#endregion
49673
- export { RevParseCommand as $, disableHint as $a, checkoutFreshTree as $c, conflictsComment as $i, findIdent as $l, remergeObjectsView as $n, computeDiffstat as $o, latin1Bytes as $r, createPromisorFetcher as $s, ResetMode as $t, IndexRefresh as A, createRenameEntry as Aa, cleanTrackedSparseDirectories as Ac, latin1ToBytes as Ai, createIdAbbreviator as Al, SignatureVerificationError as An, createMergeDriver as Ao, combineNotesOverwrite as Ar, writeWordDiffHunks as As, applyAutostash as At, parseIgnoredMode as B, resolveSigning as Ba, IndexCaseFolding as Bc, isMergeSuccessful as Bi, checkAutoCommentChar as Bl, readStoredObjectBytes as Bn, addLeadingDirs as Bo, formatTrailersOf as Br, diffColorSlotOf as Bs, NoChangesSelectedError as Bt, patchRevisionOf as C, DiffFormatter as Ca, defaultRefFormat as Cc, readBlob as Ci, nullIdLike as Cl, parseSubmoduleDiffFormat as Cn, rerereGcLocation as Co, initNotes as Cr, quoteCStyleBody as Cs, matchBoolArg as Ct, PATCH_MODES as D, createCopyEntry as Da, indexVersionConfigError as Dc, ApplyParser as Di, sequencerPrepareMessage as Dl, submoduleHeader as Dn, runRerere as Do, combineNotesCatSortUniq as Dr, lineRangesSpan as Ds, sanitizedSubject as Dt, runAddPatch as E, createAddEntry as Ea, indexFormatDefault as Ec, ApplyEngine as Ei, sequencerPostCommit as El, showSubmoduleDiffSummary as En, rerereStatus as Eo, NotesTree as Er, cutToLineRanges as Es, relativeDate as Et, hasPickaxe as F, GitCommand as Fa, sparseCheckoutConfig as Fc, newFilePatch as Fi, isGitSpace$1 as Fl, parseBufferSignedByHeader as Fn, DEFAULT_RENAME_LIMIT as Fo, mergesMode as Fr, MovedLineBuffer as Fs, removeMergeBranchState as Ft, readHeadDescription as G, signingConfigFromEntries as Ga, pruneEmptyParents as Gc, commitMessageFromOption as Gi, conflictStyleOf as Gl, verifyCommitBytes as Gn, conflictMarkerSizeOf as Go, parseTrailerWhere as Gr, wsErrorHighlightOf as Gs, WorkingCopyStashProvider as Gt, readShowUntrackedFiles as H, signPayload as Ha, findInTheWay as Hc, cleanupWith as Hi, bareAttributesResolver as Hl, signatureFormatAt as Hn, stageZeroClashes as Ho, interpretTrailers as Hr, parseColorMovedWs as Hs, StashCreateCommand as Ht, renamesValue as I, SIGNING_FAILED_LINES as Ia, sparseDirectoriesOf as Ic, ContentMergeStrategy as Ii, wsBlankLine as Il, parseGpgOutput as In, detectRenames as Io, reencodedCommitParts as Ir, WSEH_CONTEXT as Is, resetMerge as It, formatStatusText as J, RevisionResolver as Ja, statFollowingLinks as Jc, parseCleanupMode as Ji, IdentityUnknownError as Jl, CommitFilters as Jn, GIT_DIFF_BIG_FILE_THRESHOLD as Jo, trailerConfigFromEntries as Jr, reflogMessages as Js, recordWrittenStat as Jt, formatTrackingInfo as K, signingConfigOf as Ka, removeCaseVariants as Kc, completeLine as Ki, mergeVerbosityOf as Kl, verifyMergeSignature as Kn, isConflictMarkerLine as Ko, processTrailers as Kr, committerIdent as Ks, ResetCommand as Kt, TextconvCaches as L, SIGNING_KEYS as La, sparsePathAdvice as Lc, FastForwardMode as Li, wsCheckEmit as Ll, parseSignature as Ln, GIT_MAX_SCORE as Lo, amendWithTrailers as Lr, WSEH_NEW as Ls, resetUnmergedToHead as Lt, DiffCommand as M, formatDirstat as Ma, pushSparseWarnings as Mc, latin1ToText as Mi, WS_BLANK_AT_EOF as Ml, checkSignature as Mn, lowLevelMerge as Mo, LogPrinter as Mr, COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE as Ms, createAutostash as Mt, checkPickaxeOptions as N, parseDirstatParams as Na, readSparseCheckoutFile as Nc, pathToLatin1 as Ni, WS_DEFAULT_RULE as Nl, checkSignatureWith as Nn, mergeDriversOf as No, mailFromHeader as Nr, DEFAULT_DIFF_COLORS as Ns, moveHeadAsReset as Nt, patchModeFor as O, createDeleteEntry as Oa, takeIndexWarnings as Oc, bytesToLatin1 as Oi, abbrevLengths as Ol, isSubmoduleIgnoreMode as On, MergeDriverCommandMissingError as Oo, combineNotesConcatenate as Or, WORD_DIFF_MODES as Os, wrapText as Ot, formatDiffEntry as P, writeCombinedDiff as Pa, readSparseCheckoutPatterns as Pc, textToLatin1 as Pi, checkBlankAtEof as Pl, mergetagsOf as Pn, ortConfigOptions as Po, mailSubjectLine as Pr, DIFF_COLOR_SLOTS as Ps, removeBranchState as Pt, submoduleToken as Q, autoSetupRebase as Qa, worktreeModified as Qc, OperationState as Qi, committerIdentOf as Ql, RemergeTreeCommand as Qn, blobSide as Qo, globalPathspecMagic as Qr, LAZY_FETCH_DISABLED_WARNING as Qs, ListBranchMode as Qt, StatusCommand as R, SigningFailedError as Ra, sparseWarningText as Rc, MergeStatus as Ri, AutoCommentCharRemovedError as Rl, parseSignedBuffer as Rn, isBinaryContent as Ro, appendSignoff as Rr, WSEH_OLD as Rs, saveAutostash as Rt, runAddInteractive as S, parseOrderFile as Sa, defaultInitialBranch as Sc, ortResultEntries as Si, isKnownHook as Sl, openSubmoduleRepository as Sn, rerereForget as So, initCopyNotesForRewrite as Sr, writePairPatch as Ss, matchArgValue as St, runPatchSelection as T, ChangeType as Ta, IndexVersionConfigError as Tc, parseWhitespaceAction as Ti, runPostCheckoutHook as Tl, readGitmodulesEntries as Tn, rerereRemaining as To, updateNotesRef as Tr, quoteTwo as Ts, parseMaybeBool as Tt, readSubmoduleDirt as U, signRequestOf as Ua, flaggedEntryDiffers as Uc, commentPrefixOf as Ui, configBool as Ul, signatureLetter as Un, strerror as Uo, parseTrailerIfExists as Ur, parseWsErrorHighlight as Us, StashPathspecResetError as Ut, parseUntrackedFilesMode as V, signCommit as Va, entryNotUptodate as Vc, CleanupMode as Vi, attributesSourceResolver as Vl, removeSignatureHeaders as Vn, readGitlinkHead as Vo, ignoredLogMessageBytes as Vr, parseColorMoved as Vs, NoStagedChangesError as Vt, SubmoduleSummaryCommand as W, signerOf as Wa, overwriteMessage as Wc, commitCleanupMode as Wi, configValue$1 as Wl, trustRank as Wn, DEFAULT_CONFLICT_MARKER_SIZE as Wo, parseTrailerIfMissing as Wr, writeColoredHunks as Ws, StashWorktreeRemovalError as Wt, StatusImpl as X, ambiguousRemoteAdvice as Xa, untrackedUnder as Xc, stripspace as Xi, InvalidIdentError as Xl, applyMailmapToHeader as Xn, attrPathOf as Xo, trailerLinesOf as Xr, updateHead as Xs, SubmoduleUnpack as Xt, statusCommitInfo as Y, TrackMode as Ya, statThroughLeadingLinks as Yc, preparedMessageCleanup as Yi, InvalidDateError as Yl, GrepPatternError as Yn, LoadedSide as Yo, trailerConfigOf as Yr, reflogSubject as Ys, restoreWorktreeHard as Yt, formatStatusPorcelain as Z, applyRefspecs as Za, worktreeDiffers as Zc, FlatTreeCache as Zi, authorIdentOf as Zl, compileCommitGrep as Zn, blobIdOf as Zo, validateTrailerArgs as Zr, updateHeadExpecting as Zs, recursesIntoSubmodules as Zt, formatBlamePorcelain as _, createRefDecorationFilter as _a, UnknownObjectStorageFormatError as _c, parseDateMode as _i, hookHostInGitDir as _l, worktreeAdminWorkingCopy as _n, unknownRevisionMessage as _o, createNotesCommit as _r, noIndexPair as _s, expandStringArg as _t, PushStatus as a, planPathsRestore as aa, acceptedPromisorRemotes as ac, pathspecCommonPrefix as ai, treePathRefusal as al, RevFilter as an, trackableStart as ao, forkPointOf as ar, displayWidth$1 as as, externalDiffProgramOf as at, withoutCrud as au, collapsedSparseDirectories as b, orderByPatterns as ba, checkDefaultObjectStorage as bc, LogGraph as bi, hookSettingsCheck as bl, SubmoduleRepository as bn, rerereClear as bo, expandNotesRef as br, utf8$1 as bs, humanDate as bt, isPullSuccessful as c, rewriteIndex as ca, Mailmap as cc, pathspecItemMayMatch as ci, markIndexUpdate as cl, checkCandidatePath as cn, worktreeAmbiguityHints as co, patchIdOfChanges as cr, formatNameOnly as cs, whitespaceRuleError as ct, localTimezoneOffset as cu, hasUpdates as d, subjectOf$2 as da, readRepositoryMailmap as dc, treeEntryInteresting as di, commonGitFileOf as dl, refuseIfCheckedOut as dn, lstatExists as do, isFullHexObjectId as dr, formatNumstat as ds, formatConfigValue as dt, moveRefs as du, firstPlainError as ea, hasPromisorRemote as ec, latin1String as ei, planFlatRestore as el, PathspecFile as en, endOfSymbolicChain as eo, mergeBaseTree as er, contentDriver as es, revisionMergeBases as et, hostEnvironmentOf as eu, CherryPickStatus as f, switchTrees as fa, removeLegacyRemoteFile as fc, treePathspec as fi, configuredHookEntries as fl, repositoryPlaceOf as fn, parseRevisionAndPathArgs as fo, NotesError as fr, formatPatch as fs, gitConfigBool as ft, RemoteConfigStore as fu, formatBlameIncremental as g, StashApplyStatus as ga, ReinitializeObjectStorageError as gc, hostZoneName as gi, gitFileOf as gl, usesBranch as gn, parseRevisionArgs as go, copyNotesForRebase as gr, formatSummary as gs, PrettyFormatError as gt, formatBlame as h, writeIndexAsTree as ha, MissingDefaultBranchValueError as hc, DateModeError as hi, gitCommitMessageHooks as hl, useRelativePaths as hn, handleRevisionArg as ho, copyNotesForAmend as hr, formatStat as hs, parseGitColor as ht, isRebaseSuccessful as i, plainUnpackError as ia, registerPartialClone as ic, parsePathspecItem as ii, firstInvalidPath as il, LogCommand as in, pushTrackingPlan as io, commitsBaseSource as ir, diffOptsContext as is, ExternalDiffTempFiles as it, resolveIdentDate as iu, createPatchBackend as j, DEFAULT_DIRSTAT as ja, entryList as jc, latin1ToPath as ji, worktreeModeTrust as jl, bytesOf as jn, installMergeDrivers as jo, readNoteBytes as jr, COLOR_MOVED_MODE_ERROR as js, cleanupMessage as jt, promptIndex as k, createModifyEntry as ka, SparseUnpack as kc, cUnquote as ki, coreBool as kl, parseGitmodules as kn, MergeDriverFailedError as ko, combineNotesIgnore as kr, compileWordRegex as ks, AUTOSTASH_SAVED_LINES as kt, RefUpdateStatus as l, storeFlatTree as la, readMailmapBlob as lc, pathspecName as li, HookSession as ll, findLinkedWorktree as ln, checkFilename as lo, patchIdsOfPatchText as lr, formatNameStatus as ls, CONFIG_VALUE_TYPES as lt, parseGitDate as lu, formatAnnotate as m, updateIndexCacheTree as ma, InvalidInitialBranchError as mc, DEFAULT_DATE_MODE as mi, gitCommitAfterHooks as ml, shortBranchName as mn, verifyNonFilename as mo, copyNoteForRewrite as mr, formatShortstat as ms, normalizeConfigValue as mt, RebaseAction as n, indexChanges as na, promisorOf as nc, matchPathspecSeen as ni, restoreCaseOptions as nl, STASH_REF as nn, installTracking as no, storedBase as nr, countLines as ns, textconvRunnerOf as nt, resolveAuthorIdent as nu, getFailedUpdates as o, readIndex as oa, promisorRemoteReplyOf as oc, pathspecErrors as oi, withTreePathRefusal as ol, WorktreeListCommand as on, uniqueTrackingName as oo, PathspecAttributes as or, driverOf as os, DEFAULT_DECORATION_COLORS as ot, approxidateCareful$1 as ou, BlameColorError as p, treeDelta as pa, InvalidDefaultBranchError as pc, untrackedScanPathspec as pi, configuredHooks as pl, requireWorktrees as pn, verifyFilename as po, commitNotes as pr, formatRawPair as ps, gitConfigColorBool as pt, listRemoteNames as pu, StatusPrinter as q, signingKeyIdOf as qa, removeDirectoryIfEmpty as qc, editorCleanupMode as qi, DEFAULT_IDENT as ql, verifyTagBytes as qn, writePairCheck as qo, signoffLine as qr, reflogLine as qs, checkFlaggedEntries as qt, RebaseStatus as r, indexChangesFromTree as ra, promisorRemotes as rc, parsePathspec as ri, writeTreeRestorePlan as rl, StashListCommand as rn, planTracking as ro, MergeBaseGraph as rr, diffDriverOf as rs, ExternalDiffDiedError as rt, resolveCommitterIdent as ru, isPushSuccessful as s, refsWatched as sa, httpClientSettingsOf as sc, pathspecItemBytes as si, worktreePathRules as sl, shortenUnambiguousRef as sn, upstreamMissingError as so, PatchIds as sr, externalDiffMetainfo as ss, readDiffColorSettings as st, formatRfc2822Date as su, RevertStatus as t, flatTree as ta, installPromisorFetcher as tc, matchPathspec as ti, planTreeRestore as tl, StashApplyCommand as tn, guessRemoteBranch as to, mergeStoredTrees as tr, contentSide as ts, installTextconvRunner as tt, identConfigOf as tu, getSuccessfulUpdates as u, storeFlatTreeOver as ua, readMailmapFile as uc, psEqual as ui, LOCAL_REPO_ENV as ul, parseExpiry as un, looksLikePathspec as uo, canonicalObjectId as ur, formatNoIndexDiff as us, ConfigValueDeath as ut, deleteRefs as uu, AddCommand as v, decorateFullRefs as va, UnknownRefFormatError as vc, showDate as vi, hookHostOf as vl, worktreeUsingBranch as vn, RerereError as vo, defaultNotesRef as vr, pprintRename as vs, formatCommitPretty as vt, pathPatchMode as w, diffEntryToPair as wa, isValidBranchName$1 as wc, ApplyCommand as wi, refTransactionHookOf as wl, readDiffSubmoduleConfig as wn, rerereHostOf as wo, readRef as wr, quotePath$1 as ws, parseColorSpec as wt, sparseIndexAsRead as x, orderRank as xa, defaultBranchHint as xc, graphColumnColors as xi, hookSettingsFromEntries as xl, SubmoduleWalkError as xn, rerereDiff as xo, finishCopyNotesForRewrite as xr, writeHeaderOnlyPatch as xs, loadRefDecorations as xt, SPARSE_INDEX_EXPANDED_HINT as y, DiffPickaxe as ya, UnsupportedObjectStorageError as yc, GRAPH_COLUMN_COLORS_ANSI as yi, hookRunnerOf as yl, NULL_OBJECT_ID as yn, normalizeConflicts as yo, expandLooseNotesRef as yr, statSummary as ys, formatRefDecorations as yt, cutLine as z, refuseCommitSigning as za, updateSparsity as zc, MergeStrategy as zi, autoCommentCharLines as zl, parseSshOutput as zn, IndexAdder as zo, appendTrailers as zr, coloredHunkHeader as zs, squashMessage as zt };
49946
+ export { submoduleToken as $, TrackMode as $a, statFollowingLinks as $c, stripspace as $i, configValue$1 as $l, applyMailmapToHeader as $n, LoadedSide as $o, trailerLinesOf as $r, reflogSubject as $s, SubmoduleUnpack as $t, IndexRefresh as A, createCopyEntry as Aa, IndexVersionConfigError as Ac, ApplyParser as Ai, runPostCheckoutHook as Al, submoduleHeader as An, rerereStatus as Ao, combineNotesCatSortUniq as Ar, cutToLineRanges as As, AUTOSTASH_SAVED_LINES as At, parseIgnoredMode as B, SIGNING_KEYS as Ba, sparseCheckoutConfig as Bc, FastForwardMode as Bi, worktreeModeTrust as Bl, parseSignature as Bn, detectRenames as Bo, amendWithTrailers as Br, WSEH_CONTEXT as Bs, squashMessage as Bt, patchRevisionOf as C, orderByPatterns as Ca, UnsupportedObjectStorageError as Cc, LogGraph as Ci, hookHostOf as Cl, SubmoduleRepository as Cn, normalizeConflicts as Co, expandNotesRef as Cr, statSummary as Cs, matchArgValue as Ct, PATCH_MODES as D, diffEntryToPair as Da, defaultRefFormat as Dc, ApplyCommand as Di, isKnownHook as Dl, readDiffSubmoduleConfig as Dn, rerereGcLocation as Do, readRef as Dr, quoteCStyleBody as Ds, relativeDate as Dt, runAddPatch as E, DiffFormatter as Ea, defaultInitialBranch as Ec, readBlob as Ei, hookSettingsFromEntries as El, parseSubmoduleDiffFormat as En, rerereForget as Eo, initNotes as Er, writePairPatch as Es, parseMaybeBool as Et, hasPickaxe as F, formatDirstat as Fa, cleanTrackedSparseDirectories as Fc, latin1ToText as Fi, encodePacketized as Fl, checkSignature as Fn, installMergeDrivers as Fo, LogPrinter as Fr, COLOR_MOVED_MODE_ERROR as Fs, removeBranchState as Ft, SubmoduleSummaryCommand as G, signPayload as Ga, IndexCaseFolding as Gc, cleanupWith as Gi, wsBlankLine as Gl, signatureFormatAt as Gn, readGitlinkHead as Go, interpretTrailers as Gr, parseColorMoved as Gs, StashWorktreeRemovalError as Gt, readShowUntrackedFiles as H, refuseCommitSigning as Ha, sparsePathAdvice as Hc, MergeStrategy as Hi, WS_DEFAULT_RULE as Hl, parseSshOutput as Hn, isBinaryContent as Ho, appendTrailers as Hr, WSEH_OLD as Hs, NoStagedChangesError as Ht, renamesValue as I, parseDirstatParams as Ia, entryList as Ic, pathToLatin1 as Ii, queryFsmonitorDaemon as Il, checkSignatureWith as In, lowLevelMerge as Io, mailFromHeader as Ir, COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE as Is, removeMergeBranchState as It, StatusPrinter as J, signerOf as Ja, flaggedEntryDiffers as Jc, commitMessageFromOption as Ji, autoCommentCharLines as Jl, verifyCommitBytes as Jn, DEFAULT_CONFLICT_MARKER_SIZE as Jo, parseTrailerWhere as Jr, writeColoredHunks as Js, checkFlaggedEntries as Jt, readHeadDescription as K, signRequestOf as Ka, entryNotUptodate as Kc, commentPrefixOf as Ki, wsCheckEmit as Kl, signatureLetter as Kn, stageZeroClashes as Ko, parseTrailerIfExists as Kr, parseColorMovedWs as Ks, WorkingCopyStashProvider as Kt, TextconvCaches as L, writeCombinedDiff as La, pushSparseWarnings as Lc, textToLatin1 as Li, abbrevLengths as Ll, mergetagsOf as Ln, mergeDriversOf as Lo, mailSubjectLine as Lr, DEFAULT_DIFF_COLORS as Ls, resetMerge as Lt, DiffCommand as M, createModifyEntry as Ma, indexVersionConfigError as Mc, cUnquote as Mi, sequencerPrepareMessage as Ml, parseGitmodules as Mn, MergeDriverCommandMissingError as Mo, combineNotesIgnore as Mr, WORD_DIFF_MODES as Ms, cleanupMessage as Mt, checkPickaxeOptions as N, createRenameEntry as Na, takeIndexWarnings as Nc, latin1ToBytes as Ni, fsmonitorModeOf as Nl, SignatureVerificationError as Nn, MergeDriverFailedError as No, combineNotesOverwrite as Nr, compileWordRegex as Ns, createAutostash as Nt, patchModeFor as O, ChangeType as Oa, isValidBranchName$1 as Oc, parseWhitespaceAction as Oi, nullIdLike as Ol, readGitmodulesEntries as On, rerereHostOf as Oo, updateNotesRef as Or, quotePath$1 as Os, sanitizedSubject as Ot, formatDiffEntry as P, DEFAULT_DIRSTAT as Pa, SparseUnpack as Pc, latin1ToPath as Pi, FSMONITOR_DAEMON_IPC_NAME as Pl, bytesOf as Pn, createMergeDriver as Po, readNoteBytes as Pr, writeWordDiffHunks as Ps, moveHeadAsReset as Pt, formatStatusPorcelain as Q, RevisionResolver as Qa, removeDirectoryIfEmpty as Qc, preparedMessageCleanup as Qi, configBool as Ql, GrepPatternError as Qn, GIT_DIFF_BIG_FILE_THRESHOLD as Qo, trailerConfigOf as Qr, reflogMessages as Qs, restoreWorktreeHard as Qt, StatusCommand as R, GitCommand as Ra, readSparseCheckoutFile as Rc, newFilePatch as Ri, coreBool as Rl, parseBufferSignedByHeader as Rn, ortConfigOptions as Ro, mergesMode as Rr, DIFF_COLOR_SLOTS as Rs, resetUnmergedToHead as Rt, runAddInteractive as S, DiffPickaxe as Sa, UnknownRefFormatError as Sc, GRAPH_COLUMN_COLORS_ANSI as Si, hookHostInGitDir as Sl, NULL_OBJECT_ID as Sn, RerereError as So, expandLooseNotesRef as Sr, pprintRename as Ss, loadRefDecorations as St, listRemoteNames as Su, runPatchSelection as T, parseOrderFile as Ta, defaultBranchHint as Tc, ortResultEntries as Ti, hookSettingsCheck as Tl, openSubmoduleRepository as Tn, rerereDiff as To, initCopyNotesForRewrite as Tr, writeHeaderOnlyPatch as Ts, parseColorSpec as Tt, readSubmoduleDirt as U, resolveSigning as Ua, sparseWarningText as Uc, isMergeSuccessful as Ui, checkBlankAtEof as Ul, readStoredObjectBytes as Un, IndexAdder as Uo, formatTrailersOf as Ur, coloredHunkHeader as Us, StashCreateCommand as Ut, parseUntrackedFilesMode as V, SigningFailedError as Va, sparseDirectoriesOf as Vc, MergeStatus as Vi, WS_BLANK_AT_EOF as Vl, parseSignedBuffer as Vn, GIT_MAX_SCORE as Vo, appendSignoff as Vr, WSEH_NEW as Vs, NoChangesSelectedError as Vt, submoduleNotSupportedWarning as W, signCommit as Wa, updateSparsity as Wc, CleanupMode as Wi, isGitSpace$1 as Wl, removeSignatureHeaders as Wn, addLeadingDirs as Wo, ignoredLogMessageBytes as Wr, diffColorSlotOf as Ws, StashPathspecResetError as Wt, statusCommitInfo as X, signingConfigOf as Xa, pruneEmptyParents as Xc, editorCleanupMode as Xi, attributesSourceResolver as Xl, verifyTagBytes as Xn, isConflictMarkerLine as Xo, signoffLine as Xr, committerIdent as Xs, recordWrittenStat as Xt, formatStatusText as Y, signingConfigFromEntries as Ya, overwriteMessage as Yc, completeLine as Yi, checkAutoCommentChar as Yl, verifyMergeSignature as Yn, conflictMarkerSizeOf as Yo, processTrailers as Yr, wsErrorHighlightOf as Ys, fsmonitorKeptEntries as Yt, StatusImpl as Z, signingKeyIdOf as Za, removeCaseVariants as Zc, parseCleanupMode as Zi, bareAttributesResolver as Zl, CommitFilters as Zn, writePairCheck as Zo, trailerConfigFromEntries as Zr, reflogLine as Zs, restoreKeptEntries as Zt, formatBlamePorcelain as _, updateIndexCacheTree as _a, InvalidDefaultBranchError as _c, DEFAULT_DATE_MODE as _i, configuredHookEntries as _l, shortBranchName as _n, verifyFilename as _o, copyNoteForRewrite as _r, formatRawPair as _s, PrettyFormatError as _t, localTimezoneOffset as _u, PushStatus as a, indexChanges as aa, installPromisorFetcher as ac, matchPathspecSeen as ai, planFlatRestore as al, STASH_REF as an, guessRemoteBranch as ao, storedBase as ar, contentSide as as, ExternalDiffTempFiles as at, InvalidIdentError as au, collapsedSparseDirectories as b, createRefDecorationFilter as ba, ReinitializeObjectStorageError as bc, parseDateMode as bi, gitCommitMessageHooks as bl, worktreeAdminWorkingCopy as bn, parseRevisionArgs as bo, createNotesCommit as br, formatSummary as bs, formatRefDecorations as bt, moveRefs as bu, isPullSuccessful as c, planPathsRestore as ca, registerPartialClone as cc, pathspecCommonPrefix as ci, writeTreeRestorePlan as cl, RevFilter as cn, pushTrackingPlan as co, forkPointOf as cr, diffOptsContext as cs, readDiffColorSettings as ct, findIdent as cu, hasUpdates as d, rewriteIndex as da, httpClientSettingsOf as dc, pathspecItemMayMatch as di, withTreePathRefusal as dl, checkCandidatePath as dn, upstreamMissingError as do, patchIdOfChanges as dr, externalDiffMetainfo as ds, ConfigValueDeath as dt, resolveAuthorIdent as du, FlatTreeCache as ea, updateHead as ec, validateTrailerArgs as ei, statThroughLeadingLinks as el, recursesIntoSubmodules as en, ambiguousRemoteAdvice as eo, compileCommitGrep as er, attrPathOf as es, RevParseCommand as et, conflictStyleOf as eu, CherryPickStatus as f, storeFlatTree as fa, Mailmap as fc, pathspecName as fi, worktreePathRules as fl, findLinkedWorktree as fn, worktreeAmbiguityHints as fo, patchIdsOfPatchText as fr, formatNameOnly as fs, formatConfigValue as ft, resolveCommitterIdent as fu, formatBlameIncremental as g, treeDelta as ga, removeLegacyRemoteFile as gc, untrackedScanPathspec as gi, commonGitFileOf as gl, requireWorktrees as gn, parseRevisionAndPathArgs as go, commitNotes as gr, formatPatch as gs, parseGitColor as gt, formatRfc2822Date as gu, formatBlame as h, switchTrees as ha, readRepositoryMailmap as hc, treePathspec as hi, LOCAL_REPO_ENV as hl, repositoryPlaceOf as hn, lstatExists as ho, NotesError as hr, formatNumstat as hs, normalizeConfigValue as ht, approxidateCareful$1 as hu, isRebaseSuccessful as i, flatTree as ia, hasPromisorRemote as ic, matchPathspec as ii, checkoutFreshTree as il, StashApplyCommand as in, endOfSymbolicChain as io, mergeStoredTrees as ir, contentDriver as is, ExternalDiffDiedError as it, InvalidDateError as iu, createPatchBackend as j, createDeleteEntry as ja, indexFormatDefault as jc, bytesToLatin1 as ji, sequencerPostCommit as jl, isSubmoduleIgnoreMode as jn, runRerere as jo, combineNotesConcatenate as jr, lineRangesSpan as js, applyAutostash as jt, promptIndex as k, createAddEntry as ka, unknownObjectStorageFormat as kc, ApplyEngine as ki, refTransactionHookOf as kl, showSubmoduleDiffSummary as kn, rerereRemaining as ko, NotesTree as kr, quoteTwo as ks, wrapText as kt, RefUpdateStatus as l, readIndex as la, acceptedPromisorRemotes as lc, pathspecErrors as li, firstInvalidPath as ll, WorktreeListCommand as ln, trackableStart as lo, PathspecAttributes as lr, displayWidth$1 as ls, whitespaceRuleError as lt, hostEnvironmentOf as lu, formatAnnotate as m, subjectOf$2 as ma, readMailmapFile as mc, treeEntryInteresting as mi, HookSession as ml, refuseIfCheckedOut as mn, looksLikePathspec as mo, isFullHexObjectId as mr, formatNoIndexDiff as ms, gitConfigColorBool as mt, withoutCrud as mu, RebaseAction as n, conflictsComment as na, LAZY_FETCH_DISABLED_WARNING as nc, latin1Bytes as ni, worktreeDiffers as nl, ResetMode as nn, autoSetupRebase as no, remergeObjectsView as nr, blobSide as ns, installTextconvRunner as nt, DEFAULT_IDENT as nu, getFailedUpdates as o, indexChangesFromTree as oa, promisorOf as oc, parsePathspec as oi, planTreeRestore as ol, StashListCommand as on, installTracking as oo, MergeBaseGraph as or, countLines as os, externalDiffProgramOf as ot, authorIdentOf as ou, BlameColorError as p, storeFlatTreeOver as pa, readMailmapBlob as pc, psEqual as pi, markIndexUpdate as pl, parseExpiry as pn, checkFilename as po, canonicalObjectId as pr, formatNameStatus as ps, gitConfigBool as pt, resolveIdentDate as pu, formatTrackingInfo as q, signTagCompat as qa, findInTheWay as qc, commitCleanupMode as qi, AutoCommentCharRemovedError as ql, trustRank as qn, strerror as qo, parseTrailerIfMissing as qr, parseWsErrorHighlight as qs, ResetCommand as qt, RebaseStatus as r, firstPlainError as ra, createPromisorFetcher as rc, latin1String as ri, worktreeModified as rl, PathspecFile as rn, disableHint as ro, mergeBaseTree as rr, computeDiffstat as rs, textconvRunnerOf as rt, IdentityUnknownError as ru, isPushSuccessful as s, plainUnpackError as sa, promisorRemotes as sc, parsePathspecItem as si, restoreCaseOptions as sl, LogCommand as sn, planTracking as so, commitsBaseSource as sr, diffDriverOf as ss, DEFAULT_DECORATION_COLORS as st, committerIdentOf as su, RevertStatus as t, OperationState as ta, updateHeadExpecting as tc, globalPathspecMagic as ti, untrackedUnder as tl, ListBranchMode as tn, applyRefspecs as to, RemergeTreeCommand as tr, blobIdOf as ts, revisionMergeBases as tt, mergeVerbosityOf as tu, getSuccessfulUpdates as u, refsWatched as ua, promisorRemoteReplyOf as uc, pathspecItemBytes as ui, treePathRefusal as ul, shortenUnambiguousRef as un, uniqueTrackingName as uo, PatchIds as ur, driverOf as us, CONFIG_VALUE_TYPES as ut, identConfigOf as uu, AddCommand as v, writeIndexAsTree as va, InvalidInitialBranchError as vc, DateModeError as vi, configuredHooks as vl, useRelativePaths as vn, verifyNonFilename as vo, copyNotesForAmend as vr, formatShortstat as vs, expandStringArg as vt, parseGitDate as vu, pathPatchMode as w, orderRank as wa, checkDefaultObjectStorage as wc, graphColumnColors as wi, hookRunnerOf as wl, SubmoduleWalkError as wn, rerereClear as wo, finishCopyNotesForRewrite as wr, utf8$1 as ws, matchBoolArg as wt, sparseIndexAsRead as x, decorateFullRefs as xa, UnknownObjectStorageFormatError as xc, showDate as xi, gitFileOf as xl, worktreeUsingBranch as xn, unknownRevisionMessage as xo, defaultNotesRef as xr, noIndexPair as xs, humanDate as xt, RemoteConfigStore as xu, SPARSE_INDEX_EXPANDED_HINT as y, StashApplyStatus as ya, MissingDefaultBranchValueError as yc, hostZoneName as yi, gitCommitAfterHooks as yl, usesBranch as yn, handleRevisionArg as yo, copyNotesForRebase as yr, formatStat as ys, formatCommitPretty as yt, deleteRefs as yu, cutLine as z, SIGNING_FAILED_LINES as za, readSparseCheckoutPatterns as zc, ContentMergeStrategy as zi, createIdAbbreviator as zl, parseGpgOutput as zn, DEFAULT_RENAME_LIMIT as zo, reencodedCommitParts as zr, MovedLineBuffer as zs, saveAutostash as zt };