@statewalker/vcs-commands 0.13.0 → 0.15.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/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- 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 +27 -2
- 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/branch-command.d.ts +14 -2
- package/dist/commands/branch-command.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/batch-format.d.ts +8 -12
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -1
- package/dist/commands/cat-file/cat-file-command.d.ts +39 -5
- 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/checkout-command.d.ts +4 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-paths.d.ts +9 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-pick-command.d.ts +3 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +0 -9
- package/dist/commands/clean-interactive.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +17 -0
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/column/column-config.d.ts +23 -0
- package/dist/commands/column/column-config.d.ts.map +1 -0
- package/dist/commands/column/column-layout.d.ts +129 -0
- package/dist/commands/column/column-layout.d.ts.map +1 -0
- package/dist/commands/column/index.d.ts +3 -0
- package/dist/commands/column/index.d.ts.map +1 -0
- package/dist/commands/column-command.d.ts +59 -0
- package/dist/commands/column-command.d.ts.map +1 -0
- package/dist/commands/comment-char-config.d.ts +15 -0
- package/dist/commands/comment-char-config.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +30 -2
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +12 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/credential-helper.d.ts +214 -0
- package/dist/commands/credential-helper.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +33 -3
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/diff-color-config.d.ts +4 -0
- package/dist/commands/diff-color-config.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +12 -0
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +89 -2
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-import-command.d.ts +113 -8
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-stream-support.d.ts +0 -9
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +23 -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 +31 -3
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +173 -7
- package/dist/commands/history-command.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts +19 -0
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index-refresh.d.ts +36 -0
- package/dist/commands/index-refresh.d.ts.map +1 -0
- package/dist/commands/index.d.ts +9 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +7 -6
- package/dist/commands/init-command.d.ts +20 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/local-transport.d.ts +40 -2
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +7 -0
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +11 -0
- package/dist/commands/log-output.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/maintenance-schedule-command.d.ts +122 -0
- package/dist/commands/maintenance-schedule-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +13 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-index-command.d.ts +42 -0
- package/dist/commands/merge-index-command.d.ts.map +1 -0
- package/dist/commands/merge-one-file.d.ts +129 -0
- package/dist/commands/merge-one-file.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +40 -4
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/object-disk-info.d.ts +35 -0
- package/dist/commands/object-disk-info.d.ts.map +1 -0
- package/dist/commands/octopus-merge.d.ts +3 -3
- package/dist/commands/octopus-merge.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/pull-command.d.ts +55 -7
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +18 -1
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/range-diff-command.d.ts +37 -1
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +13 -1
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/for-each-ref-command.d.ts +3 -2
- package/dist/commands/ref-filter/for-each-ref-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 +26 -1
- package/dist/commands/ref-filter/ref-format.d.ts.map +1 -1
- package/dist/commands/ref-filter/ref-listing-command.d.ts +9 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -1
- package/dist/commands/remote-transport.d.ts +27 -0
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +18 -2
- package/dist/commands/repack-command.d.ts.map +1 -1
- package/dist/commands/repo-command.d.ts +2 -7
- package/dist/commands/repo-command.d.ts.map +1 -1
- package/dist/commands/reset-command.d.ts +4 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +65 -0
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +3 -0
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-filenames.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +17 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +21 -4
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/served-lazy-fetch.d.ts +61 -0
- package/dist/commands/served-lazy-fetch.d.ts.map +1 -0
- package/dist/commands/signing.d.ts +37 -4
- 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/status-color-config.d.ts +33 -0
- package/dist/commands/status-color-config.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +15 -0
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/status-format.d.ts +46 -4
- package/dist/commands/status-format.d.ts.map +1 -1
- package/dist/commands/tag-command.d.ts +15 -1
- package/dist/commands/tag-command.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts +14 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/verify-command.d.ts +22 -2
- package/dist/commands/verify-command.d.ts.map +1 -1
- package/dist/commands/worktree-add-command.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +31 -6
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-CPceUCP2.js → commands-DT3VEv50.js} +15168 -16842
- package/dist/errors/commit-errors.d.ts +37 -1
- package/dist/errors/commit-errors.d.ts.map +1 -1
- package/dist/errors/git-api-error.d.ts +6 -0
- package/dist/errors/git-api-error.d.ts.map +1 -1
- package/dist/errors/index.js +44 -3
- package/dist/{fsck-tbrPZX2q.js → fsck-BZ508Elg.js} +2 -2
- package/dist/git-command.d.ts +33 -1
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +104 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/{remote-transport-C0OSJtor.js → local-transport-D98U6p4d.js} +228 -692
- package/dist/{maintenance-run-command-UiSIaeP8.js → maintenance-run-command-DZFnbnbo.js} +2366 -108
- package/dist/remote-config/remote-config-store.d.ts +6 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/remote-transport-zvSqwpOB.js +4865 -0
- package/dist/results/cherry-pick-result.d.ts +4 -3
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +7 -0
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/diff-words.d.ts +14 -3
- package/dist/results/diff-words.d.ts.map +1 -1
- package/dist/results/index.js +1 -1
- package/dist/results/line-prefix-sink.d.ts +50 -0
- package/dist/results/line-prefix-sink.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +4 -3
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +5 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +4 -3
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/{results-CkS1p1CH.js → results-rF81cQse.js} +1788 -247
- package/dist/transport-command.d.ts +13 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +21 -13
- package/src/commands/add-command.ts +15 -2
- package/src/commands/add-patch/patch-backend.ts +6 -44
- package/src/commands/archive/archive-command.ts +7 -3
- package/src/commands/archive/remote-archive-command.ts +45 -4
- package/src/commands/archive/upload-archive-writer.ts +34 -22
- package/src/commands/branch-command.ts +57 -4
- 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/batch-format.ts +17 -18
- package/src/commands/cat-file/cat-file-command.ts +182 -48
- package/src/commands/check-ignore-command.ts +110 -21
- package/src/commands/checkout-command.ts +149 -21
- package/src/commands/checkout-index-command.ts +2 -1
- package/src/commands/checkout-paths.ts +13 -0
- package/src/commands/cherry-pick-command.ts +9 -0
- package/src/commands/clean-interactive.ts +20 -74
- package/src/commands/clone-command.ts +102 -11
- package/src/commands/column/column-config.ts +63 -0
- package/src/commands/column/column-layout.ts +396 -0
- package/src/commands/column/index.ts +2 -0
- package/src/commands/column-command.ts +171 -0
- package/src/commands/comment-char-config.ts +42 -0
- package/src/commands/commit-command.ts +93 -18
- package/src/commands/config-command.ts +28 -0
- package/src/commands/credential-helper.ts +807 -0
- package/src/commands/default-branch.ts +57 -5
- package/src/commands/diff-color-config.ts +23 -10
- package/src/commands/diff-command.ts +25 -2
- package/src/commands/fast-export/fast-export-command.ts +661 -35
- package/src/commands/fast-export/fast-import-command.ts +694 -94
- package/src/commands/fast-export/fast-stream-support.ts +18 -1
- package/src/commands/fetch-command.ts +116 -16
- package/src/commands/fsck/fsck-object-checks.ts +3 -1
- package/src/commands/git-hooks.ts +96 -5
- package/src/commands/history-command.ts +952 -20
- package/src/commands/index-host.ts +51 -0
- package/src/commands/index-refresh.ts +121 -0
- package/src/commands/index.ts +9 -0
- package/src/commands/init-command.ts +57 -4
- package/src/commands/legacy-remotes.ts +4 -20
- package/src/commands/local-transport.ts +183 -18
- package/src/commands/log-command.ts +39 -1
- package/src/commands/log-output.ts +31 -4
- package/src/commands/ls-tree-command.ts +20 -12
- package/src/commands/maintenance-schedule-command.ts +418 -0
- package/src/commands/merge-command.ts +42 -8
- package/src/commands/merge-index-command.ts +202 -0
- package/src/commands/merge-one-file.ts +451 -0
- package/src/commands/merge-support.ts +169 -15
- package/src/commands/object-disk-info.ts +169 -0
- package/src/commands/octopus-merge.ts +37 -128
- package/src/commands/plumbing-input.ts +3 -1
- package/src/commands/promisor-remote-reply.ts +338 -56
- package/src/commands/promisor-remote.ts +39 -6
- package/src/commands/pull-command.ts +173 -27
- package/src/commands/push-command.ts +55 -6
- package/src/commands/range-diff/range-diff-command.ts +86 -3
- package/src/commands/read-tree-command.ts +2 -2
- package/src/commands/rebase-command.ts +46 -1
- package/src/commands/ref-filter/for-each-ref-command.ts +4 -3
- 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 +68 -7
- package/src/commands/ref-filter/ref-format.ts +85 -11
- package/src/commands/ref-filter/ref-listing-command.ts +30 -0
- package/src/commands/remote-command.ts +2 -2
- package/src/commands/remote-transport.ts +66 -3
- package/src/commands/repack-command.ts +75 -9
- package/src/commands/repo-command.ts +6 -70
- package/src/commands/reset-command.ts +11 -1
- package/src/commands/restore-command.ts +1 -0
- package/src/commands/rev-list-command.ts +205 -3
- package/src/commands/revert-command.ts +9 -0
- package/src/commands/revision-filenames.ts +32 -4
- package/src/commands/revision-range.ts +2 -2
- package/src/commands/revision-resolver.ts +21 -1
- package/src/commands/serve-repository.ts +42 -11
- package/src/commands/served-lazy-fetch.ts +164 -0
- package/src/commands/signing.ts +103 -12
- package/src/commands/split-cmdline.ts +32 -0
- package/src/commands/status-color-config.ts +92 -0
- package/src/commands/status-command.ts +50 -2
- package/src/commands/status-format.ts +198 -50
- package/src/commands/tag-command.ts +57 -2
- package/src/commands/tree-restore.ts +17 -0
- package/src/commands/verify-command.ts +84 -12
- package/src/commands/worktree-add-command.ts +2 -0
- package/src/commands/worktree-overwrite-checks.ts +75 -14
- package/src/errors/commit-errors.ts +52 -2
- package/src/errors/git-api-error.ts +7 -0
- package/src/git-command.ts +105 -4
- package/src/git.ts +153 -0
- package/src/remote-config/remote-config-store.ts +16 -0
- package/src/results/cherry-pick-result.ts +4 -3
- package/src/results/diff-output.ts +8 -0
- package/src/results/diff-words.ts +160 -32
- package/src/results/line-prefix-sink.ts +102 -0
- package/src/results/merge-result.ts +4 -3
- package/src/results/rebase-result.ts +5 -0
- package/src/results/revert-result.ts +4 -3
- package/src/transport-command.ts +79 -3
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's credential helpers (credential.c): `credential.helper` programs asked for HTTP
|
|
3
|
+
* credentials with the key=value text protocol, run through the host's hook runner.
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* // what `git -c credential.helper=store fetch` asks after a 401
|
|
7
|
+
* const helper = credentialHelperOf(workingCopy);
|
|
8
|
+
* await git.fetch().setCredentialHelper(helper).call();
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* A {@link GitCredential} is git's `struct credential`; {@link CredentialHelpers} runs
|
|
12
|
+
* `credential_fill`, `credential_approve` and `credential_reject` over one, and
|
|
13
|
+
* {@link createConfigCredentialHelper} adapts them to the transports' `HttpCredentialHelper`
|
|
14
|
+
* as http.c drives its `http_auth`. Nothing runs without a hook runner.
|
|
15
|
+
*/
|
|
16
|
+
import type { HttpCredentialHelper } from "@statewalker/vcs-transport";
|
|
17
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
18
|
+
import { HookSession } from "./git-hooks.js";
|
|
19
|
+
/** The git version whose credential protocol is spoken (2.46 added capabilities). */
|
|
20
|
+
export type CredentialCompatibility = "2.43" | "2.56";
|
|
21
|
+
/** One of git's credential capabilities (`struct credential_capability`). */
|
|
22
|
+
interface CredentialCapability {
|
|
23
|
+
requestInitial: boolean;
|
|
24
|
+
requestHelper: boolean;
|
|
25
|
+
response: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** The step a credential is read or written for (`enum credential_op_type`). */
|
|
28
|
+
export type CredentialOp = "initial" | "helper" | "response";
|
|
29
|
+
/**
|
|
30
|
+
* git's `struct credential`: what is known about one remote's credentials, as handed to and
|
|
31
|
+
* read from the helpers.
|
|
32
|
+
*/
|
|
33
|
+
export interface GitCredential {
|
|
34
|
+
protocol?: string;
|
|
35
|
+
host?: string;
|
|
36
|
+
path?: string;
|
|
37
|
+
username?: string;
|
|
38
|
+
password?: string;
|
|
39
|
+
/** 2.46+: the ready credential of {@link authtype} */
|
|
40
|
+
credential?: string;
|
|
41
|
+
authtype?: string;
|
|
42
|
+
ephemeral: boolean;
|
|
43
|
+
oauthRefreshToken?: string;
|
|
44
|
+
/** Seconds since the epoch; undefined is git's TIME_MAX */
|
|
45
|
+
passwordExpiryUtc?: number;
|
|
46
|
+
/** The `WWW-Authenticate` challenges (`wwwauth[]`) */
|
|
47
|
+
wwwauth: string[];
|
|
48
|
+
/** `state[]` a helper gave, sent back on the next step */
|
|
49
|
+
stateHeaders: string[];
|
|
50
|
+
stateHeadersToSend: string[];
|
|
51
|
+
multistage: boolean;
|
|
52
|
+
quit: boolean;
|
|
53
|
+
approved: boolean;
|
|
54
|
+
configured: boolean;
|
|
55
|
+
useHttpPath: boolean;
|
|
56
|
+
usernameFromProto: boolean;
|
|
57
|
+
sanitizePrompt: boolean;
|
|
58
|
+
protectProtocol: boolean;
|
|
59
|
+
/** `credential.helper` values in config order, after resets */
|
|
60
|
+
helpers: string[];
|
|
61
|
+
capaAuthtype: CredentialCapability;
|
|
62
|
+
capaState: CredentialCapability;
|
|
63
|
+
}
|
|
64
|
+
/** git's `CREDENTIAL_INIT`. */
|
|
65
|
+
export declare function newCredential(): GitCredential;
|
|
66
|
+
/** A death of git's credential code (`die()`): its `fatal:` line. */
|
|
67
|
+
export declare class CredentialError extends Error {
|
|
68
|
+
constructor(message: string);
|
|
69
|
+
}
|
|
70
|
+
/** `credential_set_all_capabilities` */
|
|
71
|
+
export declare function setAllCapabilities(c: GitCredential, op: CredentialOp): void;
|
|
72
|
+
/** `credential_next_state`: the `state[]` a helper gave become the ones sent next. */
|
|
73
|
+
export declare function nextState(c: GitCredential): void;
|
|
74
|
+
/**
|
|
75
|
+
* `credential_read`: applies the key=value lines of `text` up to an empty line (or its end)
|
|
76
|
+
* to `c`. A line without `=` stops the reading with git's warning (false is returned); keys
|
|
77
|
+
* git does not know are ignored. Under 2.43 the keys 2.46 added are unknown too.
|
|
78
|
+
*/
|
|
79
|
+
export declare function readCredential(c: GitCredential, text: string, op: CredentialOp, compatibility?: CredentialCompatibility, warn?: (line: string) => void): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* `credential_write`: the lines git hands a helper (`helper`: `get`) or hands back
|
|
82
|
+
* (`response`: `store`, `erase`, and `git credential`'s output).
|
|
83
|
+
*
|
|
84
|
+
* @throws CredentialError for a value holding a newline (or, 2.46+, a carriage return under
|
|
85
|
+
* `credential.protectProtocol`)
|
|
86
|
+
*/
|
|
87
|
+
export declare function writeCredential(c: GitCredential, op: CredentialOp, compatibility?: CredentialCompatibility): string;
|
|
88
|
+
/**
|
|
89
|
+
* `credential_from_url`: `c` from a full URL.
|
|
90
|
+
*
|
|
91
|
+
* @throws CredentialError when git dies on it (`credential url cannot be parsed: <url>`),
|
|
92
|
+
* after handing its warning to `warn`
|
|
93
|
+
*/
|
|
94
|
+
export declare function credentialFromUrl(c: GitCredential, url: string, warn?: (line: string) => void): void;
|
|
95
|
+
/**
|
|
96
|
+
* The remote as git's prompt names it (`Username for '<this>': `): `credential_format`
|
|
97
|
+
* (2.46+'s `credential.sanitizePrompt`, on by default) or `credential_describe`.
|
|
98
|
+
*/
|
|
99
|
+
export declare function describeCredential(c: GitCredential, compatibility?: CredentialCompatibility): string;
|
|
100
|
+
/** A configuration entry as {@link CredentialHelpers} reads it: canonical key, raw value. */
|
|
101
|
+
export interface CredentialConfigEntry {
|
|
102
|
+
key: string;
|
|
103
|
+
value: string | undefined;
|
|
104
|
+
}
|
|
105
|
+
/** What a helper did (see {@link CredentialHelpersOptions.run}). */
|
|
106
|
+
export interface CredentialHelperRun {
|
|
107
|
+
exitCode: number;
|
|
108
|
+
stdout: Uint8Array;
|
|
109
|
+
stderr: Uint8Array;
|
|
110
|
+
}
|
|
111
|
+
/** How {@link CredentialHelpers} reaches the configuration and the helpers. */
|
|
112
|
+
export interface CredentialHelpersOptions {
|
|
113
|
+
/** The configuration's `credential.*` entries, in config order */
|
|
114
|
+
entries(): readonly CredentialConfigEntry[];
|
|
115
|
+
/**
|
|
116
|
+
* Runs `command` (the helper and its operation) through the shell with `stdin`; undefined
|
|
117
|
+
* when nothing can run a program (no hook runner): no helper is asked
|
|
118
|
+
*/
|
|
119
|
+
run(command: string, stdin: string): Promise<CredentialHelperRun | undefined>;
|
|
120
|
+
/** What git writes to stderr meanwhile: helpers' stderr and git's warnings, in order */
|
|
121
|
+
onStderr?(text: string): void;
|
|
122
|
+
/** The protocol's version (default `2.56`) */
|
|
123
|
+
compatibility?: CredentialCompatibility;
|
|
124
|
+
/** The clock, in milliseconds (default `Date.now`) */
|
|
125
|
+
now?(): number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* credential.c's helper sequence over a {@link GitCredential}: `credential_fill`,
|
|
129
|
+
* `credential_approve`, `credential_reject`.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const c = newCredential();
|
|
134
|
+
* credentialFromUrl(c, "https://example.com/repo.git");
|
|
135
|
+
* if (await helpers.fill(c, true)) use(c.username, c.password);
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare class CredentialHelpers {
|
|
139
|
+
private readonly options;
|
|
140
|
+
private readonly compatibility;
|
|
141
|
+
constructor(options: CredentialHelpersOptions);
|
|
142
|
+
private stderr;
|
|
143
|
+
private nowSeconds;
|
|
144
|
+
/**
|
|
145
|
+
* `credential_apply_config`: the helpers, `credential.username` and `useHttpPath` of every
|
|
146
|
+
* `credential.*` / `credential.<url>.*` entry matching `c`, in config order; once per
|
|
147
|
+
* credential. The path is dropped for http(s) unless `useHttpPath`.
|
|
148
|
+
*
|
|
149
|
+
* @throws CredentialError without a host or a protocol
|
|
150
|
+
* @throws InvalidConfigError for a valueless entry (`config_error_nonbool`)
|
|
151
|
+
*/
|
|
152
|
+
applyConfig(c: GitCredential): void;
|
|
153
|
+
/** `credential_do` + `run_credential_helper` */
|
|
154
|
+
private runHelper;
|
|
155
|
+
/** A username and a password, or (2.46+) a `credential`: nothing more to ask for. */
|
|
156
|
+
private full;
|
|
157
|
+
/**
|
|
158
|
+
* `credential_fill` up to the prompt: asks the helpers in order until one completes the
|
|
159
|
+
* credential (a username and a password, 2.46+ also a `credential`).
|
|
160
|
+
*
|
|
161
|
+
* @param allCapabilities the caller takes every capability (http.c: true; 2.46+ only)
|
|
162
|
+
* @returns whether the credential is complete (false: git would prompt)
|
|
163
|
+
* @throws CredentialError when a helper said `quit` (`credential helper '<h>' told us to quit`)
|
|
164
|
+
*/
|
|
165
|
+
fill(c: GitCredential, allCapabilities?: boolean): Promise<boolean>;
|
|
166
|
+
/** `credential_approve`: a complete, unexpired credential stored to every helper (`store`). */
|
|
167
|
+
approve(c: GitCredential): Promise<void>;
|
|
168
|
+
/** `credential_reject`: the credential erased from every helper (`erase`), then forgotten. */
|
|
169
|
+
reject(c: GitCredential): Promise<void>;
|
|
170
|
+
}
|
|
171
|
+
/** Options of {@link createConfigCredentialHelper}. */
|
|
172
|
+
export type ConfigCredentialHelperOptions = CredentialHelpersOptions;
|
|
173
|
+
/**
|
|
174
|
+
* An `HttpCredentialHelper` speaking git's helper protocol (`credential.helper`), as http.c
|
|
175
|
+
* drives its `http_auth`: a 401 starts a credential from the request's URL (its user, its
|
|
176
|
+
* `WWW-Authenticate` challenges) and fills it through the helpers (every capability, 2.46+);
|
|
177
|
+
* `approve` stores it, `reject` erases it, both with what the helpers said during the fill.
|
|
178
|
+
*/
|
|
179
|
+
export declare function createConfigCredentialHelper(options: ConfigCredentialHelperOptions): HttpCredentialHelper;
|
|
180
|
+
/** Options of {@link credentialHelpersOf} and {@link credentialHelperOf}. */
|
|
181
|
+
export interface CredentialHelperOfOptions {
|
|
182
|
+
/** The session the helpers run in (default: a new one over the working copy) */
|
|
183
|
+
hooks?: HookSession;
|
|
184
|
+
/** Where helpers' stderr and git's warnings go (default: the session's hook output) */
|
|
185
|
+
onStderr?(text: string): void;
|
|
186
|
+
/** The clock, in milliseconds (default `Date.now`) */
|
|
187
|
+
now?(): number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* How {@link CredentialHelpers} reach a repository: its configuration's `credential.*`
|
|
191
|
+
* entries (command line included), its helpers run through the host's hook runner in the
|
|
192
|
+
* worktree's top (no runner: none runs), the protocol of the runner's compatibility.
|
|
193
|
+
*/
|
|
194
|
+
export declare function credentialHelpersOptionsOf(workingCopy: WorkingCopy, options?: CredentialHelperOfOptions): CredentialHelpersOptions;
|
|
195
|
+
/** git's credential.c over a repository (see {@link credentialHelpersOptionsOf}). */
|
|
196
|
+
export declare function credentialHelpersOf(workingCopy: WorkingCopy, options?: CredentialHelperOfOptions): CredentialHelpers;
|
|
197
|
+
/**
|
|
198
|
+
* The credential helper git builds from a repository's configuration (`credential.helper`,
|
|
199
|
+
* `credential.<url>.*`, command line included): see {@link credentialHelpersOptionsOf} and
|
|
200
|
+
* {@link createConfigCredentialHelper}.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```ts
|
|
204
|
+
* await git.push().setCredentialHelper(credentialHelperOf(workingCopy)).call();
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
export declare function credentialHelperOf(workingCopy: WorkingCopy, options?: CredentialHelperOfOptions): HttpCredentialHelper;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the configuration names any credential helper (`credential.helper` or
|
|
210
|
+
* `credential.<url>.helper`, empty resets included).
|
|
211
|
+
*/
|
|
212
|
+
export declare function configuresCredentialHelper(workingCopy: WorkingCopy): boolean;
|
|
213
|
+
export {};
|
|
214
|
+
//# sourceMappingURL=credential-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-helper.d.ts","sourceRoot":"","sources":["../../src/commands/credential-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAE3D,qFAAqF;AACrF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,6EAA6E;AAC7E,UAAU,oBAAoB;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,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B,CAS1B;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,yBAA8B,GACtC,iBAAiB,CAEnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,yBAA8B,GACtC,oBAAoB,CAEtB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAG5E"}
|
|
@@ -31,13 +31,43 @@ export declare class InvalidInitialBranchError extends Error {
|
|
|
31
31
|
/** Whether `name` is a valid branch name (`check_refname_format("refs/heads/<name>")`). */
|
|
32
32
|
export declare function isValidBranchName(name: string): boolean;
|
|
33
33
|
/**
|
|
34
|
-
* The
|
|
35
|
-
*
|
|
34
|
+
* The configuration of the new repository, as git's `repo_config_get_string` reads it once
|
|
35
|
+
* `create_repository` made it: a loaded `GitWorkingCopyConfig` of its git directory (its
|
|
36
|
+
* values with their origins, in git's order).
|
|
37
|
+
*/
|
|
38
|
+
export interface NewRepositoryConfig {
|
|
39
|
+
listWithOrigin(): {
|
|
40
|
+
key: string;
|
|
41
|
+
text: string | undefined;
|
|
42
|
+
file?: string;
|
|
43
|
+
line?: number;
|
|
44
|
+
}[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The initial branch of a repository created now, from `config` (the new repository's, see
|
|
48
|
+
* {@link NewRepositoryConfig}); without one, from the protected configuration (system,
|
|
49
|
+
* global, command line, `gitdir:` conditions false). Without either, nothing is configured.
|
|
50
|
+
*
|
|
51
|
+
* The hint follows `options.compatibility` (default: the hook runner's, else 2.56): git 2.43
|
|
52
|
+
* calls `advise()` with its own text, whatever `advice.defaultBranchName` says, 2.5x
|
|
53
|
+
* `advise_if_enabled()`; `options.quiet` (`git init -q`) gives none in every version.
|
|
36
54
|
*
|
|
37
55
|
* @throws InvalidDefaultBranchError when `init.defaultBranch` names no valid branch (empty too)
|
|
38
56
|
* @throws MissingDefaultBranchValueError when `init.defaultBranch` has no value
|
|
39
57
|
*/
|
|
40
|
-
export declare function defaultInitialBranch(environment: GitHostEnvironment | undefined): Promise<DefaultBranch>;
|
|
58
|
+
export declare function defaultInitialBranch(environment: GitHostEnvironment | undefined, repositoryConfig?: NewRepositoryConfig, options?: DefaultInitialBranchOptions): Promise<DefaultBranch>;
|
|
59
|
+
/** How {@link defaultInitialBranch} words its hint. */
|
|
60
|
+
export interface DefaultInitialBranchOptions {
|
|
61
|
+
/** The git version whose hint is given; default the hook runner's, else `2.56` */
|
|
62
|
+
compatibility?: "2.43" | "2.56";
|
|
63
|
+
/** `git init -q`: no hint (`repo_default_branch_name(r, quiet)`) */
|
|
64
|
+
quiet?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* git 2.43's `default_branch_name_advice`, as its `advise()` prints it (an empty line is
|
|
68
|
+
* `hint: `, with its space; no "Disable this message" line).
|
|
69
|
+
*/
|
|
70
|
+
export declare function defaultBranchHint243(name: string): string[];
|
|
41
71
|
/** git's `default_branch_name_advice` (2.5x, or 3.0), as `advise_if_enabled` prints it. */
|
|
42
72
|
export declare function defaultBranchHint(name: string, breakingChanges: boolean | undefined): string[];
|
|
43
73
|
/** A ref storage format git does not know: git dies (exit 128). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-branch.d.ts","sourceRoot":"","sources":["../../src/commands/default-branch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default-branch.d.ts","sourceRoot":"","sources":["../../src/commands/default-branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,oEAAoE;AACpE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,uEAAuE;AACvE,qBAAa,yBAA0B,SAAQ,K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MAAM,GACnB,MAAM,GAAG,SAAS,CAGpB;AAED,qFAAqF;AACrF,qBAAa,8BAA+B,SAAQ,KAAK;IAC9C,IAAI,SAAoC;IACjD,QAAQ,CAAC,KAAK,WAEZ;IACF,cAEC;CACF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,kBAAkB,GAAG,SAAS,EAC3C,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,MAAM,EAAE,CAAC,CAoCnB"}
|
|
@@ -58,6 +58,10 @@ export interface DiffColorSettings {
|
|
|
58
58
|
colorMovedWs: number;
|
|
59
59
|
wsErrorHighlight: number;
|
|
60
60
|
}
|
|
61
|
+
/** Where a variable was read, as git names it when it dies */
|
|
62
|
+
export declare function badConfigVariableLine(key: string, file: string | undefined, line: number | undefined): string;
|
|
63
|
+
/** color.c's `git_config_colorbool` (`undefined` for git's unknown) */
|
|
64
|
+
export declare function readColorBool(key: string, value: string | undefined): "never" | "always" | "auto";
|
|
61
65
|
/**
|
|
62
66
|
* The color settings of a porcelain diff (`git_diff_ui_config` when `uiConfig`, else only
|
|
63
67
|
* the slots of `git_diff_basic_config`), then the command line's.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-color-config.d.ts","sourceRoot":"","sources":["../../src/commands/diff-color-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,WAAW,EAA4C,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,UAAU,EAOhB,MAAM,0BAA0B,CAAC;AAIlC,4FAA4F;AAC5F,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,I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GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EACjD,QAAQ,UAAO,GACd,iBAAiB,CAmJnB;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAEhE"}
|
|
@@ -354,6 +354,8 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
354
354
|
private mergeBase;
|
|
355
355
|
/** Whether `--rotate-to`/`--skip-to` need their exact path (`git diff`; not `git log`) */
|
|
356
356
|
private rotateStrict;
|
|
357
|
+
/** {@link callFormats} reports where diff.c's `diff_line_prefix` goes (`log --graph`) */
|
|
358
|
+
private linePrefix;
|
|
357
359
|
/** git's `has_changes` of the last call */
|
|
358
360
|
private changesFound;
|
|
359
361
|
/** git's `check_failed`: `--check` found an error in the last call */
|
|
@@ -400,6 +402,14 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
400
402
|
* @internal
|
|
401
403
|
*/
|
|
402
404
|
setRotateStrict(strict: boolean): this;
|
|
405
|
+
/**
|
|
406
|
+
* diff.c's `diff_line_prefix` (`log --graph`'s padding): {@link callFormats} gives the
|
|
407
|
+
* offsets in its output where it goes (`prefixPoints`, for `insertLinePrefix`): before
|
|
408
|
+
* every line, except where git's word diff leaves it out
|
|
409
|
+
*
|
|
410
|
+
* @internal
|
|
411
|
+
*/
|
|
412
|
+
setLinePrefixPoints(on: boolean): this;
|
|
403
413
|
/**
|
|
404
414
|
* The exit status `git diff` ends with (`diff_result_code`): bit 1 when `--exit-code` or
|
|
405
415
|
* `--quiet` is set and the last call found differences, bit 2 when its `--check` (the
|
|
@@ -651,6 +661,8 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
651
661
|
*/
|
|
652
662
|
callFormats(formats: DiffOutputFormat[], follow?: string): Promise<{
|
|
653
663
|
bytes?: Uint8Array;
|
|
664
|
+
/** With {@link setLinePrefixPoints}: where the line prefix goes in `bytes` */
|
|
665
|
+
prefixPoints?: number[];
|
|
654
666
|
followPath?: string;
|
|
655
667
|
followChange?: ChangeType.RENAME | ChangeType.COPY;
|
|
656
668
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAQL,KAAK,OAAO,EAKb,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAwB/C,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAIL,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAAK,eAAe,EAYrB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAQL,KAAK,OAAO,EAKb,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAwB/C,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAIL,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAAK,eAAe,EAYrB,MAAM,2BAA2B,CAAC;AAYnC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,wBAAwB,CAAC;AAkBhC,OAAO,EAGL,KAAK,mBAAmB,EACzB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;;OAKG;YACW,OAAO;IAgJrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IA8BvB;;;;;OAKG;YACW,gBAAgB;IAqE9B;;;;OAIG;YACW,QAAQ;IA0BtB;;;;OAIG;YACW,iBAAiB;IAU/B,0GAA0G;IAC1G,OAAO,CAAC,gBAAgB;IAmCxB,2FAA2F;YAC7E,YAAY;IAkC1B,4EAA4E;IAC5E,OAAO,KAAK,cAAc,GAGzB;IAED,OAAO,CAAC,OAAO;IAWf;;;OAGG;IACH,OAAO,CAAC,MAAM;IAmFd;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA+BxB;;;;OAIG;YACW,QAAQ;IA0ItB;;;;;OAKG;YACW,aAAa;IAgJ3B;;;;OAIG;YACW,QAAQ;IAetB;;;;OAIG;YACW,aAAa;IA6B3B;;;;OAIG;YACW,aAAa;IA0D3B;;;OAGG;YACW,YAAY;IA6C1B,sFAAsF;YACxE,UAAU;IAaxB,yEAAyE;YAC3D,OAAO;IASrB,oFAAoF;IACpF,OAAO,CAAC,WAAW;IAWnB;;;OAGG;YACW,SAAS;IAsBvB;;;;;;OAMG;YACW,YAAY;IA4J1B;;;OAGG;YACW,aAAa;YAyBb,MAAM;IAQpB;;OAEG;YACW,kBAAkB;CAiBjC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAaxD"}
|
|
@@ -33,7 +33,23 @@ export type ReencodeMode = "yes" | "no" | "abort";
|
|
|
33
33
|
* name get `reset` lines, annotated tags `tag` commands, at the end. Marks are numbered as
|
|
34
34
|
* git numbers them, so the stream is git's byte for byte.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* Paths after the revisions (`-- <path>...`, or {@link addPath}) limit the export as git's
|
|
37
|
+
* walk does: only commits changing them are written, with their parents rewritten past the
|
|
38
|
+
* others and their `M`/`D` lines limited to the paths; refs and tags of commits left out move
|
|
39
|
+
* to the nearest exported ancestor (git's `rewrite_commit`), or are reset to the null id when
|
|
40
|
+
* none is left. With `--import-marks`, paths imply `--full-tree`, as in git.
|
|
41
|
+
*
|
|
42
|
+
* `-M`, `-C` and `-C -C` ({@link setFindRenames}, {@link setFindCopies}) run diffcore's
|
|
43
|
+
* rename and copy detection over each commit's diff and write `R`/`C` lines as git does: a
|
|
44
|
+
* copy or rename whose source was already changed in the commit is written as the new
|
|
45
|
+
* file's `M` line, one that changes its content also gets one.
|
|
46
|
+
*
|
|
47
|
+
* `--anonymize` ({@link setAnonymize}) replaces paths (each component), ref names (after
|
|
48
|
+
* `refs/heads/`, `refs/tags/`, `refs/remotes/` or `refs/`), idents, commit and tag messages,
|
|
49
|
+
* blob contents and gitlink ids by git's counted tokens (`path0`, `ref1`, `User 2
|
|
50
|
+
* <user2@example.com>`, `subject 3`, `tag message 4`, `anonymous blob 5`), each kind
|
|
51
|
+
* numbered in the order git meets it, so the stream is git's byte for byte;
|
|
52
|
+
* `--anonymize-map` ({@link addAnonymizeMap}) keeps or maps given tokens.
|
|
37
53
|
*
|
|
38
54
|
* Version differences (`setCompatibility`): 2.43 finds a tag's signature only as a PGP
|
|
39
55
|
* signature after a newline and words several messages with a capital letter; 2.5x knows
|
|
@@ -41,6 +57,17 @@ export type ReencodeMode = "yes" | "no" | "abort";
|
|
|
41
57
|
*/
|
|
42
58
|
export declare class FastExportCommand extends PlumbingCommand {
|
|
43
59
|
private readonly revisions;
|
|
60
|
+
private readonly paths;
|
|
61
|
+
/** diff_options' `detect_rename`: the last of `-M`/`-C` wins, as git parses them. */
|
|
62
|
+
private detectRename?;
|
|
63
|
+
/** diff_options' `rename_score`, as the last `-M`/`-C` gave it (`true`: the default). */
|
|
64
|
+
private renameScore;
|
|
65
|
+
private anonymize;
|
|
66
|
+
/** `--anonymize-map` tokens (anonymized_seeds) */
|
|
67
|
+
private readonly anonymizeSeeds;
|
|
68
|
+
private anonymizeMapError?;
|
|
69
|
+
private anonymizer?;
|
|
70
|
+
private findCopiesHarder;
|
|
44
71
|
private progressEvery;
|
|
45
72
|
private signedTags;
|
|
46
73
|
private signedCommits;
|
|
@@ -66,12 +93,43 @@ export declare class FastExportCommand extends PlumbingCommand {
|
|
|
66
93
|
private readonly shown;
|
|
67
94
|
private progressCounter;
|
|
68
95
|
private quotePathFully;
|
|
96
|
+
/** The paths limiting the export, as tree-diff matches them */
|
|
97
|
+
private pathspec?;
|
|
98
|
+
/** fast-export.c's rewrite_commit over the walk (the commit itself before it) */
|
|
99
|
+
private rewrite;
|
|
69
100
|
private outputStream?;
|
|
70
101
|
/** Where the stream goes, as a Web Stream (in place of `setStdout`); not closed here. */
|
|
71
102
|
setOutput(stream: WritableStream<Uint8Array>): this;
|
|
72
103
|
call(): Promise<import("../plumbing-command.js").PlumbingResult>;
|
|
73
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* An argument as git's `setup_revisions` reads it: a revision (`main`, `^v1`, `a..b`,
|
|
106
|
+
* `--all`, ...), `--`, or a path. As in git, the first `--` is fast-export's own (its
|
|
107
|
+
* option parser drops it), so paths after it must exist in the worktree (or look like a
|
|
108
|
+
* pathspec) as any argument that names no revision; only a second `--` takes them as given.
|
|
109
|
+
*/
|
|
74
110
|
addArgument(arg: string): this;
|
|
111
|
+
/**
|
|
112
|
+
* `-M[<n>]` / `--find-renames[=<n>]`: renames written as `R` lines (`true` for the default
|
|
113
|
+
* 50% threshold, else git's `90%`, `9`, `.9`).
|
|
114
|
+
*/
|
|
115
|
+
setFindRenames(value?: boolean | string): this;
|
|
116
|
+
/**
|
|
117
|
+
* `-C[<n>]` / `--find-copies[=<n>]`: renames and copies written as `R`/`C` lines; given
|
|
118
|
+
* twice, as git's `-C -C`, unchanged paths are copy sources too ({@link setFindCopiesHarder}).
|
|
119
|
+
*/
|
|
120
|
+
setFindCopies(value?: boolean | string): this;
|
|
121
|
+
/** `--find-copies-harder`: every path of the parent is a copy source. */
|
|
122
|
+
setFindCopiesHarder(harder: boolean): this;
|
|
123
|
+
/** `--anonymize`: paths, refs, idents, messages and contents replaced by git's tokens. */
|
|
124
|
+
setAnonymize(anonymize: boolean): this;
|
|
125
|
+
/**
|
|
126
|
+
* `--anonymize-map=<from>[:<to>]`: the path or ref component (or ident, message...) `from`
|
|
127
|
+
* is written as `to` (as itself without one); a later mapping of `from` wins. An empty
|
|
128
|
+
* token is git's option error (exit 129); without {@link setAnonymize} the run dies.
|
|
129
|
+
*/
|
|
130
|
+
addAnonymizeMap(token: string): this;
|
|
131
|
+
/** A pathspec element limiting the export, taken as given (git's `-- -- <path>`). */
|
|
132
|
+
addPath(path: string): this;
|
|
75
133
|
/** `--progress=<n>`: a `progress <n> objects` line after every n objects. */
|
|
76
134
|
setProgressEvery(every: number): this;
|
|
77
135
|
/** `--signed-tags=<mode>` (default `abort`). */
|
|
@@ -115,6 +173,23 @@ export declare class FastExportCommand extends PlumbingCommand {
|
|
|
115
173
|
private get objects();
|
|
116
174
|
protected run(): Promise<number>;
|
|
117
175
|
private revList;
|
|
176
|
+
/**
|
|
177
|
+
* The arguments setup_revisions gets: fast-export's parse_options stops at the first `--`,
|
|
178
|
+
* which it drops (what follows is read as more arguments: paths must then exist, unless a
|
|
179
|
+
* second `--` comes), or at `--end-of-options`, which git 2.44+ keeps for setup_revisions
|
|
180
|
+
* (`PARSE_OPT_KEEP_UNKNOWN_OPT`) and 2.43 drops; a `--` after it reaches setup_revisions.
|
|
181
|
+
*/
|
|
182
|
+
private setupArguments;
|
|
183
|
+
/** setup_revisions left an option in argv: fast-export prints its usage (exit 129). */
|
|
184
|
+
private usage;
|
|
185
|
+
/**
|
|
186
|
+
* The walk options setup_revisions reads among fast-export's arguments, before its own `--`
|
|
187
|
+
* and `--end-of-options`: by position, how each changes the walk (a sort order returned).
|
|
188
|
+
* Ref options (`--all`, `--glob <pattern>`...) stay revisions. Any other option is one
|
|
189
|
+
* setup_revisions leaves in argv, or one the walk cannot take yet: fast-export's usage.
|
|
190
|
+
* `--reverse` changes nothing: the walk is reversed after setup_revisions (`revs.reverse = 1`).
|
|
191
|
+
*/
|
|
192
|
+
private walkOptions;
|
|
118
193
|
private marksFilesOrDie;
|
|
119
194
|
private typeOf;
|
|
120
195
|
private taggedOf;
|
|
@@ -124,11 +199,23 @@ export declare class FastExportCommand extends PlumbingCommand {
|
|
|
124
199
|
/** print_path: C-quoted when needed, else in double quotes when it holds a space. */
|
|
125
200
|
private pathText;
|
|
126
201
|
private handleCommit;
|
|
202
|
+
/**
|
|
203
|
+
* diffcore_std's rename and copy detection over the queue (`-M`, `-C`, `-C -C`); the
|
|
204
|
+
* queue itself without them. Unchanged pairs (`-C -C`) are copy sources only.
|
|
205
|
+
*/
|
|
206
|
+
private detectRenames;
|
|
127
207
|
/** show_filemodify: the changes sorted depth first, files below a directory before it. */
|
|
128
208
|
private fileChanges;
|
|
129
209
|
private treeOf;
|
|
210
|
+
/**
|
|
211
|
+
* The entries of `tree` under `prefix` the pathspec takes (tree-diff.c's skip_uninteresting),
|
|
212
|
+
* with whether everything below each is taken (no more matching needed there).
|
|
213
|
+
*/
|
|
214
|
+
private interestingEntries;
|
|
130
215
|
/** diff_tree_oid with `recursive`, in tree-diff order (no rename detection). */
|
|
131
216
|
private diffTrees;
|
|
217
|
+
/** A path both sides hold as non-trees (`=` when unchanged, listed by `-C -C`). */
|
|
218
|
+
private changePair;
|
|
132
219
|
private side;
|
|
133
220
|
private handleTag;
|
|
134
221
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast-export-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-export-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"fast-export-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-export-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAoBH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,QAAQ,EA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