type-git 0.8.0 → 0.8.2
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/README.md +7 -0
- package/dist/adapters/bun/index.cjs +8 -8
- package/dist/adapters/bun/index.d.cts +2 -2
- package/dist/adapters/bun/index.d.ts +2 -2
- package/dist/adapters/bun/index.js +2 -2
- package/dist/adapters/deno/index.cjs +8 -8
- package/dist/adapters/deno/index.d.cts +2 -2
- package/dist/adapters/deno/index.d.ts +2 -2
- package/dist/adapters/deno/index.js +2 -2
- package/dist/adapters/node/index.cjs +4 -4
- package/dist/adapters/node/index.d.cts +2 -2
- package/dist/adapters/node/index.d.ts +2 -2
- package/dist/adapters/node/index.js +3 -3
- package/dist/{chunk-JDCCYWIX.cjs → chunk-4K65HJ37.cjs} +7 -7
- package/dist/{chunk-ADC26634.js → chunk-RR5Q2UP2.js} +170 -124
- package/dist/{chunk-6HDMSFY7.cjs → chunk-RWKMVYO5.cjs} +16 -9
- package/dist/{chunk-UHZWPYTF.cjs → chunk-SKN5H7RX.cjs} +543 -497
- package/dist/{chunk-UAKOSACD.js → chunk-SXHFNCJZ.js} +16 -9
- package/dist/{chunk-S3EFBFVP.js → chunk-YCSKHC3M.js} +1 -1
- package/dist/{client.d-Cg5wWJnY.d.cts → client.d-C8wHgA_S.d.ts} +1 -1
- package/dist/{client.d-DCiFA_CK.d.ts → client.d-DVs3pi2e.d.cts} +1 -1
- package/dist/{git.d-DqAvRXEf.d.cts → git.d-CJUJ4264.d.cts} +31 -8
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/strict/command-data.cjs +3 -0
- package/dist/strict/index.cjs +100 -100
- package/dist/strict/index.d.cts +66784 -127877
- package/dist/strict/index.js +2 -2
- package/package.json +1 -1
|
@@ -3932,7 +3932,8 @@ var COMMAND_CONSTRAINTS = {
|
|
|
3932
3932
|
reason: "Commit --all cannot use a pathspec file.",
|
|
3933
3933
|
source: git("builtin/commit.c")
|
|
3934
3934
|
},
|
|
3935
|
-
// repo.commit emits no path operands and
|
|
3935
|
+
// repo.commit emits no path operands and refuses an empty fixup. It forwards an empty
|
|
3936
|
+
// pathspecFromFile, which Git 2.43 cannot open and newer Git ignores, so it supplies no paths.
|
|
3936
3937
|
{
|
|
3937
3938
|
id: "commit.include-paths",
|
|
3938
3939
|
kind: "requires",
|
|
@@ -4132,7 +4133,8 @@ var COMMAND_CONSTRAINTS = {
|
|
|
4132
4133
|
{
|
|
4133
4134
|
id: "pull.branch-remote",
|
|
4134
4135
|
kind: "requires",
|
|
4135
|
-
|
|
4136
|
+
// repo.pull emits an empty branch too (Git takes it as the remote's HEAD).
|
|
4137
|
+
when: active("branch"),
|
|
4136
4138
|
required: [{ key: "remote", test: "nonempty" }],
|
|
4137
4139
|
origin: "git",
|
|
4138
4140
|
reason: "Git reads the first positional word as the repository, so a branch needs an explicit remote.",
|
|
@@ -4298,7 +4300,7 @@ var COMMAND_CONSTRAINTS = {
|
|
|
4298
4300
|
when: { key: "startPoint", test: "nonempty" },
|
|
4299
4301
|
choices: [active("create"), active("forceCreate")],
|
|
4300
4302
|
origin: "git",
|
|
4301
|
-
reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is
|
|
4303
|
+
reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is refused at runtime, as Git rejects it.",
|
|
4302
4304
|
source: git("builtin/checkout.c")
|
|
4303
4305
|
}
|
|
4304
4306
|
],
|
|
@@ -4936,7 +4938,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4936
4938
|
kind: "forbid",
|
|
4937
4939
|
when: [
|
|
4938
4940
|
{ key: "fixup", test: "startsWith", value: "amend:" },
|
|
4939
|
-
|
|
4941
|
+
// repo.commit forwards an empty message as -m '', which Git refuses here too.
|
|
4942
|
+
{ key: "message", test: "active" }
|
|
4940
4943
|
],
|
|
4941
4944
|
origin: "git",
|
|
4942
4945
|
reason: "An amend: fixup takes its message from the amended commit, not from a message.",
|
|
@@ -4947,7 +4950,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4947
4950
|
kind: "forbid",
|
|
4948
4951
|
when: [
|
|
4949
4952
|
{ key: "fixup", test: "startsWith", value: "reword:" },
|
|
4950
|
-
|
|
4953
|
+
// repo.commit forwards an empty message as -m '', which Git refuses here too.
|
|
4954
|
+
{ key: "message", test: "active" }
|
|
4951
4955
|
],
|
|
4952
4956
|
origin: "git",
|
|
4953
4957
|
reason: "A reword: fixup takes its message from the amended commit, not from a message.",
|
|
@@ -4958,7 +4962,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4958
4962
|
kind: "scalar",
|
|
4959
4963
|
key: "author",
|
|
4960
4964
|
parser: "commit-author",
|
|
4961
|
-
//
|
|
4965
|
+
// An empty author is forwarded and Git matches it against existing authors, so the ident
|
|
4966
|
+
// parser skips it; dry runs return before determine_author_info.
|
|
4962
4967
|
guard: [
|
|
4963
4968
|
{ key: "author", test: "nonempty" },
|
|
4964
4969
|
{ key: "dryRun", test: "inactive" }
|
|
@@ -4972,7 +4977,7 @@ var INPUT_CONSTRAINTS = {
|
|
|
4972
4977
|
kind: "scalar",
|
|
4973
4978
|
key: "date",
|
|
4974
4979
|
parser: "commit-date",
|
|
4975
|
-
// repo.commit
|
|
4980
|
+
// repo.commit refuses an empty date and converts a Date, which still needs a valid time.
|
|
4976
4981
|
guard: [
|
|
4977
4982
|
{ key: "date", test: "present" },
|
|
4978
4983
|
{ key: "date", test: "notEquals", value: "" },
|
|
@@ -4988,7 +4993,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4988
4993
|
id: "restore.paths",
|
|
4989
4994
|
kind: "requiresAny",
|
|
4990
4995
|
when: { key: "paths", test: "lengthEquals", value: 0 },
|
|
4991
|
-
// An empty pathspecFromFile is
|
|
4996
|
+
// An empty pathspecFromFile is forwarded but supplies no paths (Git 2.43 cannot open it and
|
|
4997
|
+
// newer Git ignores it), so it does not count.
|
|
4992
4998
|
choices: [{ key: "pathspecFromFile", test: "nonempty" }],
|
|
4993
4999
|
origin: "git",
|
|
4994
5000
|
reason: "Restore without patch mode needs paths or a pathspec file.",
|
|
@@ -5010,7 +5016,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
5010
5016
|
key: "paths",
|
|
5011
5017
|
min: 0,
|
|
5012
5018
|
max: 0,
|
|
5013
|
-
//
|
|
5019
|
+
// An empty pathspecFromFile is forwarded but names no file (Git 2.43 cannot open it and newer
|
|
5020
|
+
// Git ignores it), so it does not count.
|
|
5014
5021
|
when: { key: "pathspecFromFile", test: "nonempty" },
|
|
5015
5022
|
origin: "git",
|
|
5016
5023
|
reason: "Pathspec files cannot be combined with command-line pathspecs.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-
|
|
1
|
+
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-CJUJ4264.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Runtime adapter interfaces for cross-platform support (Node/Deno/Bun)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-
|
|
1
|
+
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-CJUJ4264.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Runtime adapter interfaces for cross-platform support (Node/Deno/Bun)
|
|
@@ -122,6 +122,24 @@ declare const NonEmptyBrand: unique symbol;
|
|
|
122
122
|
type NonEmptyString = string & {
|
|
123
123
|
readonly [NonEmptyBrand]: never;
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* A string operand type that refuses the literal `''` at compile time.
|
|
127
|
+
*
|
|
128
|
+
* Git never resolves an empty word as a revision (`git reset ''` and `git diff ''` exit 128), and
|
|
129
|
+
* omitting the word runs a different command, so APIs that take an optional revision use this
|
|
130
|
+
* type to reject `''` written in the source. A value typed as plain `string` still compiles and is
|
|
131
|
+
* refused at runtime with `GitArgumentError`; to leave the revision out, pass `undefined`.
|
|
132
|
+
* A caller generic over the operand (`<S extends string>(s: S)`) cannot be proven nonempty, so it
|
|
133
|
+
* passes the type argument explicitly, as in `repo.reset<string>(s)`.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```typescript
|
|
137
|
+
* await repo.reset('HEAD~1'); // OK
|
|
138
|
+
* await repo.reset(); // OK: same as `git reset`
|
|
139
|
+
* await repo.reset(''); // type error
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
type NonEmptyOperand<T extends string> = T extends '' ? never : T;
|
|
125
143
|
/**
|
|
126
144
|
* Validates and converts a string to NonEmptyString.
|
|
127
145
|
*
|
|
@@ -2237,7 +2255,7 @@ declare const COMMAND_CONSTRAINTS: {
|
|
|
2237
2255
|
readonly kind: "requires";
|
|
2238
2256
|
readonly when: {
|
|
2239
2257
|
readonly key: "branch";
|
|
2240
|
-
readonly test: "
|
|
2258
|
+
readonly test: "active";
|
|
2241
2259
|
};
|
|
2242
2260
|
readonly required: readonly [{
|
|
2243
2261
|
readonly key: "remote";
|
|
@@ -2417,7 +2435,7 @@ declare const COMMAND_CONSTRAINTS: {
|
|
|
2417
2435
|
readonly test: "active";
|
|
2418
2436
|
}];
|
|
2419
2437
|
readonly origin: "git";
|
|
2420
|
-
readonly reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is
|
|
2438
|
+
readonly reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is refused at runtime, as Git rejects it.";
|
|
2421
2439
|
readonly source: string;
|
|
2422
2440
|
}];
|
|
2423
2441
|
readonly cherryPick: readonly [{
|
|
@@ -9726,16 +9744,16 @@ interface WorktreeRepo extends RepoBase {
|
|
|
9726
9744
|
* @example
|
|
9727
9745
|
* ```typescript
|
|
9728
9746
|
* const diff = await repo.diff('HEAD~1');
|
|
9729
|
-
* const staged = await repo.diff({ staged: true });
|
|
9747
|
+
* const staged = await repo.diff(undefined, { staged: true });
|
|
9730
9748
|
* ```
|
|
9731
9749
|
*/
|
|
9732
|
-
diff(target:
|
|
9750
|
+
diff<T extends string>(target: NonEmptyOperand<T> | undefined, opts: DiffOpts & {
|
|
9733
9751
|
nameOnly: true;
|
|
9734
9752
|
} & ExecOpts): Promise<string[]>;
|
|
9735
|
-
diff(target?:
|
|
9753
|
+
diff<T extends string>(target?: NonEmptyOperand<T>, opts?: DiffOpts & {
|
|
9736
9754
|
nameOnly?: false;
|
|
9737
9755
|
} & ExecOpts): Promise<DiffResult>;
|
|
9738
|
-
diff(target?:
|
|
9756
|
+
diff<T extends string>(target?: NonEmptyOperand<T>, opts?: DiffOpts & ExecOpts): Promise<DiffResult | string[]>;
|
|
9739
9757
|
/**
|
|
9740
9758
|
* Merge branches
|
|
9741
9759
|
*
|
|
@@ -9768,8 +9786,13 @@ interface WorktreeRepo extends RepoBase {
|
|
|
9768
9786
|
* await repo.reset('HEAD~1', { mode: 'hard' });
|
|
9769
9787
|
* await repo.reset(undefined, { mode: 'soft' });
|
|
9770
9788
|
* ```
|
|
9789
|
+
*
|
|
9790
|
+
* Leaving `target` out runs `git reset` (HEAD). An empty `target` is refused, as Git refuses
|
|
9791
|
+
* `git reset ''`: the literal `''` is a type error and an empty string value throws
|
|
9792
|
+
* `GitArgumentError` before Git runs. A caller generic over the target type (`<S extends
|
|
9793
|
+
* string>`) passes it as `repo.reset<string>(target)`.
|
|
9771
9794
|
*/
|
|
9772
|
-
reset(target?:
|
|
9795
|
+
reset<T extends string>(target?: NonEmptyOperand<T>, opts?: ResetOpts & ExecOpts): Promise<void>;
|
|
9773
9796
|
/**
|
|
9774
9797
|
* Remove files from the working tree and from the index
|
|
9775
9798
|
*
|
|
@@ -10512,4 +10535,4 @@ interface Git {
|
|
|
10512
10535
|
lfs: GlobalLfsOperations;
|
|
10513
10536
|
}
|
|
10514
10537
|
|
|
10515
|
-
export { type ConstraintRequirement as $, type AuditConfig as A, type BareRepo as B, type Capabilities as C, type Digit$4 as D, type EnvInheritance as E, type FastImportUnsignedParser as F, type Git as G, type GitNumericLiteral as H, type InitOpts as I, type GitBooleanCallback as J, type GitBooleanCallbackLiteral as K, type LsRemoteOpts as L, type AsciiUpper as M, type NumberLiteralOrder as N, type ObjectFilterLiteral as O, type Predicate as P, type StringCallbackParser as Q, type RawResult as R, type SafeIntegerAtLeast as S, type Trim$2 as T, type UrlBytes as U, type StringCallbackLiteral as V, type WorktreeRepo as W, type AsciiLower as X, type GitNumericValue as Y, type GitBooleanCallbackValue as Z, type StringCallbackValue as _, type CompanionExecutable as a, type DiffEntry as a$, type GitTimestampParser as a0, type GitDecimalCallback as a1, type LegacyGitDecimal as a2, type GitIntegerParser as a3, type GitOutputMode as a4, detectErrorCategory as a5, GIT_LOG_FORMAT as a6, type GitProgressInfo as a7, type LfsProgressInfo as a8, type LsRemoteRef as a9, type GlobalLfsInstallOpts as aA, type GlobalLfsUninstallOpts as aB, type GlobalConfigListOpts as aC, type RepoBase as aD, type RepoLsRemoteOpts as aE, type RepoLsRemoteResult as aF, type LsTreeEntry as aG, type LsTreeOpts as aH, type StatusEntry as aI, type StatusPorcelain as aJ, type StatusOpts as aK, type Commit as aL, type LogOpts as aM, type FetchOpts as aN, type ForceWithLeaseOpts as aO, type PushOpts as aP, type AddOpts as aQ, type BranchInfo as aR, type BranchOpts as aS, type BranchCreateOpts as aT, type BranchDeleteOpts as aU, type CheckoutBranchOpts as aV, type CheckoutPathOpts as aW, type CheckoutOpts as aX, type CommitOpts as aY, type CommitResult as aZ, type DiffOpts as a_, type LsTreeObjectType$1 as aa, type ParsedCommit as ab, type ParsedLsTreeEntry as ac, type ParsedWorktree as ad, type PorcelainV2Entry as ae, parseGitLog as af, parseGitProgress as ag, parseJson as ah, parseKeyValue as ai, parseLfsProgress as aj, parseLines as ak, parseLsRemote as al, parseLsTree as am, parsePorcelainV2 as an, parseRecords as ao, parseWorktreeList as ap, type CloneConfigSchema as aq, type CloneHttpVariable as ar, type CloneConfigKey as as, type CloneConfig as at, isCloneConfigKey as au, cloneConfigArgs as av, type EnvAllowlistAdjustment as aw, type EnvInheritancePredicate as ax, DEFAULT_ENV_ALLOWLIST as ay, resolveInheritedEnv as az, type ExecutionContext as b, type LfsPreDownloadOpts as b$, type DiffResult as b0, type MergeOpts as b1, type MergeResult as b2, type PullOpts as b3, type ResetOpts as b4, type RmOpts as b5, type StashEntry as b6, type StashPushOpts as b7, type StashApplyOpts as b8, type SwitchOpts as b9, type SubmoduleForeachOpts as bA, type SubmoduleSyncOpts as bB, type SubmoduleSetBranchOpts as bC, type SubmoduleInfo as bD, type LfsStatus as bE, type LfsPullOpts as bF, type LfsPushOpts as bG, type LfsStatusOpts as bH, type LfsPruneOpts as bI, type LfsFetchOpts as bJ, type RepoLfsInstallOpts as bK, type RepoLfsUninstallOpts as bL, type LfsFileEntry as bM, type LfsLsFilesOpts as bN, type LfsTrackEntry as bO, type LfsTrackOpts as bP, type LfsLockEntry as bQ, type LfsLockOpts as bR, type LfsUnlockOpts as bS, type LfsLocksOpts as bT, type LfsCheckoutOpts as bU, type LfsMigrateInfoOpts as bV, type LfsMigrateImportOpts as bW, type LfsMigrateExportOpts as bX, type LfsEnvInfo as bY, type LfsPreUploadOpts as bZ, type LfsPreUploadResult as b_, type TagInfo as ba, type TagListOpts as bb, type TagCreateOpts as bc, type CherryPickOpts as bd, type CleanOpts as be, type MvOpts as bf, type RebaseOpts as bg, type RestoreOpts as bh, type RevertOpts as bi, type ShowOpts as bj, type RevParsePathQuery as bk, type RevParseBooleanQuery as bl, type RevParseListOpts as bm, type RevParseListQuery as bn, type RevParseRefBaseOpts as bo, type RevParseRefOpts as bp, type RevParseQuietRefOpts as bq, type RevParseAnyRefOpts as br, type RevParseOtherQuery as bs, type RevParsePathFormat as bt, type RevParsePathOpts as bu, type SubmoduleOpts as bv, type SubmoduleAddOpts as bw, type SubmoduleDeinitOpts as bx, type SubmoduleStatusOpts as by, type SubmoduleSummaryOpts as bz, type ExecOpts as c, type LfsPreDownloadResult as c0, type Worktree as c1, type WorktreeAddOpts as c2, type WorktreeRemoveOpts as c3, type WorktreePruneOpts as c4, type WorktreeMoveOpts as c5, type WorktreeRepairOpts as c6, type WorktreeLockOpts as c7, type WorktreeOperations as c8, type LfsOperations as c9, type
|
|
10538
|
+
export { type ConstraintRequirement as $, type AuditConfig as A, type BareRepo as B, type Capabilities as C, type Digit$4 as D, type EnvInheritance as E, type FastImportUnsignedParser as F, type Git as G, type GitNumericLiteral as H, type InitOpts as I, type GitBooleanCallback as J, type GitBooleanCallbackLiteral as K, type LsRemoteOpts as L, type AsciiUpper as M, type NumberLiteralOrder as N, type ObjectFilterLiteral as O, type Predicate as P, type StringCallbackParser as Q, type RawResult as R, type SafeIntegerAtLeast as S, type Trim$2 as T, type UrlBytes as U, type StringCallbackLiteral as V, type WorktreeRepo as W, type AsciiLower as X, type GitNumericValue as Y, type GitBooleanCallbackValue as Z, type StringCallbackValue as _, type CompanionExecutable as a, type DiffEntry as a$, type GitTimestampParser as a0, type GitDecimalCallback as a1, type LegacyGitDecimal as a2, type GitIntegerParser as a3, type GitOutputMode as a4, detectErrorCategory as a5, GIT_LOG_FORMAT as a6, type GitProgressInfo as a7, type LfsProgressInfo as a8, type LsRemoteRef as a9, type GlobalLfsInstallOpts as aA, type GlobalLfsUninstallOpts as aB, type GlobalConfigListOpts as aC, type RepoBase as aD, type RepoLsRemoteOpts as aE, type RepoLsRemoteResult as aF, type LsTreeEntry as aG, type LsTreeOpts as aH, type StatusEntry as aI, type StatusPorcelain as aJ, type StatusOpts as aK, type Commit as aL, type LogOpts as aM, type FetchOpts as aN, type ForceWithLeaseOpts as aO, type PushOpts as aP, type AddOpts as aQ, type BranchInfo as aR, type BranchOpts as aS, type BranchCreateOpts as aT, type BranchDeleteOpts as aU, type CheckoutBranchOpts as aV, type CheckoutPathOpts as aW, type CheckoutOpts as aX, type CommitOpts as aY, type CommitResult as aZ, type DiffOpts as a_, type LsTreeObjectType$1 as aa, type ParsedCommit as ab, type ParsedLsTreeEntry as ac, type ParsedWorktree as ad, type PorcelainV2Entry as ae, parseGitLog as af, parseGitProgress as ag, parseJson as ah, parseKeyValue as ai, parseLfsProgress as aj, parseLines as ak, parseLsRemote as al, parseLsTree as am, parsePorcelainV2 as an, parseRecords as ao, parseWorktreeList as ap, type CloneConfigSchema as aq, type CloneHttpVariable as ar, type CloneConfigKey as as, type CloneConfig as at, isCloneConfigKey as au, cloneConfigArgs as av, type EnvAllowlistAdjustment as aw, type EnvInheritancePredicate as ax, DEFAULT_ENV_ALLOWLIST as ay, resolveInheritedEnv as az, type ExecutionContext as b, type LfsPreDownloadOpts as b$, type DiffResult as b0, type MergeOpts as b1, type MergeResult as b2, type PullOpts as b3, type ResetOpts as b4, type RmOpts as b5, type StashEntry as b6, type StashPushOpts as b7, type StashApplyOpts as b8, type SwitchOpts as b9, type SubmoduleForeachOpts as bA, type SubmoduleSyncOpts as bB, type SubmoduleSetBranchOpts as bC, type SubmoduleInfo as bD, type LfsStatus as bE, type LfsPullOpts as bF, type LfsPushOpts as bG, type LfsStatusOpts as bH, type LfsPruneOpts as bI, type LfsFetchOpts as bJ, type RepoLfsInstallOpts as bK, type RepoLfsUninstallOpts as bL, type LfsFileEntry as bM, type LfsLsFilesOpts as bN, type LfsTrackEntry as bO, type LfsTrackOpts as bP, type LfsLockEntry as bQ, type LfsLockOpts as bR, type LfsUnlockOpts as bS, type LfsLocksOpts as bT, type LfsCheckoutOpts as bU, type LfsMigrateInfoOpts as bV, type LfsMigrateImportOpts as bW, type LfsMigrateExportOpts as bX, type LfsEnvInfo as bY, type LfsPreUploadOpts as bZ, type LfsPreUploadResult as b_, type TagInfo as ba, type TagListOpts as bb, type TagCreateOpts as bc, type CherryPickOpts as bd, type CleanOpts as be, type MvOpts as bf, type RebaseOpts as bg, type RestoreOpts as bh, type RevertOpts as bi, type ShowOpts as bj, type RevParsePathQuery as bk, type RevParseBooleanQuery as bl, type RevParseListOpts as bm, type RevParseListQuery as bn, type RevParseRefBaseOpts as bo, type RevParseRefOpts as bp, type RevParseQuietRefOpts as bq, type RevParseAnyRefOpts as br, type RevParseOtherQuery as bs, type RevParsePathFormat as bt, type RevParsePathOpts as bu, type SubmoduleOpts as bv, type SubmoduleAddOpts as bw, type SubmoduleDeinitOpts as bx, type SubmoduleStatusOpts as by, type SubmoduleSummaryOpts as bz, type ExecOpts as c, type LfsPreDownloadResult as c0, type Worktree as c1, type WorktreeAddOpts as c2, type WorktreeRemoveOpts as c3, type WorktreePruneOpts as c4, type WorktreeMoveOpts as c5, type WorktreeRepairOpts as c6, type WorktreeLockOpts as c7, type WorktreeOperations as c8, type LfsOperations as c9, type LfsProgress as cA, type GitOutput as cB, type GitErrorKind as cC, type GitErrorCategory as cD, GitArgumentError as cE, type Runtime as cF, type LfsMode as cG, type OutputContract as cH, type CommandSpec as cI, type CredentialRequest as cJ, type Credential as cK, type CredentialConfig as cL, type AuditEventStart as cM, type AuditEventEnd as cN, type AuditEvent as cO, type TraceEvent as cP, type LfsExtraOperations as ca, type BranchOperations as cb, type StashOperations as cc, type TagOperations as cd, type RemoteInfo as ce, type RemoteAddOpts as cf, type RemoteSetHeadOpts as cg, type RemoteShowOpts as ch, type RemotePruneOpts as ci, type RemoteUpdateOpts as cj, type RemoteSetBranchesOpts as ck, type RemoteUrlOpts as cl, type RemoteOperations as cm, type ConfigEntry as cn, type ConfigGetOpts as co, type ConfigSetOpts as cp, type ConfigListOpts as cq, type ConfigSchema as cr, type ConfigKey as cs, type ConfigOperations as ct, type SubmoduleOperations as cu, type NonEmptyString as cv, type NonEmptyOperand as cw, nonEmpty as cx, isNonEmpty as cy, type GitProgress as cz, GitError as d, type GitOpenOptions as e, type CloneOpts as f, type LsRemoteResult as g, type CommandExecOpts as h, type GlobalConfigOperations as i, type GlobalLfsOperations as j, type CompoundDecimalParser as k, COMPOUND_DECIMALS as l, type GitDecimalParser as m, type GitDecimalLiteral as n, type GitDecimalValue as o, type AtMost$1 as p, type AddDigit as q, type GitIntegerValue as r, type GitScalarParser as s, type Evidence as t, type Constraint as u, type GitBooleanSource as v, type GitDecimalCallbacks as w, type GitIntegerProfile as x, type GitNumericParser as y, type Constrained as z };
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4K65HJ37cjs = require('./chunk-4K65HJ37.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _chunkJDCCYWIXcjs = require('./chunk-JDCCYWIX.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSKN5H7RXcjs = require('./chunk-SKN5H7RX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ var _chunkUHZWPYTFcjs = require('./chunk-UHZWPYTF.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkRWKMVYO5cjs = require('./chunk-RWKMVYO5.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -65,4 +65,4 @@ var _chunk6HDMSFY7cjs = require('./chunk-6HDMSFY7.cjs');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
exports.CliRunner =
|
|
68
|
+
exports.CliRunner = _chunkRWKMVYO5cjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunkRWKMVYO5cjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunkRWKMVYO5cjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunkRWKMVYO5cjs.GitArgumentError; exports.GitError = _chunkRWKMVYO5cjs.GitError; exports.LEGACY_GIT_VERSION = _chunkSKN5H7RXcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkSKN5H7RXcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunk4K65HJ37cjs.NodeExecAdapter; exports.NodeFsAdapter = _chunk4K65HJ37cjs.NodeFsAdapter; exports.TypeGit = _chunk4K65HJ37cjs.TypeGit; exports.cloneConfigArgs = _chunkSKN5H7RXcjs.cloneConfigArgs; exports.createGit = _chunkSKN5H7RXcjs.createGit; exports.createGitSync = _chunkSKN5H7RXcjs.createGitSync; exports.createNodeAdapters = _chunk4K65HJ37cjs.createNodeAdapters; exports.detectErrorCategory = _chunkRWKMVYO5cjs.detectErrorCategory; exports.isCloneConfigKey = _chunkSKN5H7RXcjs.isCloneConfigKey; exports.isNonEmpty = _chunkRWKMVYO5cjs.isNonEmpty; exports.nonEmpty = _chunkRWKMVYO5cjs.nonEmpty; exports.parseGitLog = _chunkRWKMVYO5cjs.parseGitLog; exports.parseGitProgress = _chunkRWKMVYO5cjs.parseGitProgress; exports.parseJson = _chunkRWKMVYO5cjs.parseJson; exports.parseKeyValue = _chunkRWKMVYO5cjs.parseKeyValue; exports.parseLfsProgress = _chunkRWKMVYO5cjs.parseLfsProgress; exports.parseLines = _chunkRWKMVYO5cjs.parseLines; exports.parseLsRemote = _chunkRWKMVYO5cjs.parseLsRemote; exports.parseLsTree = _chunkRWKMVYO5cjs.parseLsTree; exports.parsePorcelainV2 = _chunkRWKMVYO5cjs.parsePorcelainV2; exports.parseRecords = _chunkRWKMVYO5cjs.parseRecords; exports.parseWorktreeList = _chunkRWKMVYO5cjs.parseWorktreeList; exports.resolveInheritedEnv = _chunkRWKMVYO5cjs.resolveInheritedEnv;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.cjs';
|
|
2
|
-
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-
|
|
3
|
-
export { aQ as AddOpts, A as AuditConfig,
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-DVs3pi2e.cjs';
|
|
3
|
+
export { aQ as AddOpts, A as AuditConfig, cO as AuditEvent, cN as AuditEventEnd, cM as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cI as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cK as Credential, cL as CredentialConfig, cJ as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cE as GitArgumentError, d as GitError, cD as GitErrorCategory, cC as GitErrorKind, e as GitOpenOptions, cB as GitOutput, a4 as GitOutputMode, cz as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cG as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cA as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cw as NonEmptyOperand, cv as NonEmptyString, cH as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cF as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cP as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cy as isNonEmpty, cx as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-CJUJ4264.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.js';
|
|
2
|
-
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-
|
|
3
|
-
export { aQ as AddOpts, A as AuditConfig,
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-C8wHgA_S.js';
|
|
3
|
+
export { aQ as AddOpts, A as AuditConfig, cO as AuditEvent, cN as AuditEventEnd, cM as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cI as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cK as Credential, cL as CredentialConfig, cJ as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cE as GitArgumentError, d as GitError, cD as GitErrorCategory, cC as GitErrorKind, e as GitOpenOptions, cB as GitOutput, a4 as GitOutputMode, cz as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cG as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cA as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cw as NonEmptyOperand, cv as NonEmptyString, cH as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cF as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cP as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cy as isNonEmpty, cx as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-CJUJ4264.cjs';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
NodeFsAdapter,
|
|
4
4
|
TypeGit,
|
|
5
5
|
createNodeAdapters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YCSKHC3M.js";
|
|
7
7
|
import {
|
|
8
8
|
LEGACY_GIT_VERSION,
|
|
9
9
|
MIN_GIT_VERSION,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createGit,
|
|
12
12
|
createGitSync,
|
|
13
13
|
isCloneConfigKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RR5Q2UP2.js";
|
|
15
15
|
import {
|
|
16
16
|
CliRunner,
|
|
17
17
|
DEFAULT_ENV_ALLOWLIST,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
parseRecords,
|
|
34
34
|
parseWorktreeList,
|
|
35
35
|
resolveInheritedEnv
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SXHFNCJZ.js";
|
|
37
37
|
export {
|
|
38
38
|
CliRunner,
|
|
39
39
|
DEFAULT_ENV_ALLOWLIST,
|