@statewalker/vcs-commands 0.13.0 → 0.14.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.
- package/dist/commands/archive/archive-command.d.ts +6 -2
- package/dist/commands/archive/archive-command.d.ts.map +1 -1
- package/dist/commands/archive/remote-archive-command.d.ts +23 -1
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -1
- package/dist/commands/archive/upload-archive-writer.d.ts +11 -5
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-format.d.ts +6 -1
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-uri-host.d.ts +12 -1
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-uri.d.ts +7 -1
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-verify.d.ts +4 -1
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -1
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -1
- package/dist/commands/check-ignore-command.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +15 -0
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +10 -1
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/default-branch.d.ts +17 -3
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +2 -1
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-object-checks.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +3 -3
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/index.js +6 -6
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/local-transport.d.ts +11 -1
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +10 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -1
- package/dist/commands/merge-command.d.ts +11 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-support.d.ts +19 -2
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/plumbing-input.d.ts.map +1 -1
- package/dist/commands/promisor-remote-reply.d.ts +31 -4
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -1
- package/dist/commands/promisor-remote.d.ts +8 -1
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/index.d.ts +1 -0
- package/dist/commands/ref-filter/index.d.ts.map +1 -1
- package/dist/commands/ref-filter/peel-limit.d.ts +8 -0
- package/dist/commands/ref-filter/peel-limit.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -1
- package/dist/commands/ref-filter/ref-format.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +4 -3
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/signing.d.ts +29 -2
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/split-cmdline.d.ts +6 -0
- package/dist/commands/split-cmdline.d.ts.map +1 -0
- package/dist/{commands-CPceUCP2.js → commands-C9M78Chn.js} +1186 -1036
- package/dist/errors/commit-errors.d.ts +17 -1
- package/dist/errors/commit-errors.d.ts.map +1 -1
- package/dist/errors/index.js +18 -3
- package/dist/{fsck-tbrPZX2q.js → fsck-C4US3l0B.js} +2 -2
- package/dist/index.js +7 -7
- package/dist/{maintenance-run-command-UiSIaeP8.js → maintenance-run-command-CoJFKr2p.js} +84 -32
- package/dist/{remote-transport-C0OSJtor.js → remote-transport-C43eykfK.js} +51 -16
- package/dist/results/index.js +1 -1
- package/dist/{results-CkS1p1CH.js → results-B0CWLCAp.js} +371 -53
- package/dist/transport-command.d.ts +3 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +21 -13
- package/src/commands/archive/archive-command.ts +7 -3
- package/src/commands/archive/remote-archive-command.ts +37 -3
- package/src/commands/archive/upload-archive-writer.ts +34 -22
- package/src/commands/bundle/bundle-format.ts +10 -2
- package/src/commands/bundle/bundle-uri-host.ts +71 -11
- package/src/commands/bundle/bundle-uri.ts +11 -4
- package/src/commands/bundle/bundle-verify.ts +4 -1
- package/src/commands/cat-file/cat-file-command.ts +1 -33
- package/src/commands/check-ignore-command.ts +60 -15
- package/src/commands/clone-command.ts +89 -11
- package/src/commands/commit-command.ts +42 -7
- package/src/commands/default-branch.ts +19 -5
- package/src/commands/fetch-command.ts +13 -2
- package/src/commands/fsck/fsck-object-checks.ts +3 -1
- package/src/commands/git-hooks.ts +11 -5
- package/src/commands/init-command.ts +24 -4
- package/src/commands/local-transport.ts +53 -9
- package/src/commands/ls-tree-command.ts +20 -12
- package/src/commands/merge-command.ts +32 -8
- package/src/commands/merge-support.ts +42 -4
- package/src/commands/plumbing-input.ts +3 -1
- package/src/commands/promisor-remote-reply.ts +338 -56
- package/src/commands/promisor-remote.ts +25 -3
- package/src/commands/push-command.ts +5 -1
- package/src/commands/read-tree-command.ts +2 -2
- package/src/commands/ref-filter/index.ts +1 -0
- package/src/commands/ref-filter/peel-limit.ts +7 -0
- package/src/commands/ref-filter/ref-filter.ts +9 -3
- package/src/commands/ref-filter/ref-format.ts +2 -1
- package/src/commands/serve-repository.ts +8 -3
- package/src/commands/signing.ts +93 -10
- package/src/commands/split-cmdline.ts +32 -0
- package/src/errors/commit-errors.ts +24 -2
- package/src/transport-command.ts +31 -1
|
@@ -4,7 +4,7 @@ import { compareGitPaths, decodeGitPath, encodeGitPath, foldAsciiCase, gitCharWi
|
|
|
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
6
|
import { duplexOverPort } from "@statewalker/webrun-rpc";
|
|
7
|
-
import { joinPath as joinPath$1, sharedRepositoryOf, withSharedPerm } from "@statewalker/vcs-utils/files";
|
|
7
|
+
import { joinPath as joinPath$1, sharedRepositoryOf, withReadOnlyObjectFiles, withSharedPerm } from "@statewalker/vcs-utils/files";
|
|
8
8
|
import { SHA1_OBJECT_FORMAT as SHA1_OBJECT_FORMAT$1, bytesToHex as bytesToHex$1, sha1Of } from "@statewalker/vcs-utils/hash";
|
|
9
9
|
import { objectStorageFormatByUri, readProtectedConfig } from "@statewalker/vcs-store-files";
|
|
10
10
|
import { FetchCheckError, anonymizeUrl, createDefaultTransports, createRepositoryFacade, encodePromisorRemoteNames, fetchPromisedObjects, matchDestination, matchSource, parsePromisorRemoteInfo, parseRefSpec, unpackLimitOf } from "@statewalker/vcs-transport";
|
|
@@ -2652,9 +2652,9 @@ var HookSession = class HookSession {
|
|
|
2652
2652
|
};
|
|
2653
2653
|
}
|
|
2654
2654
|
/**
|
|
2655
|
-
* The repository's FilesApi for writes in its git directories
|
|
2656
|
-
*
|
|
2657
|
-
*
|
|
2655
|
+
* The repository's FilesApi for writes in its git directories, wrapped as the files
|
|
2656
|
+
* backend's own FilesApi is: under `core.sharedRepository` what is created there gets git's
|
|
2657
|
+
* modes (`adjust_shared_perm`), otherwise the object files git keeps read-only are 0444.
|
|
2658
2658
|
*/
|
|
2659
2659
|
async repositoryFiles(layout) {
|
|
2660
2660
|
let shared = 0;
|
|
@@ -2663,8 +2663,8 @@ var HookSession = class HookSession {
|
|
|
2663
2663
|
} catch {
|
|
2664
2664
|
shared = 0;
|
|
2665
2665
|
}
|
|
2666
|
-
if (!shared) return layout.files;
|
|
2667
2666
|
const common = await commonDirOf(layout.files, layout.gitDir);
|
|
2667
|
+
if (!shared) return withReadOnlyObjectFiles(layout.files, joinFilesPath(common, "objects"));
|
|
2668
2668
|
return withSharedPerm(layout.files, () => shared, common);
|
|
2669
2669
|
}
|
|
2670
2670
|
/**
|
|
@@ -4993,8 +4993,9 @@ function indexHostOf(workingCopy, staging, trees) {
|
|
|
4993
4993
|
//#region src/commands/default-branch.ts
|
|
4994
4994
|
/**
|
|
4995
4995
|
* The initial branch of a new repository, as git's `repo_default_branch_name` (refs.c) picks
|
|
4996
|
-
* it: `init.defaultBranch` from the configuration
|
|
4997
|
-
*
|
|
4996
|
+
* it: `init.defaultBranch` from the configuration the new repository sees (system, global, its
|
|
4997
|
+
* own config with what a template brought in, the command line; `includeIf "gitdir:..."`
|
|
4998
|
+
* matched against the new repository's git directory), else `master`, or `main` in a git built with `WITH_BREAKING_CHANGES`
|
|
4998
4999
|
* (`GitHostEnvironment.breakingChanges`, git 3.0). With no name configured, git explains the
|
|
4999
5000
|
* default in an `advice.defaultBranchName` hint, which {@link DefaultBranch.hint} holds.
|
|
5000
5001
|
*
|
|
@@ -5045,14 +5046,18 @@ function isValidBranchName$1(name) {
|
|
|
5045
5046
|
return name !== "" && isValidRefName(`refs/heads/${name}`);
|
|
5046
5047
|
}
|
|
5047
5048
|
/**
|
|
5048
|
-
* The initial branch of a repository created now
|
|
5049
|
-
*
|
|
5049
|
+
* The initial branch of a repository created now, from `config` (the new repository's, see
|
|
5050
|
+
* {@link NewRepositoryConfig}); without one, from the protected configuration (system,
|
|
5051
|
+
* global, command line, `gitdir:` conditions false). Without either, nothing is configured.
|
|
5050
5052
|
*
|
|
5051
5053
|
* @throws InvalidDefaultBranchError when `init.defaultBranch` names no valid branch (empty too)
|
|
5052
5054
|
* @throws MissingDefaultBranchValueError when `init.defaultBranch` has no value
|
|
5053
5055
|
*/
|
|
5054
|
-
async function defaultInitialBranch(environment) {
|
|
5055
|
-
const config =
|
|
5056
|
+
async function defaultInitialBranch(environment, repositoryConfig) {
|
|
5057
|
+
const config = repositoryConfig ? repositoryConfig.listWithOrigin().map((e) => ({
|
|
5058
|
+
...e,
|
|
5059
|
+
value: e.text
|
|
5060
|
+
})) : await readProtectedConfig(environment);
|
|
5056
5061
|
const last = (key) => config.filter((e) => e.key === key).at(-1);
|
|
5057
5062
|
const configured = last("init.defaultbranch");
|
|
5058
5063
|
if (configured && configured.value === void 0) throw new MissingDefaultBranchValueError(configured.file, configured.line);
|
|
@@ -5926,8 +5931,13 @@ function int(key, value) {
|
|
|
5926
5931
|
* `partialCloneFilter` and `token` of a remote it already has), and which remotes its lazy
|
|
5927
5932
|
* fetches then try first ({@link acceptedPromisorRemotes}).
|
|
5928
5933
|
*
|
|
5929
|
-
*
|
|
5930
|
-
*
|
|
5934
|
+
* `promisor.acceptFromServerUrl` (git 2.56) is consulted first: an advertised URL matching one
|
|
5935
|
+
* of its globs (`[<name>=]<url pattern>`, urlmatch.c's normalization, `*` within the host or
|
|
5936
|
+
* the path) is accepted whatever `acceptFromServer` says, an unknown remote being created as
|
|
5937
|
+
* `remote.<name>.url`/`promisor`/`advertisedAs` (the pattern's name, else
|
|
5938
|
+
* `promisor-auto-<sanitized url>`, `-<n>` added while another URL holds the name). The filters
|
|
5939
|
+
* the accepted remotes advertised make `--filter=auto` (git 2.54,
|
|
5940
|
+
* {@link promisorAutoFilter}).
|
|
5931
5941
|
*
|
|
5932
5942
|
* @example
|
|
5933
5943
|
* ```ts
|
|
@@ -5940,6 +5950,8 @@ function int(key, value) {
|
|
|
5940
5950
|
/** The optional fields git knows (`known_fields`), lower-cased. */
|
|
5941
5951
|
const KNOWN_FIELDS = /* @__PURE__ */ new Map([["partialclonefilter", "partialCloneFilter"], ["token", "token"]]);
|
|
5942
5952
|
const accepted = /* @__PURE__ */ new WeakMap();
|
|
5953
|
+
/** The filter each accepted remote advertised (git's `promisor_remote.advertised_filter`). */
|
|
5954
|
+
const advertisedFilters = /* @__PURE__ */ new WeakMap();
|
|
5943
5955
|
/**
|
|
5944
5956
|
* The promisor remotes a server's `promisor-remote` advertisement made this repository
|
|
5945
5957
|
* accept (git's `promisor_remote.accepted`, kept for the process): its lazy fetches try them
|
|
@@ -5948,6 +5960,17 @@ const accepted = /* @__PURE__ */ new WeakMap();
|
|
|
5948
5960
|
function acceptedPromisorRemotes(workingCopy) {
|
|
5949
5961
|
return accepted.get(keyOf(workingCopy)) ?? /* @__PURE__ */ new Set();
|
|
5950
5962
|
}
|
|
5963
|
+
/**
|
|
5964
|
+
* Forgets what earlier `promisor-remote` answers accepted for this repository, as each git
|
|
5965
|
+
* process starts with none (`promisor_remote.accepted`, `advertised_filter`): a fetch or clone
|
|
5966
|
+
* calls it before it connects, so `--filter=auto` and the lazy fetches' order follow only the
|
|
5967
|
+
* server it talks to now.
|
|
5968
|
+
*/
|
|
5969
|
+
function resetPromisorAcceptance(workingCopy) {
|
|
5970
|
+
const key = keyOf(workingCopy);
|
|
5971
|
+
accepted.delete(key);
|
|
5972
|
+
advertisedFilters.delete(key);
|
|
5973
|
+
}
|
|
5951
5974
|
function keyOf(workingCopy) {
|
|
5952
5975
|
try {
|
|
5953
5976
|
return workingCopy.history?.objects ?? workingCopy;
|
|
@@ -5960,8 +5983,12 @@ function keyOf(workingCopy) {
|
|
|
5960
5983
|
* `fetchFromConnection` (`FetchClientOptions.promisorRemote`). `stderr` gets git's lines
|
|
5961
5984
|
* (warnings, `Storing new filter from server ...`), each without its newline. Each call reads
|
|
5962
5985
|
* the configuration afresh: a stored field is not stored (nor told) again.
|
|
5986
|
+
*
|
|
5987
|
+
* `remember: false` answers as a child process of git would (a lazy fetch's `git fetch`): its
|
|
5988
|
+
* acceptance changes the configuration it writes, not the remotes this repository's lazy
|
|
5989
|
+
* fetches try first nor `--filter=auto`.
|
|
5963
5990
|
*/
|
|
5964
|
-
function promisorRemoteReplyOf(workingCopy, stderr) {
|
|
5991
|
+
function promisorRemoteReplyOf(workingCopy, stderr, options = {}) {
|
|
5965
5992
|
const warnedFields = /* @__PURE__ */ new Set();
|
|
5966
5993
|
const fieldsOf = (store, key) => {
|
|
5967
5994
|
const value = store.value(key);
|
|
@@ -5985,34 +6012,76 @@ function promisorRemoteReplyOf(workingCopy, stderr) {
|
|
|
5985
6012
|
return async (info) => {
|
|
5986
6013
|
const store = RemoteConfigStore.from(workingCopy);
|
|
5987
6014
|
const policy = acceptPolicyOf(store, stderr);
|
|
5988
|
-
|
|
6015
|
+
const acceptUrls = loadAcceptFromServerUrl(store, stderr);
|
|
6016
|
+
if (policy === "none" && acceptUrls.length === 0) return void 0;
|
|
5989
6017
|
const { remotes, warnings } = parsePromisorRemoteInfo(info);
|
|
5990
6018
|
for (const w of warnings) stderr(`warning: ${w}`);
|
|
5991
6019
|
const checked = fieldsOf(store, "promisor.checkFields");
|
|
5992
6020
|
const local = configuredPromisors(store, checked);
|
|
5993
|
-
const accepting = [];
|
|
5994
|
-
for (const advertised of remotes) if (shouldAccept(policy, advertised, local, checked, stderr)) accepting.push(advertised);
|
|
5995
|
-
if (accepting.length === 0) return void 0;
|
|
5996
6021
|
const storedFields = fieldsOf(store, "promisor.storeFields");
|
|
6022
|
+
const current = configuredPromisors(store, storedFields);
|
|
6023
|
+
const accepting = [];
|
|
5997
6024
|
let changed = false;
|
|
5998
|
-
|
|
5999
|
-
const
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
}
|
|
6025
|
+
for (const advertised of remotes) {
|
|
6026
|
+
const decision = shouldAccept(policy, advertised, local, checked, acceptUrls, store, stderr);
|
|
6027
|
+
if (decision.created) changed = true;
|
|
6028
|
+
if (decision.localName === void 0) continue;
|
|
6029
|
+
const accepted = {
|
|
6030
|
+
...advertised,
|
|
6031
|
+
localName: decision.localName
|
|
6032
|
+
};
|
|
6033
|
+
accepting.push(accepted);
|
|
6034
|
+
const mine = current.find((p) => p.name === accepted.localName);
|
|
6035
|
+
if (!mine || storedFields.length === 0) continue;
|
|
6036
|
+
if (storedFields.includes("partialCloneFilter") && advertised.filter !== void 0 && validFilter(advertised.filter, accepted.localName, stderr)) changed = storeField(store, accepted.localName, "filter", "partialCloneFilter", advertised.filter, mine.filter, stderr) || changed;
|
|
6037
|
+
if (storedFields.includes("token") && advertised.token !== void 0 && validToken(advertised.token, accepted.localName, stderr)) changed = storeField(store, accepted.localName, "token", "token", advertised.token, mine.token, stderr) || changed;
|
|
6006
6038
|
}
|
|
6007
6039
|
if (changed) await store.save();
|
|
6040
|
+
if (accepting.length === 0) return void 0;
|
|
6041
|
+
if (options.remember === false) return encodePromisorRemoteNames(accepting.map((r) => r.name));
|
|
6008
6042
|
const promisors = new Set(promisorRemotes(RemoteConfigStore.from(workingCopy)).map((r) => r.name));
|
|
6009
6043
|
const key = keyOf(workingCopy);
|
|
6010
6044
|
const set = accepted.get(key) ?? /* @__PURE__ */ new Set();
|
|
6011
|
-
|
|
6045
|
+
const filters = advertisedFilters.get(key) ?? /* @__PURE__ */ new Map();
|
|
6046
|
+
for (const r of accepting) {
|
|
6047
|
+
if (!promisors.has(r.localName)) continue;
|
|
6048
|
+
set.add(r.localName);
|
|
6049
|
+
if (r.filter !== void 0) filters.set(r.localName, r.filter);
|
|
6050
|
+
}
|
|
6012
6051
|
accepted.set(key, set);
|
|
6052
|
+
advertisedFilters.set(key, filters);
|
|
6013
6053
|
return encodePromisorRemoteNames(accepting.map((r) => r.name));
|
|
6014
6054
|
};
|
|
6015
6055
|
}
|
|
6056
|
+
/**
|
|
6057
|
+
* git's `promisor_remote_construct_filter`: the filter `--filter=auto` stands for, from the
|
|
6058
|
+
* promisor remotes (in config order) a server's `promisor-remote` made this repository accept
|
|
6059
|
+
* that advertised one, expanded (`blob:limit=5k` as `blob:limit=5120`); undefined when none
|
|
6060
|
+
* did. An invalid one is skipped with git's warning.
|
|
6061
|
+
*
|
|
6062
|
+
* @throws Error where git hits its `BUG()`: two accepted remotes advertising valid filters
|
|
6063
|
+
*/
|
|
6064
|
+
function promisorAutoFilter(workingCopy, stderr) {
|
|
6065
|
+
const key = keyOf(workingCopy);
|
|
6066
|
+
const acceptedNames = accepted.get(key);
|
|
6067
|
+
const filters = advertisedFilters.get(key);
|
|
6068
|
+
if (!acceptedNames || !filters) return void 0;
|
|
6069
|
+
let result;
|
|
6070
|
+
for (const { name } of promisorRemotes(RemoteConfigStore.from(workingCopy))) {
|
|
6071
|
+
const filter = filters.get(name);
|
|
6072
|
+
if (!acceptedNames.has(name) || filter === void 0) continue;
|
|
6073
|
+
let parsed;
|
|
6074
|
+
try {
|
|
6075
|
+
parsed = parseObjectFilter(filter);
|
|
6076
|
+
} catch (error) {
|
|
6077
|
+
stderr(`warning: promisor remote '${name}' advertised invalid filter '${filter}': ${error instanceof ObjectFilterError ? error.message : String(error)}`);
|
|
6078
|
+
continue;
|
|
6079
|
+
}
|
|
6080
|
+
if (result !== void 0) throw new Error("BUG: filter_options already populated");
|
|
6081
|
+
result = parsed.choice === "blob:limit" ? `blob:limit=${parsed.limit}` : filter;
|
|
6082
|
+
}
|
|
6083
|
+
return result;
|
|
6084
|
+
}
|
|
6016
6085
|
/** accept_from_server: the last `promisor.acceptFromServer`, case-insensitive. */
|
|
6017
6086
|
function acceptPolicyOf(store, stderr) {
|
|
6018
6087
|
const value = store.value("promisor.acceptfromserver");
|
|
@@ -6046,17 +6115,155 @@ function configuredPromisors(store, fields) {
|
|
|
6046
6115
|
}
|
|
6047
6116
|
return out;
|
|
6048
6117
|
}
|
|
6049
|
-
/** should_accept_remote
|
|
6050
|
-
function shouldAccept(policy, advertised, local, checked, stderr) {
|
|
6118
|
+
/** should_accept_remote: the name the advertised remote is accepted under, if it is. */
|
|
6119
|
+
function shouldAccept(policy, advertised, local, checked, acceptUrls, store, stderr) {
|
|
6120
|
+
const yes = (ok) => ok ? { localName: advertised.name } : {};
|
|
6051
6121
|
const mine = local.find((p) => p.name === advertised.name);
|
|
6052
|
-
if (!mine)
|
|
6053
|
-
|
|
6054
|
-
|
|
6122
|
+
if (!mine) {
|
|
6123
|
+
const allowed = urlMatchesAcceptList(acceptUrls, advertised.url);
|
|
6124
|
+
if (allowed) {
|
|
6125
|
+
const name = handleMatchingAllowedUrl(store, allowed.remoteName, advertised, stderr);
|
|
6126
|
+
if (name !== void 0) return {
|
|
6127
|
+
localName: name,
|
|
6128
|
+
created: true
|
|
6129
|
+
};
|
|
6130
|
+
}
|
|
6131
|
+
return yes(policy === "all" && allFieldsMatch(advertised, local, void 0, checked));
|
|
6132
|
+
}
|
|
6133
|
+
if (mine.url === advertised.url && urlMatchesAcceptList(acceptUrls, advertised.url)) return yes(allFieldsMatch(advertised, local, mine, checked));
|
|
6134
|
+
if (policy === "all") return yes(allFieldsMatch(advertised, local, void 0, checked));
|
|
6135
|
+
if (policy === "knownName") return yes(allFieldsMatch(advertised, local, mine, checked));
|
|
6055
6136
|
if (mine.url !== advertised.url) {
|
|
6056
6137
|
stderr(`warning: known remote named '${advertised.name}' but with URL '${mine.url}' instead of '${advertised.url}', ignoring this remote`);
|
|
6057
|
-
return
|
|
6138
|
+
return {};
|
|
6139
|
+
}
|
|
6140
|
+
return yes(policy === "knownUrl" && allFieldsMatch(advertised, local, mine, checked));
|
|
6141
|
+
}
|
|
6142
|
+
/** git's iscntrl over the bytes of a string (C locale). */
|
|
6143
|
+
function hasControlChar(text) {
|
|
6144
|
+
return /[\x00-\x1f\x7f]/.test(text);
|
|
6145
|
+
}
|
|
6146
|
+
/** valid_remote_name: `refs/remotes/<name>/test` a valid ref name (in a valid refspec). */
|
|
6147
|
+
function validRemoteName(name) {
|
|
6148
|
+
return name.length > 0 && isValidRefName(`refs/remotes/${name}/test`);
|
|
6149
|
+
}
|
|
6150
|
+
/** load_accept_from_server_url and valid_accept_url: the valid entries, in config order. */
|
|
6151
|
+
function loadAcceptFromServerUrl(store, stderr) {
|
|
6152
|
+
const out = [];
|
|
6153
|
+
for (const entry of store.values("promisor.acceptfromserverurl")) {
|
|
6154
|
+
const eq = entry.indexOf("=");
|
|
6155
|
+
let remoteName;
|
|
6156
|
+
let pattern = entry;
|
|
6157
|
+
if (eq >= 0) {
|
|
6158
|
+
remoteName = entry.slice(0, eq);
|
|
6159
|
+
if (!validRemoteName(remoteName)) {
|
|
6160
|
+
stderr(`warning: invalid remote name '${remoteName}' before '=' sign in '${entry}' from promisor.acceptFromServerUrl config`);
|
|
6161
|
+
continue;
|
|
6162
|
+
}
|
|
6163
|
+
pattern = entry.slice(eq + 1);
|
|
6164
|
+
}
|
|
6165
|
+
const normalized = hasControlChar(pattern) ? void 0 : normalizeUrl(pattern, { allowGlobs: true });
|
|
6166
|
+
if (normalized === void 0 || isUrlNormalizeError(normalized)) {
|
|
6167
|
+
stderr(`warning: invalid url pattern '${pattern}' in '${entry}' from promisor.acceptFromServerUrl config`);
|
|
6168
|
+
continue;
|
|
6169
|
+
}
|
|
6170
|
+
out.push({
|
|
6171
|
+
...remoteName !== void 0 ? { remoteName } : {},
|
|
6172
|
+
pattern: normalized
|
|
6173
|
+
});
|
|
6174
|
+
}
|
|
6175
|
+
return out;
|
|
6176
|
+
}
|
|
6177
|
+
/** A byte string (one character per byte, as `normalizeUrl` gives) as its bytes. */
|
|
6178
|
+
function bytesOf$2(text) {
|
|
6179
|
+
const out = new Uint8Array(text.length);
|
|
6180
|
+
for (let i = 0; i < text.length; i++) out[i] = text.charCodeAt(i) & 255;
|
|
6181
|
+
return out;
|
|
6182
|
+
}
|
|
6183
|
+
/** match_one_url: scheme and port exactly, host and path each through wildmatch. */
|
|
6184
|
+
function matchOneUrl(p, u) {
|
|
6185
|
+
if (p.schemeLength !== u.schemeLength || p.url.slice(0, p.schemeLength) !== u.url.slice(0, u.schemeLength)) return false;
|
|
6186
|
+
const part = (n, offset, length) => n.url.slice(offset, offset + length);
|
|
6187
|
+
if (p.portLength !== u.portLength || part(p, p.portOffset, p.portLength) !== part(u, u.portOffset, u.portLength)) return false;
|
|
6188
|
+
return wildmatchBytes(bytesOf$2(part(p, p.hostOffset, p.hostLength)), bytesOf$2(part(u, u.hostOffset, u.hostLength))) && wildmatchBytes(bytesOf$2(part(p, p.pathOffset, p.pathLength)), bytesOf$2(part(u, u.pathOffset, u.pathLength)));
|
|
6189
|
+
}
|
|
6190
|
+
/** url_matches_accept_list: the first entry matching the (normalized) URL. */
|
|
6191
|
+
function urlMatchesAcceptList(acceptUrls, url) {
|
|
6192
|
+
if (acceptUrls.length === 0) return void 0;
|
|
6193
|
+
const normalized = normalizeUrl(url);
|
|
6194
|
+
if (isUrlNormalizeError(normalized)) return void 0;
|
|
6195
|
+
return acceptUrls.find((a) => matchOneUrl(a.pattern, normalized));
|
|
6196
|
+
}
|
|
6197
|
+
/** isalnum in the C locale */
|
|
6198
|
+
const isAlnum$4 = (c) => /^[A-Za-z0-9]$/.test(c);
|
|
6199
|
+
/** promisor_remote_name_from_url and sanitize_remote_name. */
|
|
6200
|
+
function promisorRemoteNameFromUrl(url, stderr) {
|
|
6201
|
+
const n = normalizeUrl(url);
|
|
6202
|
+
if (isUrlNormalizeError(n)) {
|
|
6203
|
+
stderr(`warning: couldn't normalize advertised url '${url}', ignoring this remote`);
|
|
6204
|
+
return;
|
|
6205
|
+
}
|
|
6206
|
+
let buf = "";
|
|
6207
|
+
if (n.hostLength) buf += `${n.url.slice(n.hostOffset, n.hostOffset + n.hostLength)}-`;
|
|
6208
|
+
if (n.portLength) buf += `${n.url.slice(n.portOffset, n.portOffset + n.portLength)}-`;
|
|
6209
|
+
if (n.pathLength) {
|
|
6210
|
+
let path = n.url.slice(n.pathOffset, n.pathOffset + n.pathLength);
|
|
6211
|
+
path = path.replace(/\/+$/, "");
|
|
6212
|
+
if (path.endsWith(".git")) path = path.slice(0, -4);
|
|
6213
|
+
buf += path;
|
|
6214
|
+
}
|
|
6215
|
+
let out = "";
|
|
6216
|
+
let prev = "-";
|
|
6217
|
+
for (const ch of buf) {
|
|
6218
|
+
const c = isAlnum$4(ch) ? ch : "-";
|
|
6219
|
+
if (prev === "-" && c === "-") continue;
|
|
6220
|
+
out += c;
|
|
6221
|
+
prev = c;
|
|
6222
|
+
}
|
|
6223
|
+
if (out.endsWith("-")) out = out.slice(0, -1);
|
|
6224
|
+
if (out === "") {
|
|
6225
|
+
stderr(`warning: couldn't generate a valid remote name from advertised url '${url}', ignoring this remote`);
|
|
6226
|
+
return;
|
|
6227
|
+
}
|
|
6228
|
+
out = `promisor-auto-${out}`;
|
|
6229
|
+
if (!validRemoteName(out)) {
|
|
6230
|
+
stderr(`warning: generated remote name '${out}' from advertised url '${url}' is invalid, ignoring this remote`);
|
|
6231
|
+
return;
|
|
6058
6232
|
}
|
|
6059
|
-
return
|
|
6233
|
+
return out;
|
|
6234
|
+
}
|
|
6235
|
+
const MAX_REMOTES_WITH_SIMILAR_NAMES = 20;
|
|
6236
|
+
/**
|
|
6237
|
+
* handle_matching_allowed_url and configure_auto_promisor_remote: the name the remote gets
|
|
6238
|
+
* (a free one, or one already holding the URL, reused), written to the configuration.
|
|
6239
|
+
*/
|
|
6240
|
+
function handleMatchingAllowedUrl(store, allowedName, advertised, stderr) {
|
|
6241
|
+
const basename = allowedName ?? promisorRemoteNameFromUrl(advertised.url, stderr);
|
|
6242
|
+
if (basename === void 0) return void 0;
|
|
6243
|
+
let name = basename;
|
|
6244
|
+
let reuse = false;
|
|
6245
|
+
let i = 0;
|
|
6246
|
+
while (i < MAX_REMOTES_WITH_SIMILAR_NAMES) {
|
|
6247
|
+
const existing = store.value(`remote.${name}.url`);
|
|
6248
|
+
if (existing === void 0) break;
|
|
6249
|
+
if (existing === advertised.url) {
|
|
6250
|
+
reuse = true;
|
|
6251
|
+
break;
|
|
6252
|
+
}
|
|
6253
|
+
i++;
|
|
6254
|
+
name = `${basename}-${i}`;
|
|
6255
|
+
}
|
|
6256
|
+
if (i >= MAX_REMOTES_WITH_SIMILAR_NAMES) {
|
|
6257
|
+
stderr(`warning: too many remotes accepted with name like '${basename}-X', ignoring this remote`);
|
|
6258
|
+
return;
|
|
6259
|
+
}
|
|
6260
|
+
if (!reuse) {
|
|
6261
|
+
stderr(`Auto-creating promisor remote '${name}' for URL '${advertised.url}'`);
|
|
6262
|
+
store.setValue(`remote.${name}.url`, advertised.url);
|
|
6263
|
+
}
|
|
6264
|
+
store.setValue(`remote.${name}.promisor`, "true");
|
|
6265
|
+
store.setValue(`remote.${name}.advertisedAs`, advertised.name);
|
|
6266
|
+
return name;
|
|
6060
6267
|
}
|
|
6061
6268
|
/** all_fields_match: every checked field advertised and equal to one remote's (or `mine`'s). */
|
|
6062
6269
|
function allFieldsMatch(advertised, local, mine, checked) {
|
|
@@ -6213,7 +6420,7 @@ function createPromisorFetcher(workingCopy, options = {}) {
|
|
|
6213
6420
|
const history = historyWithoutLazyFetch(workingCopy.history);
|
|
6214
6421
|
const compatibility = compatibilityOf();
|
|
6215
6422
|
const run = async () => {
|
|
6216
|
-
const { fetchFsckOf } = await import("./fsck-
|
|
6423
|
+
const { fetchFsckOf } = await import("./fsck-C4US3l0B.js").then((n) => n.t);
|
|
6217
6424
|
const environment = hostEnvironmentOf(workingCopy);
|
|
6218
6425
|
const fsckWarnings = [];
|
|
6219
6426
|
const unpackLimit = unpackLimitOf({ getAll: (key) => config.values(key) }, "fetch");
|
|
@@ -6227,13 +6434,23 @@ function createPromisorFetcher(workingCopy, options = {}) {
|
|
|
6227
6434
|
home: environment.home
|
|
6228
6435
|
} : {}
|
|
6229
6436
|
});
|
|
6230
|
-
const { prepareRemote, protocolVersionOf, withRemoteUploadPack } = await import("./remote-transport-
|
|
6437
|
+
const { prepareRemote, protocolVersionOf, withRemoteUploadPack } = await import("./remote-transport-C43eykfK.js").then((n) => n.s);
|
|
6231
6438
|
await withRemoteUploadPack(await prepareRemote(workingCopy, url, options.transports ?? createDefaultTransports()), {
|
|
6232
6439
|
...options.credentials ? { credentials: options.credentials } : {},
|
|
6233
6440
|
...options.headers ? { headers: options.headers } : {},
|
|
6234
6441
|
...options.timeout !== void 0 ? { timeout: options.timeout } : {},
|
|
6235
6442
|
protocolVersion: protocolVersionOf(config),
|
|
6236
|
-
httpSettings: (remoteUrl) =>
|
|
6443
|
+
httpSettings: (remoteUrl) => {
|
|
6444
|
+
const settings = httpClientSettingsOf(config, remoteUrl, environment, {
|
|
6445
|
+
compatibility,
|
|
6446
|
+
...options.warningCallback ? { onWarning: options.warningCallback } : {}
|
|
6447
|
+
});
|
|
6448
|
+
return options.warningCallback ? {
|
|
6449
|
+
...settings,
|
|
6450
|
+
onWarning: options.warningCallback
|
|
6451
|
+
} : settings;
|
|
6452
|
+
},
|
|
6453
|
+
...options.credentialHelper ? { credentialHelper: options.credentialHelper } : {}
|
|
6237
6454
|
}, async (connection) => {
|
|
6238
6455
|
try {
|
|
6239
6456
|
await fetchPromisedObjects(connection, {
|
|
@@ -6241,6 +6458,7 @@ function createPromisorFetcher(workingCopy, options = {}) {
|
|
|
6241
6458
|
ids,
|
|
6242
6459
|
filter: "blob:none",
|
|
6243
6460
|
url: anonymizeUrl(url),
|
|
6461
|
+
promisorRemote: promisorRemoteReplyOf(workingCopy, (line) => promisor()?.warnings.push(line), { remember: false }),
|
|
6244
6462
|
compatibility,
|
|
6245
6463
|
...fsck ? { fsckObjects: fsck } : {},
|
|
6246
6464
|
...unpackLimit !== void 0 ? { unpackLimit } : {}
|
|
@@ -14016,6 +14234,36 @@ async function safe(fn) {
|
|
|
14016
14234
|
}
|
|
14017
14235
|
}
|
|
14018
14236
|
//#endregion
|
|
14237
|
+
//#region src/commands/split-cmdline.ts
|
|
14238
|
+
/**
|
|
14239
|
+
* alias.c's split_cmdline: words split on whitespace, quotes removed, a backslash escaping
|
|
14240
|
+
* the next character outside single quotes; split_cmdline_strerror's text on an error.
|
|
14241
|
+
*/
|
|
14242
|
+
function splitCmdline(line) {
|
|
14243
|
+
const args = [];
|
|
14244
|
+
let current = "";
|
|
14245
|
+
let quoted = "";
|
|
14246
|
+
for (let i = 0; i < line.length; i++) {
|
|
14247
|
+
const c = line[i];
|
|
14248
|
+
if (!quoted && /[ \t\n\r]/.test(c)) {
|
|
14249
|
+
args.push(current);
|
|
14250
|
+
current = "";
|
|
14251
|
+
while (i + 1 < line.length && /[ \t\n\r]/.test(line[i + 1])) i++;
|
|
14252
|
+
} else if (!quoted && (c === "'" || c === "\"")) quoted = c;
|
|
14253
|
+
else if (c === quoted) quoted = "";
|
|
14254
|
+
else {
|
|
14255
|
+
if (c === "\\" && quoted !== "'") {
|
|
14256
|
+
i++;
|
|
14257
|
+
if (i >= line.length) return "cmdline ends with \\";
|
|
14258
|
+
}
|
|
14259
|
+
current += line[i];
|
|
14260
|
+
}
|
|
14261
|
+
}
|
|
14262
|
+
if (quoted) return "unclosed quote";
|
|
14263
|
+
args.push(current);
|
|
14264
|
+
return args;
|
|
14265
|
+
}
|
|
14266
|
+
//#endregion
|
|
14019
14267
|
//#region src/commands/signing.ts
|
|
14020
14268
|
/**
|
|
14021
14269
|
* Requests to sign (`commit -S`, `commit.gpgSign`, `tag -s`/`-u`, `tag.gpgSign`,
|
|
@@ -14385,33 +14633,72 @@ function sshPublicKeyBlob(text) {
|
|
|
14385
14633
|
const field = text.split("\n").find((l) => l.trim() !== "" && !l.startsWith("#"))?.trim().split(/\s+/)[1];
|
|
14386
14634
|
return field ? base64Bytes(field) : void 0;
|
|
14387
14635
|
}
|
|
14636
|
+
/** gpg-interface.c's `is_literal_ssh_key`: the key itself rather than a file naming it. */
|
|
14637
|
+
function isLiteralSshKey(key) {
|
|
14638
|
+
return key.startsWith("key::") || key.startsWith("ssh-");
|
|
14639
|
+
}
|
|
14640
|
+
/**
|
|
14641
|
+
* gpg-interface.c's `get_default_ssh_signing_key` (as `get_signing_key_id` runs it): the
|
|
14642
|
+
* first line of `command`'s output, newline kept, when it is a literal key. git goes on with
|
|
14643
|
+
* a NULL key when it is not and crashes in `get_ssh_key_fingerprint` (SIGSEGV) after its
|
|
14644
|
+
* warning: that is thrown with exit status 139.
|
|
14645
|
+
*/
|
|
14646
|
+
async function defaultSshSigningKey(command, sign, host) {
|
|
14647
|
+
const argv = splitCmdline(command);
|
|
14648
|
+
if (typeof argv === "string") throw new SigningFailedError(`fatal: malformed build-time gpg.ssh.defaultKeyCommand: ${argv}`, sign, 128);
|
|
14649
|
+
const [program = "", ...args] = argv;
|
|
14650
|
+
const messages = [];
|
|
14651
|
+
let ran;
|
|
14652
|
+
if (program === "") messages.push("error: cannot run : No such file or directory");
|
|
14653
|
+
else ran = await host?.runShellCommand("gpg.ssh.defaultKeyCommand", program, args);
|
|
14654
|
+
const stdout = ran?.stdout ?? "";
|
|
14655
|
+
const stderr = ran?.stderr ?? "";
|
|
14656
|
+
if (ran?.exitCode === 0) {
|
|
14657
|
+
const nl = stdout.indexOf("\n");
|
|
14658
|
+
const first = nl < 0 ? stdout : stdout.slice(0, nl + 1);
|
|
14659
|
+
if (first !== "" && isLiteralSshKey(first)) return first;
|
|
14660
|
+
messages.push(`warning: gpg.ssh.defaultKeyCommand succeeded but returned no keys: ${stderr} ${stdout}`);
|
|
14661
|
+
} else messages.push(`warning: gpg.ssh.defaultKeyCommand failed: ${stderr} ${stdout}`);
|
|
14662
|
+
throw new SigningFailedError(messages.join("\n"), sign, 139);
|
|
14663
|
+
}
|
|
14388
14664
|
/**
|
|
14389
14665
|
* gpg-interface.c's `get_signing_key_id()` for `sign` (`""`: the default key): the key of an
|
|
14390
14666
|
* openpgp or x509 signature (`user.signingKey`, else the committer as `Name <email>`), the
|
|
14391
14667
|
* SHA-256 fingerprint of an ssh key (`ssh-keygen -lf`'s `SHA256:...`, for a literal key, a
|
|
14392
|
-
* public key file or an OpenSSH private key file).
|
|
14668
|
+
* public key file or an OpenSSH private key file). Without a key, ssh's comes from
|
|
14669
|
+
* `gpg.ssh.defaultKeyCommand` (`get_default_ssh_signing_key`), run through `options.host`. A
|
|
14670
|
+
* key file is read as `ssh-keygen -lf <key>` reads it in the directory git runs in: a relative
|
|
14671
|
+
* path from the worktree top, `~/` not expanded (git passes the key as configured).
|
|
14393
14672
|
*
|
|
14394
14673
|
* @throws SigningFailedError as git dies when it cannot fingerprint an ssh key (`fatal: failed
|
|
14395
14674
|
* to get the ssh fingerprint for key '<key>'`), or has none
|
|
14396
14675
|
*/
|
|
14397
|
-
async function signingKeyIdOf(workingCopy, sign, committer) {
|
|
14676
|
+
async function signingKeyIdOf(workingCopy, sign, committer, options = {}) {
|
|
14398
14677
|
const config = signingConfigOf(workingCopy);
|
|
14399
|
-
|
|
14678
|
+
let key = sign !== "" ? sign : config.signingKey;
|
|
14400
14679
|
if (config.format !== "ssh") return key ?? `${committer.name} <${committer.email}>`;
|
|
14401
|
-
if (key === void 0)
|
|
14680
|
+
if (key === void 0) {
|
|
14681
|
+
if (config.defaultKeyCommand === void 0) throw new SigningFailedError("fatal: either user.signingkey or gpg.ssh.defaultKeyCommand needs to be configured", sign, 128);
|
|
14682
|
+
key = await defaultSshSigningKey(config.defaultKeyCommand, sign, options.host);
|
|
14683
|
+
}
|
|
14402
14684
|
let text;
|
|
14403
14685
|
if (key.startsWith("key::")) text = key.slice(5);
|
|
14404
14686
|
else if (key.startsWith("ssh-")) text = key;
|
|
14405
14687
|
else {
|
|
14406
14688
|
const environment = hostEnvironmentOf(workingCopy);
|
|
14407
|
-
|
|
14689
|
+
let path = key;
|
|
14690
|
+
if (!path.startsWith("/")) {
|
|
14691
|
+
const cwd = await options.host?.hostWorkingDirectory().catch(() => void 0);
|
|
14692
|
+
if (cwd !== void 0) path = `${cwd.replace(/\/+$/, "")}/${path}`;
|
|
14693
|
+
}
|
|
14408
14694
|
const bytes = await environment?.readFile(path).catch(() => void 0);
|
|
14409
14695
|
text = bytes ? new TextDecoder().decode(bytes) : void 0;
|
|
14410
14696
|
}
|
|
14411
14697
|
const blob = text === void 0 ? void 0 : sshPublicKeyBlob(text);
|
|
14412
|
-
if (!blob) throw new SigningFailedError(`fatal: failed to get the ssh fingerprint for key '${key}'`, sign, 128);
|
|
14698
|
+
if (!blob) throw new SigningFailedError(`fatal: failed to get the ssh fingerprint for key '${key}': Success`, sign, 128);
|
|
14413
14699
|
const digest = createSha256().update(blob).digest();
|
|
14414
|
-
|
|
14700
|
+
const fingerprint = `SHA256:${btoa(String.fromCharCode(...digest)).replace(/=+$/, "")}`;
|
|
14701
|
+
return options.compatibility === "2.43" ? `${fingerprint} ` : fingerprint;
|
|
14415
14702
|
}
|
|
14416
14703
|
//#endregion
|
|
14417
14704
|
//#region src/git-command.ts
|
|
@@ -17000,19 +17287,37 @@ let StashApplyStatus = /* @__PURE__ */ function(StashApplyStatus) {
|
|
|
17000
17287
|
* where it would overwrite local changes or untracked files, then the conflicts staged).
|
|
17001
17288
|
*/
|
|
17002
17289
|
const sameEntry$3 = (a, b) => a === void 0 || b === void 0 ? a === b : a.objectId === b.objectId && a.mode === b.mode;
|
|
17003
|
-
/**
|
|
17004
|
-
|
|
17290
|
+
/**
|
|
17291
|
+
* The blobs, links and gitlinks of a tree, by path (none for no tree).
|
|
17292
|
+
*
|
|
17293
|
+
* @param options.asIndex The entries as unpack-trees adds them to an index
|
|
17294
|
+
* (`add_index_entry`'s `OK_TO_REPLACE`): a file the directory of its name follows in the
|
|
17295
|
+
* same tree (a crafted tree holding both, which fsck calls `duplicateEntries`) is dropped
|
|
17296
|
+
* once a file of that directory is read, so the map never holds a file/directory clash
|
|
17297
|
+
* (webrun-vcs#247)
|
|
17298
|
+
*/
|
|
17299
|
+
async function flatTree(trees, treeId, options) {
|
|
17005
17300
|
const out = /* @__PURE__ */ new Map();
|
|
17006
17301
|
if (!treeId) return out;
|
|
17302
|
+
const asIndex = options?.asIndex === true;
|
|
17007
17303
|
const walk = async (id, prefix) => {
|
|
17304
|
+
let added = false;
|
|
17008
17305
|
for await (const entry of trees.loadTree(id)) {
|
|
17009
17306
|
const path = prefix ? `${prefix}/${entry.name}` : entry.name;
|
|
17010
|
-
if (entry.mode === FileMode.TREE)
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17307
|
+
if (entry.mode === FileMode.TREE) {
|
|
17308
|
+
if (await walk(entry.id, path)) {
|
|
17309
|
+
if (asIndex) out.delete(path);
|
|
17310
|
+
added = true;
|
|
17311
|
+
}
|
|
17312
|
+
} else {
|
|
17313
|
+
out.set(path, {
|
|
17314
|
+
objectId: entry.id,
|
|
17315
|
+
mode: entry.mode
|
|
17316
|
+
});
|
|
17317
|
+
added = true;
|
|
17318
|
+
}
|
|
17015
17319
|
}
|
|
17320
|
+
return added;
|
|
17016
17321
|
};
|
|
17017
17322
|
await walk(treeId, "");
|
|
17018
17323
|
return out;
|
|
@@ -17945,6 +18250,19 @@ function subjectOf$2(message) {
|
|
|
17945
18250
|
for (; i < lines.length && lines[i] !== ""; i++) subject.push(lines[i]);
|
|
17946
18251
|
return subject.join(" ");
|
|
17947
18252
|
}
|
|
18253
|
+
/**
|
|
18254
|
+
* MERGE_HEAD's entries as commits (git's `read_merge_heads` → `lookup_commit_reference`): a
|
|
18255
|
+
* merged annotated tag is written by its own id (`write_merge_heads`) and peeled when read;
|
|
18256
|
+
* an entry that peels to no commit is kept as written.
|
|
18257
|
+
*/
|
|
18258
|
+
async function peelMergeHeads(resolver, ids) {
|
|
18259
|
+
const out = [];
|
|
18260
|
+
for (const id of ids) {
|
|
18261
|
+
const peeled = await resolver.peelTags(id).catch(() => void 0);
|
|
18262
|
+
out.push(peeled?.type === "commit" ? peeled.id : id);
|
|
18263
|
+
}
|
|
18264
|
+
return out;
|
|
18265
|
+
}
|
|
17948
18266
|
//#endregion
|
|
17949
18267
|
//#region src/commands/message-cleanup.ts
|
|
17950
18268
|
/**
|
|
@@ -36170,7 +36488,7 @@ var SubmoduleUnpack = class SubmoduleUnpack {
|
|
|
36170
36488
|
}
|
|
36171
36489
|
async m() {
|
|
36172
36490
|
if (this.loadedMover) return this.loadedMover;
|
|
36173
|
-
this.moverLoad ??= import("./commands-
|
|
36491
|
+
this.moverLoad ??= import("./commands-C9M78Chn.js").then((n) => n.Vn).then((commands) => {
|
|
36174
36492
|
this.commands = commands;
|
|
36175
36493
|
this.loadedMover = new commands.SubmoduleHeadMover(this.workingCopy, this.superPrefix);
|
|
36176
36494
|
return this.loadedMover;
|
|
@@ -50269,4 +50587,4 @@ let RevertStatus = /* @__PURE__ */ function(RevertStatus) {
|
|
|
50269
50587
|
return RevertStatus;
|
|
50270
50588
|
}({});
|
|
50271
50589
|
//#endregion
|
|
50272
|
-
export { submoduleToken as $, TrackMode as $a, findInTheWay as $c, stripspace as $i, AutoCommentCharRemovedError as $l, applyMailmapToHeader as $n, GIT_DIFF_BIG_FILE_THRESHOLD as $o, trailerLinesOf as $r, reflogMessages as $s, SubmoduleUnpack as $t, IndexRefresh as A, createCopyEntry as Aa, checkDefaultObjectStorage as Ac, ApplyParser as Ai, hookRunnerOf as Al, submoduleHeader as An, rerereRemaining as Ao, combineNotesCatSortUniq as Ar, quoteTwo as As, AUTOSTASH_SAVED_LINES as At, parseIgnoredMode as B, SIGNING_KEYS as Ba, SparseUnpack as Bc, FastForwardMode as Bi, FSMONITOR_DAEMON_IPC_NAME as Bl, parseSignature as Bn, DEFAULT_RENAME_LIMIT as Bo, amendWithTrailers as Br, MovedLineBuffer as Bs, squashMessage as Bt, patchRevisionOf as C, orderByPatterns as Ca, InvalidDefaultBranchError as Cc, LogGraph as Ci, configuredHookEntries as Cl, SubmoduleRepository as Cn, normalizeConflicts as Co, expandNotesRef as Cr, pprintRename as Cs, matchArgValue as Ct, localTimezoneOffset as Cu, PATCH_MODES as D, diffEntryToPair as Da, UnknownObjectStorageFormatError as Dc, ApplyCommand as Di, gitFileOf as Dl, readDiffSubmoduleConfig as Dn, rerereForget as Do, readRef as Dr, writePairPatch as Ds, relativeDate as Dt, RemoteConfigStore as Du, runAddPatch as E, DiffFormatter as Ea, ReinitializeObjectStorageError as Ec, readBlob as Ei, gitCommitMessageHooks as El, parseSubmoduleDiffFormat as En, rerereEngineOf as Eo, initNotes as Er, writeHeaderOnlyPatch as Es, parseMaybeBool as Et, moveRefs as Eu, hasPickaxe as F, formatDirstat as Fa, unknownObjectStorageFormat as Fc, latin1ToText as Fi, refTransactionHookOf as Fl, checkSignature as Fn, createMergeDriver as Fo, LogPrinter as Fr, writeWordDiffHunks as Fs, removeBranchState as Ft, SubmoduleSummaryCommand as G, signPayload as Ga, readSparseCheckoutPatterns as Gc, cleanupWith as Gi, createIdAbbreviator as Gl, signatureFormatAt as Gn, addLeadingDirs as Go, interpretTrailers as Gr, diffColorSlotOf as Gs, StashWorktreeRemovalError as Gt, readShowUntrackedFiles as H, refuseCommitSigning as Ha, entryList as Hc, MergeStrategy as Hi, queryFsmonitorDaemon as Hl, parseSshOutput as Hn, GIT_MAX_SCORE as Ho, appendTrailers as Hr, WSEH_NEW as Hs, NoStagedChangesError as Ht, renamesValue as I, parseDirstatParams as Ia, IndexVersionConfigError as Ic, pathToLatin1 as Ii, runPostCheckoutHook as Il, checkSignatureWith as In, installMergeDrivers as Io, mailFromHeader as Ir, COLOR_MOVED_MODE_ERROR as Is, removeMergeBranchState as It, StatusPrinter as J, signerOf as Ja, sparsePathAdvice as Jc, commitMessageFromOption as Ji, WS_DEFAULT_RULE as Jl, verifyCommitBytes as Jn, strerror as Jo, parseTrailerWhere as Jr, parseWsErrorHighlight as Js, checkFlaggedEntries as Jt, readHeadDescription as K, signRequestOf as Ka, sparseCheckoutConfig as Kc, commentPrefixOf as Ki, worktreeModeTrust as Kl, signatureLetter as Kn, readGitlinkHead as Ko, parseTrailerIfExists as Kr, parseColorMoved as Ks, WorkingCopyStashProvider as Kt, TextconvCaches as L, writeCombinedDiff as La, indexFormatDefault as Lc, textToLatin1 as Li, sequencerPostCommit as Ll, mergetagsOf as Ln, lowLevelMerge as Lo, mailSubjectLine as Lr, COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE as Ls, resetMerge as Lt, DiffCommand as M, createModifyEntry as Ma, defaultInitialBranch as Mc, cUnquote as Mi, hookSettingsFromEntries as Ml, parseGitmodules as Mn, runRerere as Mo, combineNotesIgnore as Mr, lineRangesSpan as Ms, cleanupMessage as Mt, checkPickaxeOptions as N, createRenameEntry as Na, defaultRefFormat as Nc, latin1ToBytes as Ni, isKnownHook as Nl, SignatureVerificationError as Nn, MergeDriverCommandMissingError as No, combineNotesOverwrite as Nr, WORD_DIFF_MODES as Ns, createAutostash as Nt, patchModeFor as O, ChangeType as Oa, UnknownRefFormatError as Oc, parseWhitespaceAction as Oi, hookHostInGitDir as Ol, readGitmodulesEntries as On, rerereGcLocation as Oo, updateNotesRef as Or, quoteCStyleBody as Os, sanitizedSubject as Ot, listRemoteNames as Ou, formatDiffEntry as P, DEFAULT_DIRSTAT as Pa, isValidBranchName$1 as Pc, latin1ToPath as Pi, nullIdLike as Pl, bytesOf as Pn, MergeDriverFailedError as Po, readNoteBytes as Pr, compileWordRegex as Ps, moveHeadAsReset as Pt, formatStatusPorcelain as Q, RevisionResolver as Qa, entryNotUptodate as Qc, preparedMessageCleanup as Qi, wsCheckEmit as Ql, GrepPatternError as Qn, writePairCheck as Qo, trailerConfigOf as Qr, reflogLine as Qs, restoreWorktreeHard as Qt, StatusCommand as R, GitCommand as Ra, indexVersionConfigError as Rc, newFilePatch as Ri, sequencerPrepareMessage as Rl, parseBufferSignedByHeader as Rn, mergeDriversOf as Ro, mergesMode as Rr, DEFAULT_DIFF_COLORS as Rs, resetUnmergedToHead as Rt, runAddInteractive as S, DiffPickaxe as Sa, removeLegacyRemoteFile as Sc, GRAPH_COLUMN_COLORS_ANSI as Si, commonGitFileOf as Sl, NULL_OBJECT_ID as Sn, RerereError as So, expandLooseNotesRef as Sr, noIndexPair as Ss, loadRefDecorations as St, formatRfc2822Date as Su, runPatchSelection as T, parseOrderFile as Ta, MissingDefaultBranchValueError as Tc, ortResultEntries as Ti, gitCommitAfterHooks as Tl, openSubmoduleRepository as Tn, rerereDiff as To, initCopyNotesForRewrite as Tr, utf8$1 as Ts, parseColorSpec as Tt, deleteRefs as Tu, readSubmoduleDirt as U, resolveSigning as Ua, pushSparseWarnings as Uc, isMergeSuccessful as Ui, abbrevLengths as Ul, readStoredObjectBytes as Un, isBinaryContent as Uo, formatTrailersOf as Ur, WSEH_OLD as Us, StashCreateCommand as Ut, parseUntrackedFilesMode as V, SigningFailedError as Va, cleanTrackedSparseDirectories as Vc, MergeStatus as Vi, encodePacketized as Vl, parseSignedBuffer as Vn, detectRenames as Vo, appendSignoff as Vr, WSEH_CONTEXT as Vs, NoChangesSelectedError as Vt, submoduleNotSupportedWarning as W, signCommit as Wa, readSparseCheckoutFile as Wc, CleanupMode as Wi, coreBool as Wl, removeSignatureHeaders as Wn, IndexAdder as Wo, ignoredLogMessageBytes as Wr, coloredHunkHeader as Ws, StashPathspecResetError as Wt, statusCommitInfo as X, signingConfigOf as Xa, updateSparsity as Xc, editorCleanupMode as Xi, isGitSpace$1 as Xl, verifyTagBytes as Xn, conflictMarkerSizeOf as Xo, signoffLine as Xr, wsErrorHighlightOf as Xs, recordWrittenStat as Xt, formatStatusText as Y, signingConfigFromEntries as Ya, sparseWarningText as Yc, completeLine as Yi, checkBlankAtEof as Yl, verifyMergeSignature as Yn, DEFAULT_CONFLICT_MARKER_SIZE as Yo, processTrailers as Yr, writeColoredHunks as Ys, fsmonitorKeptEntries as Yt, StatusImpl as Z, signingKeyIdOf as Za, IndexCaseFolding as Zc, parseCleanupMode as Zi, wsBlankLine as Zl, CommitFilters as Zn, isConflictMarkerLine as Zo, trailerConfigFromEntries as Zr, committerIdent as Zs, restoreKeptEntries as Zt, formatBlamePorcelain as _, updateIndexCacheTree as _a, readAllBytes as _c, DEFAULT_DATE_MODE as _i, withTreePathRefusal as _l, shortBranchName as _n, verifyFilename as _o, copyNoteForRewrite as _r, formatPatch as _s, PrettyFormatError as _t, resolveAuthorIdent as _u, PushStatus as a, indexChanges as aa, hasPromisorRemote as ac, matchPathspecSeen as ai, statFollowingLinks as al, STASH_REF as an, guessRemoteBranch as ao, storedBase as ar, contentDriver as as, ExternalDiffTempFiles as at, configValue$1 as au, collapsedSparseDirectories as b, createRefDecorationFilter as ba, readMailmapFile as bc, parseDateMode as bi, HookSession as bl, worktreeAdminWorkingCopy as bn, parseRevisionArgs as bo, createNotesCommit as br, formatStat as bs, formatRefDecorations as bt, withoutCrud as bu, isPullSuccessful as c, planPathsRestore as ca, promisorRemotes as cc, pathspecCommonPrefix as ci, worktreeDiffers as cl, RevFilter as cn, pushTrackingPlan as co, forkPointOf as cr, diffDriverOf as cs, readDiffColorSettings as ct, DEFAULT_IDENT as cu, hasUpdates as d, rewriteIndex as da, promisorRemoteReplyOf as dc, pathspecItemMayMatch as di, planFlatRestore as dl, checkCandidatePath as dn, upstreamMissingError as do, patchIdOfChanges as dr, driverOf as ds, ConfigValueDeath as dt, InvalidIdentError as du, FlatTreeCache as ea, reflogSubject as ec, validateTrailerArgs as ei, flaggedEntryDiffers as el, recursesIntoSubmodules as en, ambiguousRemoteAdvice as eo, compileCommitGrep as er, LoadedSide as es, RevParseCommand as et, autoCommentCharLines as eu, CherryPickStatus as f, storeFlatTree as fa, httpClientSettingsOf as fc, pathspecName as fi, planTreeRestore as fl, findLinkedWorktree as fn, worktreeAmbiguityHints as fo, patchIdsOfPatchText as fr, externalDiffMetainfo as fs, formatConfigValue as ft, authorIdentOf as fu, formatBlameIncremental as g, treeDelta as ga, objectTypeOfMode as gc, untrackedScanPathspec as gi, treePathRefusal as gl, requireWorktrees as gn, parseRevisionAndPathArgs as go, commitNotes as gr, formatNumstat as gs, parseGitColor as gt, identConfigOf as gu, formatBlame as h, switchTrees as ha, concatBytes$3 as hc, treePathspec as hi, firstInvalidPath as hl, repositoryPlaceOf as hn, lstatExists as ho, NotesError as hr, formatNoIndexDiff as hs, normalizeConfigValue as ht, hostEnvironmentOf as hu, isRebaseSuccessful as i, flatTree as ia, createPromisorFetcher as ic, matchPathspec as ii, removeDirectoryIfEmpty as il, StashApplyCommand as in, endOfSymbolicChain as io, mergeStoredTrees as ir, computeDiffstat as is, ExternalDiffDiedError as it, configBool as iu, createPatchBackend as j, createDeleteEntry as ja, defaultBranchHint as jc, bytesToLatin1 as ji, hookSettingsCheck as jl, isSubmoduleIgnoreMode as jn, rerereStatus as jo, combineNotesConcatenate as jr, cutToLineRanges as js, applyAutostash as jt, promptIndex as k, createAddEntry as ka, UnsupportedObjectStorageError as kc, ApplyEngine as ki, hookHostOf as kl, showSubmoduleDiffSummary as kn, rerereHostOf as ko, NotesTree as kr, quotePath$1 as ks, wrapText as kt, RefUpdateStatus as l, readIndex as la, registerPartialClone as lc, pathspecErrors as li, worktreeModified as ll, WorktreeListCommand as ln, trackableStart as lo, PathspecAttributes as lr, diffOptsContext as ls, whitespaceRuleError as lt, IdentityUnknownError as lu, formatAnnotate as m, subjectOf$2 as ma, SHORT_MAGIC as mc, treeEntryInteresting as mi, writeTreeRestorePlan as ml, refuseIfCheckedOut as mn, looksLikePathspec as mo, isFullHexObjectId as mr, formatNameStatus as ms, gitConfigColorBool as mt, findIdent as mu, RebaseAction as n, conflictsComment as na, updateHeadExpecting as nc, latin1Bytes as ni, pruneEmptyParents as nl, ResetMode as nn, autoSetupRebase as no, remergeObjectsView as nr, blobIdOf as ns, installTextconvRunner as nt, attributesSourceResolver as nu, getFailedUpdates as o, indexChangesFromTree as oa, installPromisorFetcher as oc, parsePathspec as oi, statThroughLeadingLinks as ol, StashListCommand as on, installTracking as oo, MergeBaseGraph as or, contentSide as os, externalDiffProgramOf as ot, conflictStyleOf as ou, BlameColorError as p, storeFlatTreeOver as pa, CorruptTreeError as pc, psEqual as pi, restoreCaseOptions as pl, parseExpiry as pn, checkFilename as po, canonicalObjectId as pr, formatNameOnly as ps, gitConfigBool as pt, committerIdentOf as pu, formatTrackingInfo as q, signTagCompat as qa, sparseDirectoriesOf as qc, commitCleanupMode as qi, WS_BLANK_AT_EOF as ql, trustRank as qn, stageZeroClashes as qo, parseTrailerIfMissing as qr, parseColorMovedWs as qs, ResetCommand as qt, RebaseStatus as r, firstPlainError as ra, LAZY_FETCH_DISABLED_WARNING as rc, latin1String as ri, removeCaseVariants as rl, PathspecFile as rn, disableHint as ro, mergeBaseTree as rr, blobSide as rs, textconvRunnerOf as rt, bareAttributesResolver as ru, isPushSuccessful as s, plainUnpackError as sa, promisorOf as sc, parsePathspecItem as si, untrackedUnder as sl, LogCommand as sn, planTracking as so, commitsBaseSource as sr, countLines as ss, DEFAULT_DECORATION_COLORS as st, mergeVerbosityOf as su, RevertStatus as t, OperationState as ta, updateHead as tc, globalPathspecMagic as ti, overwriteMessage as tl, ListBranchMode as tn, applyRefspecs as to, RemergeTreeCommand as tr, attrPathOf as ts, revisionMergeBases as tt, checkAutoCommentChar as tu, getSuccessfulUpdates as u, refsWatched as ua, acceptedPromisorRemotes as uc, pathspecItemBytes as ui, checkoutFreshTree as ul, shortenUnambiguousRef as un, uniqueTrackingName as uo, PatchIds as ur, displayWidth$1 as us, CONFIG_VALUE_TYPES as ut, InvalidDateError as uu, AddCommand as v, writeIndexAsTree as va, Mailmap as vc, DateModeError as vi, worktreePathRules as vl, useRelativePaths as vn, verifyNonFilename as vo, copyNotesForAmend as vr, formatRawPair as vs, expandStringArg as vt, resolveCommitterIdent as vu, pathPatchMode as w, orderRank as wa, InvalidInitialBranchError as wc, graphColumnColors as wi, configuredHooks as wl, SubmoduleWalkError as wn, rerereClear as wo, finishCopyNotesForRewrite as wr, statSummary as ws, matchBoolArg as wt, parseGitDate as wu, sparseIndexAsRead as x, decorateFullRefs as xa, readRepositoryMailmap as xc, showDate as xi, LOCAL_REPO_ENV as xl, worktreeUsingBranch as xn, unknownRevisionMessage as xo, defaultNotesRef as xr, formatSummary as xs, humanDate as xt, approxidateCareful$1 as xu, SPARSE_INDEX_EXPANDED_HINT as y, StashApplyStatus as ya, readMailmapBlob as yc, hostZoneName as yi, markIndexUpdate as yl, usesBranch as yn, handleRevisionArg as yo, copyNotesForRebase as yr, formatShortstat as ys, formatCommitPretty as yt, resolveIdentDate as yu, cutLine as z, SIGNING_FAILED_LINES as za, takeIndexWarnings as zc, ContentMergeStrategy as zi, fsmonitorModeOf as zl, parseGpgOutput as zn, ortConfigOptions as zo, reencodedCommitParts as zr, DIFF_COLOR_SLOTS as zs, saveAutostash as zt };
|
|
50590
|
+
export { submoduleToken as $, splitCmdline as $a, sparseWarningText as $c, stripspace as $i, checkBlankAtEof as $l, applyMailmapToHeader as $n, isConflictMarkerLine as $o, trailerLinesOf as $r, committerIdent as $s, SubmoduleUnpack as $t, IndexRefresh as A, createAddEntry as Aa, ReinitializeObjectStorageError as Ac, ApplyParser as Ai, gitCommitMessageHooks as Al, submoduleHeader as An, rerereGcLocation as Ao, combineNotesCatSortUniq as Ar, quoteCStyleBody as As, AUTOSTASH_SAVED_LINES as At, moveRefs as Au, parseIgnoredMode as B, SIGNING_FAILED_LINES as Ba, IndexVersionConfigError as Bc, FastForwardMode as Bi, runPostCheckoutHook as Bl, parseSignature as Bn, mergeDriversOf as Bo, amendWithTrailers as Br, DEFAULT_DIFF_COLORS as Bs, squashMessage as Bt, patchRevisionOf as C, DiffPickaxe as Ca, readMailmapBlob as Cc, LogGraph as Ci, markIndexUpdate as Cl, SubmoduleRepository as Cn, unknownRevisionMessage as Co, expandNotesRef as Cr, formatSummary as Cs, matchArgValue as Ct, resolveIdentDate as Cu, PATCH_MODES as D, DiffFormatter as Da, InvalidDefaultBranchError as Dc, ApplyCommand as Di, configuredHookEntries as Dl, readDiffSubmoduleConfig as Dn, rerereDiff as Do, readRef as Dr, utf8$1 as Ds, relativeDate as Dt, localTimezoneOffset as Du, runAddPatch as E, parseOrderFile as Ea, removeLegacyRemoteFile as Ec, readBlob as Ei, commonGitFileOf as El, parseSubmoduleDiffFormat as En, rerereClear as Eo, initNotes as Er, statSummary as Es, parseMaybeBool as Et, formatRfc2822Date as Eu, hasPickaxe as F, DEFAULT_DIRSTAT as Fa, defaultBranchHint as Fc, latin1ToText as Fi, hookSettingsCheck as Fl, checkSignature as Fn, MergeDriverCommandMissingError as Fo, LogPrinter as Fr, WORD_DIFF_MODES as Fs, removeBranchState as Ft, SubmoduleSummaryCommand as G, signCommit as Ga, cleanTrackedSparseDirectories as Gc, cleanupWith as Gi, encodePacketized as Gl, signatureFormatAt as Gn, isBinaryContent as Go, interpretTrailers as Gr, WSEH_OLD as Gs, StashWorktreeRemovalError as Gt, readShowUntrackedFiles as H, SigningFailedError as Ha, indexVersionConfigError as Hc, MergeStrategy as Hi, sequencerPrepareMessage as Hl, parseSshOutput as Hn, DEFAULT_RENAME_LIMIT as Ho, appendTrailers as Hr, MovedLineBuffer as Hs, NoStagedChangesError as Ht, renamesValue as I, formatDirstat as Ia, defaultInitialBranch as Ic, pathToLatin1 as Ii, hookSettingsFromEntries as Il, checkSignatureWith as In, MergeDriverFailedError as Io, mailFromHeader as Ir, compileWordRegex as Is, removeMergeBranchState as It, StatusPrinter as J, signTagCompat as Ja, readSparseCheckoutFile as Jc, commitMessageFromOption as Ji, coreBool as Jl, verifyCommitBytes as Jn, readGitlinkHead as Jo, parseTrailerWhere as Jr, parseColorMoved as Js, checkFlaggedEntries as Jt, readHeadDescription as K, signPayload as Ka, entryList as Kc, commentPrefixOf as Ki, queryFsmonitorDaemon as Kl, signatureLetter as Kn, IndexAdder as Ko, parseTrailerIfExists as Kr, coloredHunkHeader as Ks, WorkingCopyStashProvider as Kt, TextconvCaches as L, parseDirstatParams as La, defaultRefFormat as Lc, textToLatin1 as Li, isKnownHook as Ll, mergetagsOf as Ln, createMergeDriver as Lo, mailSubjectLine as Lr, writeWordDiffHunks as Ls, resetMerge as Lt, DiffCommand as M, createDeleteEntry as Ma, UnknownRefFormatError as Mc, cUnquote as Mi, hookHostInGitDir as Ml, parseGitmodules as Mn, rerereRemaining as Mo, combineNotesIgnore as Mr, quoteTwo as Ms, cleanupMessage as Mt, listRemoteNames as Mu, checkPickaxeOptions as N, createModifyEntry as Na, UnsupportedObjectStorageError as Nc, latin1ToBytes as Ni, hookHostOf as Nl, SignatureVerificationError as Nn, rerereStatus as No, combineNotesOverwrite as Nr, cutToLineRanges as Ns, createAutostash as Nt, patchModeFor as O, diffEntryToPair as Oa, InvalidInitialBranchError as Oc, parseWhitespaceAction as Oi, configuredHooks as Ol, readGitmodulesEntries as On, rerereEngineOf as Oo, updateNotesRef as Or, writeHeaderOnlyPatch as Os, sanitizedSubject as Ot, parseGitDate as Ou, formatDiffEntry as P, createRenameEntry as Pa, checkDefaultObjectStorage as Pc, latin1ToPath as Pi, hookRunnerOf as Pl, bytesOf as Pn, runRerere as Po, readNoteBytes as Pr, lineRangesSpan as Ps, moveHeadAsReset as Pt, formatStatusPorcelain as Q, signingKeyIdOf as Qa, sparsePathAdvice as Qc, preparedMessageCleanup as Qi, WS_DEFAULT_RULE as Ql, GrepPatternError as Qn, conflictMarkerSizeOf as Qo, trailerConfigOf as Qr, wsErrorHighlightOf as Qs, restoreWorktreeHard as Qt, StatusCommand as R, writeCombinedDiff as Ra, isValidBranchName$1 as Rc, newFilePatch as Ri, nullIdLike as Rl, parseBufferSignedByHeader as Rn, installMergeDrivers as Ro, mergesMode as Rr, COLOR_MOVED_MODE_ERROR as Rs, resetUnmergedToHead as Rt, runAddInteractive as S, decorateFullRefs as Sa, Mailmap as Sc, GRAPH_COLUMN_COLORS_ANSI as Si, worktreePathRules as Sl, NULL_OBJECT_ID as Sn, parseRevisionArgs as So, expandLooseNotesRef as Sr, formatStat as Ss, loadRefDecorations as St, resolveCommitterIdent as Su, runPatchSelection as T, orderRank as Ta, readRepositoryMailmap as Tc, ortResultEntries as Ti, LOCAL_REPO_ENV as Tl, openSubmoduleRepository as Tn, normalizeConflicts as To, initCopyNotesForRewrite as Tr, pprintRename as Ts, parseColorSpec as Tt, approxidateCareful$1 as Tu, readSubmoduleDirt as U, refuseCommitSigning as Ua, takeIndexWarnings as Uc, isMergeSuccessful as Ui, fsmonitorModeOf as Ul, readStoredObjectBytes as Un, detectRenames as Uo, formatTrailersOf as Ur, WSEH_CONTEXT as Us, StashCreateCommand as Ut, parseUntrackedFilesMode as V, SIGNING_KEYS as Va, indexFormatDefault as Vc, MergeStatus as Vi, sequencerPostCommit as Vl, parseSignedBuffer as Vn, ortConfigOptions as Vo, appendSignoff as Vr, DIFF_COLOR_SLOTS as Vs, NoChangesSelectedError as Vt, submoduleNotSupportedWarning as W, resolveSigning as Wa, SparseUnpack as Wc, CleanupMode as Wi, FSMONITOR_DAEMON_IPC_NAME as Wl, removeSignatureHeaders as Wn, GIT_MAX_SCORE as Wo, ignoredLogMessageBytes as Wr, WSEH_NEW as Ws, StashPathspecResetError as Wt, statusCommitInfo as X, signingConfigFromEntries as Xa, sparseCheckoutConfig as Xc, editorCleanupMode as Xi, worktreeModeTrust as Xl, verifyTagBytes as Xn, strerror as Xo, signoffLine as Xr, parseWsErrorHighlight as Xs, recordWrittenStat as Xt, formatStatusText as Y, signerOf as Ya, readSparseCheckoutPatterns as Yc, completeLine as Yi, createIdAbbreviator as Yl, verifyMergeSignature as Yn, stageZeroClashes as Yo, processTrailers as Yr, parseColorMovedWs as Ys, fsmonitorKeptEntries as Yt, StatusImpl as Z, signingConfigOf as Za, sparseDirectoriesOf as Zc, parseCleanupMode as Zi, WS_BLANK_AT_EOF as Zl, CommitFilters as Zn, DEFAULT_CONFLICT_MARKER_SIZE as Zo, trailerConfigFromEntries as Zr, writeColoredHunks as Zs, restoreKeptEntries as Zt, formatBlamePorcelain as _, treeDelta as _a, CorruptTreeError as _c, DEFAULT_DATE_MODE as _i, restoreCaseOptions as _l, shortBranchName as _n, lstatExists as _o, copyNoteForRewrite as _r, formatNoIndexDiff as _s, PrettyFormatError as _t, committerIdentOf as _u, PushStatus as a, indexChanges as aa, LAZY_FETCH_DISABLED_WARNING as ac, matchPathspecSeen as ai, overwriteMessage as al, STASH_REF as an, disableHint as ao, storedBase as ar, blobSide as as, ExternalDiffTempFiles as at, checkAutoCommentChar as au, collapsedSparseDirectories as b, StashApplyStatus as ba, objectTypeOfMode as bc, parseDateMode as bi, treePathRefusal as bl, worktreeAdminWorkingCopy as bn, verifyNonFilename as bo, createNotesCommit as br, formatRawPair as bs, formatRefDecorations as bt, identConfigOf as bu, isPullSuccessful as c, plainUnpackError as ca, installPromisorFetcher as cc, pathspecCommonPrefix as ci, removeDirectoryIfEmpty as cl, RevFilter as cn, installTracking as co, forkPointOf as cr, contentSide as cs, readDiffColorSettings as ct, configBool as cu, hasUpdates as d, refsWatched as da, registerPartialClone as dc, pathspecItemMayMatch as di, untrackedUnder as dl, checkCandidatePath as dn, trackableStart as do, patchIdOfChanges as dr, diffOptsContext as ds, ConfigValueDeath as dt, mergeVerbosityOf as du, FlatTreeCache as ea, reflogLine as ec, validateTrailerArgs as ei, updateSparsity as el, recursesIntoSubmodules as en, RevisionResolver as eo, compileCommitGrep as er, writePairCheck as es, RevParseCommand as et, isGitSpace$1 as eu, CherryPickStatus as f, rewriteIndex as fa, acceptedPromisorRemotes as fc, pathspecName as fi, worktreeDiffers as fl, findLinkedWorktree as fn, uniqueTrackingName as fo, patchIdsOfPatchText as fr, displayWidth$1 as fs, formatConfigValue as ft, DEFAULT_IDENT as fu, formatBlameIncremental as g, switchTrees as ga, httpClientSettingsOf as gc, untrackedScanPathspec as gi, planTreeRestore as gl, requireWorktrees as gn, looksLikePathspec as go, commitNotes as gr, formatNameStatus as gs, parseGitColor as gt, authorIdentOf as gu, formatBlame as h, subjectOf$2 as ha, resetPromisorAcceptance as hc, treePathspec as hi, planFlatRestore as hl, repositoryPlaceOf as hn, checkFilename as ho, NotesError as hr, formatNameOnly as hs, normalizeConfigValue as ht, InvalidIdentError as hu, isRebaseSuccessful as i, flatTree as ia, updateHeadExpecting as ic, matchPathspec as ii, flaggedEntryDiffers as il, StashApplyCommand as in, autoSetupRebase as io, mergeStoredTrees as ir, blobIdOf as is, ExternalDiffDiedError as it, autoCommentCharLines as iu, createPatchBackend as j, createCopyEntry as ja, UnknownObjectStorageFormatError as jc, bytesToLatin1 as ji, gitFileOf as jl, isSubmoduleIgnoreMode as jn, rerereHostOf as jo, combineNotesConcatenate as jr, quotePath$1 as js, applyAutostash as jt, RemoteConfigStore as ju, promptIndex as k, ChangeType as ka, MissingDefaultBranchValueError as kc, ApplyEngine as ki, gitCommitAfterHooks as kl, showSubmoduleDiffSummary as kn, rerereForget as ko, NotesTree as kr, writePairPatch as ks, wrapText as kt, deleteRefs as ku, RefUpdateStatus as l, planPathsRestore as la, promisorOf as lc, pathspecErrors as li, statFollowingLinks as ll, WorktreeListCommand as ln, planTracking as lo, PathspecAttributes as lr, countLines as ls, whitespaceRuleError as lt, configValue$1 as lu, formatAnnotate as m, storeFlatTreeOver as ma, promisorRemoteReplyOf as mc, treeEntryInteresting as mi, checkoutFreshTree as ml, refuseIfCheckedOut as mn, worktreeAmbiguityHints as mo, isFullHexObjectId as mr, externalDiffMetainfo as ms, gitConfigColorBool as mt, InvalidDateError as mu, RebaseAction as n, conflictsComment as na, reflogSubject as nc, latin1Bytes as ni, entryNotUptodate as nl, ResetMode as nn, ambiguousRemoteAdvice as no, remergeObjectsView as nr, LoadedSide as ns, installTextconvRunner as nt, wsCheckEmit as nu, getFailedUpdates as o, indexChangesFromTree as oa, createPromisorFetcher as oc, parsePathspec as oi, pruneEmptyParents as ol, StashListCommand as on, endOfSymbolicChain as oo, MergeBaseGraph as or, computeDiffstat as os, externalDiffProgramOf as ot, attributesSourceResolver as ou, BlameColorError as p, storeFlatTree as pa, promisorAutoFilter as pc, psEqual as pi, worktreeModified as pl, parseExpiry as pn, upstreamMissingError as po, canonicalObjectId as pr, driverOf as ps, gitConfigBool as pt, IdentityUnknownError as pu, formatTrackingInfo as q, signRequestOf as qa, pushSparseWarnings as qc, commitCleanupMode as qi, abbrevLengths as ql, trustRank as qn, addLeadingDirs as qo, parseTrailerIfMissing as qr, diffColorSlotOf as qs, ResetCommand as qt, RebaseStatus as r, firstPlainError as ra, updateHead as rc, latin1String as ri, findInTheWay as rl, PathspecFile as rn, applyRefspecs as ro, mergeBaseTree as rr, attrPathOf as rs, textconvRunnerOf as rt, AutoCommentCharRemovedError as ru, isPushSuccessful as s, peelMergeHeads as sa, hasPromisorRemote as sc, parsePathspecItem as si, removeCaseVariants as sl, LogCommand as sn, guessRemoteBranch as so, commitsBaseSource as sr, contentDriver as ss, DEFAULT_DECORATION_COLORS as st, bareAttributesResolver as su, RevertStatus as t, OperationState as ta, reflogMessages as tc, globalPathspecMagic as ti, IndexCaseFolding as tl, ListBranchMode as tn, TrackMode as to, RemergeTreeCommand as tr, GIT_DIFF_BIG_FILE_THRESHOLD as ts, revisionMergeBases as tt, wsBlankLine as tu, getSuccessfulUpdates as u, readIndex as ua, promisorRemotes as uc, pathspecItemBytes as ui, statThroughLeadingLinks as ul, shortenUnambiguousRef as un, pushTrackingPlan as uo, PatchIds as ur, diffDriverOf as us, CONFIG_VALUE_TYPES as ut, conflictStyleOf as uu, AddCommand as v, updateIndexCacheTree as va, SHORT_MAGIC as vc, DateModeError as vi, writeTreeRestorePlan as vl, useRelativePaths as vn, parseRevisionAndPathArgs as vo, copyNotesForAmend as vr, formatNumstat as vs, expandStringArg as vt, findIdent as vu, pathPatchMode as w, orderByPatterns as wa, readMailmapFile as wc, graphColumnColors as wi, HookSession as wl, SubmoduleWalkError as wn, RerereError as wo, finishCopyNotesForRewrite as wr, noIndexPair as ws, matchBoolArg as wt, withoutCrud as wu, sparseIndexAsRead as x, createRefDecorationFilter as xa, readAllBytes as xc, showDate as xi, withTreePathRefusal as xl, worktreeUsingBranch as xn, handleRevisionArg as xo, defaultNotesRef as xr, formatShortstat as xs, humanDate as xt, resolveAuthorIdent as xu, SPARSE_INDEX_EXPANDED_HINT as y, writeIndexAsTree as ya, concatBytes$3 as yc, hostZoneName as yi, firstInvalidPath as yl, usesBranch as yn, verifyFilename as yo, copyNotesForRebase as yr, formatPatch as ys, formatCommitPretty as yt, hostEnvironmentOf as yu, cutLine as z, GitCommand as za, unknownObjectStorageFormat as zc, ContentMergeStrategy as zi, refTransactionHookOf as zl, parseGpgOutput as zn, lowLevelMerge as zo, reencodedCommitParts as zr, COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE as zs, saveAutostash as zt };
|