@statewalker/vcs-commands 0.14.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/remote-archive-command.d.ts +4 -1
- package/dist/commands/archive/remote-archive-command.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/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 +2 -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 +21 -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 +17 -1
- 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 +21 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +28 -0
- 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 +29 -1
- 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/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 +2 -0
- 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 +21 -2
- 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/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/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 +17 -1
- 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 +10 -4
- package/dist/commands/signing.d.ts.map +1 -1
- 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-C9M78Chn.js → commands-DT3VEv50.js} +14879 -16703
- package/dist/errors/commit-errors.d.ts +23 -3
- 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 +30 -4
- package/dist/{fsck-C4US3l0B.js → fsck-BZ508Elg.js} +1 -1
- 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-C43eykfK.js → local-transport-D98U6p4d.js} +184 -683
- package/dist/{maintenance-run-command-CoJFKr2p.js → maintenance-run-command-DZFnbnbo.js} +2285 -79
- 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-B0CWLCAp.js → results-rF81cQse.js} +1425 -202
- package/dist/transport-command.d.ts +10 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +15 -2
- package/src/commands/add-patch/patch-backend.ts +6 -44
- package/src/commands/archive/remote-archive-command.ts +10 -3
- package/src/commands/branch-command.ts +57 -4
- package/src/commands/cat-file/batch-format.ts +17 -18
- package/src/commands/cat-file/cat-file-command.ts +181 -15
- package/src/commands/check-ignore-command.ts +61 -17
- 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 +13 -0
- 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 +61 -21
- package/src/commands/config-command.ts +28 -0
- package/src/commands/credential-helper.ts +807 -0
- package/src/commands/default-branch.ts +38 -0
- 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 +103 -14
- package/src/commands/git-hooks.ts +85 -0
- 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 +34 -1
- package/src/commands/legacy-remotes.ts +4 -20
- package/src/commands/local-transport.ts +130 -9
- package/src/commands/log-command.ts +39 -1
- package/src/commands/log-output.ts +31 -4
- package/src/commands/maintenance-schedule-command.ts +418 -0
- package/src/commands/merge-command.ts +10 -0
- package/src/commands/merge-index-command.ts +202 -0
- package/src/commands/merge-one-file.ts +451 -0
- package/src/commands/merge-support.ts +127 -11
- package/src/commands/object-disk-info.ts +169 -0
- package/src/commands/octopus-merge.ts +37 -128
- package/src/commands/promisor-remote.ts +14 -3
- package/src/commands/pull-command.ts +173 -27
- package/src/commands/push-command.ts +50 -5
- package/src/commands/range-diff/range-diff-command.ts +86 -3
- 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/ref-filter.ts +59 -4
- package/src/commands/ref-filter/ref-format.ts +83 -10
- 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 +34 -8
- package/src/commands/served-lazy-fetch.ts +164 -0
- package/src/commands/signing.ts +18 -10
- 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 +31 -3
- 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 +48 -2
|
@@ -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
|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U,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,8DAA8D;AAC9D,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,MAAM,CAIR;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAWjG;AAWD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,gBAAgB,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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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,EAId,MAAM,0BAA0B,CAAC;AAElC,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7D,0BAA0B;AAC1B,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC;AAwGlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,qFAAqF;IACrF,OAAO,CAAC,YAAY,CAAC,CAAoB;IACzC,yFAAyF;IACzF,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,SAAS,CAAS;IAC1B,kDAAkD;IAClD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAC5D,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,aAAa,CAAqB;IAC1C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,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,qCAAqC;IACrC,2BAA2B,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIpD;IAED,4BAA4B;IAC5B,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAItC;IAED,oBAAoB;IACpB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,+DAA+D;IAC/D,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,OAAO,CAAC,GAAG;YAIG,GAAG;YAIH,YAAY;IAM1B,OAAO,CAAC,QAAQ;IAOhB,OAAO,KAAK,OAAO,GAIlB;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAgJrC;IAED,OAAO,CAAC,OAAO;IAgBf;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAOtB,uFAAuF;IACvF,OAAO,CAAC,KAAK;IASb;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;IA6FnB,OAAO,CAAC,eAAe;YAKT,MAAM;YAMN,QAAQ;YAMR,YAAY;YAUZ,WAAW;YA6BX,UAAU;IAqBxB,qFAAqF;IACrF,OAAO,CAAC,QAAQ;YAQF,YAAY;IAwI1B;;;OAGG;YACW,aAAa;IA+E3B,0FAA0F;IAC1F,OAAO,CAAC,WAAW;YAoCL,MAAM;IAMpB;;;OAGG;YACW,kBAAkB;IAmBhC,gFAAgF;YAClE,SAAS;IA2EvB,mFAAmF;IACnF,OAAO,CAAC,UAAU;YAYJ,IAAI;YAqBJ,SAAS;CA4GxB"}
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { PlumbingCommand } from "../plumbing-command.js";
|
|
14
14
|
import { type FastMarksFiles, type SignMode } from "./fast-stream-support.js";
|
|
15
|
+
/**
|
|
16
|
+
* fast-import's `--signed-commits`/`--signed-tags` modes (gpg-interface.c's
|
|
17
|
+
* `parse_sign_mode`): those of {@link SignMode}, and the verifying ones of git 2.53+
|
|
18
|
+
* (`strip-if-invalid`) and 2.54+ (`sign-if-invalid[=<keyid>]`, `abort-if-invalid`).
|
|
19
|
+
*/
|
|
20
|
+
export type FastImportSignMode = SignMode | "strip-if-invalid" | "sign-if-invalid" | `sign-if-invalid=${string}` | "abort-if-invalid";
|
|
15
21
|
/** `--date-format=<fmt>` */
|
|
16
22
|
export type FastImportDateFormat = "raw" | "raw-permissive" | "rfc2822" | "now";
|
|
17
23
|
/**
|
|
18
24
|
* Writes the objects and refs a fast-import stream describes (`git fast-import`).
|
|
19
25
|
*
|
|
20
|
-
* Supported: `blob`, `commit` (`M`, `D`, `R`, `C`, `deleteall`, `ls`, `cat-blob` among its
|
|
26
|
+
* Supported: `blob`, `commit` (`M`, `D`, `R`, `C`, `N`, `deleteall`, `ls`, `cat-blob` among its
|
|
21
27
|
* changes; `from`, `merge`, `encoding`, `original-oid`, and 2.5x's `gpgsig`), `tag`,
|
|
22
28
|
* `reset`, `checkpoint`, `progress`, `done`, `alias`, `get-mark`, `cat-blob`, `ls`,
|
|
23
29
|
* `feature` and `option git`; marks files through {@link setMarksFiles}. Branches are
|
|
@@ -26,12 +32,26 @@ export type FastImportDateFormat = "raw" | "raw-permissive" | "rfc2822" | "now";
|
|
|
26
32
|
* unconditionally, every update logged as `fast-import`. Where git dies, the objects
|
|
27
33
|
* written so far stay, marks are exported, and no ref moves.
|
|
28
34
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
35
|
+
* Notes (`N <dataref> <commit-ish>`, `N inline`, a null id removing the note) are laid out
|
|
36
|
+
* with fast-import's fanout: one more level of two-digit directories for every factor of 256
|
|
37
|
+
* notes the branch holds, the tree re-fanned when a commit crosses a level (as
|
|
38
|
+
* `do_change_note_fanout`), so trees and commits are native git's.
|
|
39
|
+
*
|
|
40
|
+
* `rewrite-submodules-from`/`-to` ({@link addRewriteSubmodulesFrom}) rewrite every hex
|
|
41
|
+
* dataref (`M`, `N`, `ls`, `cat-blob`) one of a submodule's `from` marks names to the id of
|
|
42
|
+
* the same mark in its `to` marks, the files read through {@link setMarksFiles}.
|
|
43
|
+
*
|
|
44
|
+
* Not supported: the statistics report (`--stats`; ours prints none, as `--quiet`), the crash report file, and pack
|
|
31
45
|
* options (`--max-pack-size`, `--depth`, `--big-file-threshold`, accepted and ignored).
|
|
32
46
|
*
|
|
47
|
+
* Signature modes ({@link setSignedCommits}, {@link setSignedTags}) include git 2.53+'s
|
|
48
|
+
* verifying ones: each signature is checked through the host's verifier
|
|
49
|
+
* (`GitHostEnvironment.verifier`, as `verify-commit`/`verify-tag`); a bad one is stripped
|
|
50
|
+
* (`strip-if-invalid`), replaced through the host's signer (`sign-if-invalid[=<keyid>]`), or
|
|
51
|
+
* ends the import (`abort-if-invalid`).
|
|
52
|
+
*
|
|
33
53
|
* Version differences (`setCompatibility("2.43")`): no `gpgsig` commands and no signature
|
|
34
|
-
* modes, and git's capitalised death messages.
|
|
54
|
+
* modes (`--signed-*` is `unknown option`), and git's capitalised death messages.
|
|
35
55
|
*/
|
|
36
56
|
export declare class FastImportCommand extends PlumbingCommand {
|
|
37
57
|
private input;
|
|
@@ -44,8 +64,11 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
44
64
|
private cliExportMarks?;
|
|
45
65
|
private cliRelativeMarks?;
|
|
46
66
|
private allowUnsafe;
|
|
67
|
+
/** The `--signed-*` options as given, in order (git 2.43 dies on the first) */
|
|
68
|
+
private readonly cliSignedOptions;
|
|
47
69
|
private cliSignedTags?;
|
|
48
70
|
private cliSignedCommits?;
|
|
71
|
+
private readonly cliRewriteSubmodules;
|
|
49
72
|
private force;
|
|
50
73
|
private requireDone;
|
|
51
74
|
private dateFormat;
|
|
@@ -55,12 +78,27 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
55
78
|
private relativeMarks;
|
|
56
79
|
private signedTags;
|
|
57
80
|
private signedCommits;
|
|
81
|
+
private signedTagKeyid?;
|
|
82
|
+
private signedCommitKeyid?;
|
|
58
83
|
private pos;
|
|
59
84
|
private line;
|
|
60
85
|
private unread;
|
|
61
86
|
private eof;
|
|
62
87
|
private seenDataCommand;
|
|
63
88
|
private readonly marks;
|
|
89
|
+
/** `core.ignorecase`: tree paths match ignoring ASCII case */
|
|
90
|
+
private ignoreCase;
|
|
91
|
+
/**
|
|
92
|
+
* Under `core.ignorecase`, the names of entries removed from a tree since it was last stored,
|
|
93
|
+
* by folded name: git leaves a removed entry in place (mode 0) until `store_tree`, so a later
|
|
94
|
+
* set of another spelling in the same tree reuses it and keeps the stored name.
|
|
95
|
+
*/
|
|
96
|
+
private removedNames;
|
|
97
|
+
/** `rewrite-submodules-from`/`-to`: each submodule's marks, by name */
|
|
98
|
+
private readonly subMarksFrom;
|
|
99
|
+
private readonly subMarksTo;
|
|
100
|
+
/** the ids gitlinks (and every other hex dataref) are rewritten to */
|
|
101
|
+
private readonly subOidMap;
|
|
64
102
|
private readonly objectTypes;
|
|
65
103
|
private readonly branchTable;
|
|
66
104
|
private readonly branches;
|
|
@@ -97,10 +135,27 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
97
135
|
setMarksFiles(files: FastMarksFiles): this;
|
|
98
136
|
/** `--allow-unsafe-features`: the stream may name marks files. */
|
|
99
137
|
setAllowUnsafeFeatures(allow: boolean): this;
|
|
100
|
-
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
138
|
+
/**
|
|
139
|
+
* `--rewrite-submodules-from=<name>:<file>`: the marks file the submodule `<name>` was
|
|
140
|
+
* exported with; with the `to` file of the same name, every hex dataref (gitlinks first of
|
|
141
|
+
* all) that one of its ids names is rewritten to the id of the same mark in the `to` file.
|
|
142
|
+
*/
|
|
143
|
+
addRewriteSubmodulesFrom(spec: string): this;
|
|
144
|
+
/** `--rewrite-submodules-to=<name>:<file>`: the marks file the submodule was imported with. */
|
|
145
|
+
addRewriteSubmodulesTo(spec: string): this;
|
|
146
|
+
/**
|
|
147
|
+
* `--signed-tags=<mode>` (git 2.50+, default `verbatim`). The verifying modes check each
|
|
148
|
+
* tag's signature through the host's verifier: a bad one is stripped, replaced through the
|
|
149
|
+
* host's signer (the configured key, or `sign-if-invalid=<keyid>`'s), or ends the import.
|
|
150
|
+
*/
|
|
151
|
+
setSignedTags(mode: FastImportSignMode): this;
|
|
152
|
+
/**
|
|
153
|
+
* `--signed-commits=<mode>` (git 2.50+, default `verbatim`). The verifying modes check each
|
|
154
|
+
* commit's signature as `verify-commit` does: a bad one (or a commit with signatures of
|
|
155
|
+
* another hash only) is stripped with git's warning, replaced through the host's signer,
|
|
156
|
+
* or ends the import.
|
|
157
|
+
*/
|
|
158
|
+
setSignedCommits(mode: FastImportSignMode): this;
|
|
104
159
|
/** The git version whose behaviour is followed (default 2.56). */
|
|
105
160
|
setCompatibility(version: "2.43" | "2.56"): this;
|
|
106
161
|
private die;
|
|
@@ -118,12 +173,26 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
118
173
|
private parseOriginalIdentifier;
|
|
119
174
|
/** parse_argv: the command line's options win over the stream's features. */
|
|
120
175
|
private parseArgv;
|
|
176
|
+
/** ulong_arg: strtoul's number (base 0), refused when negative or followed by anything. */
|
|
177
|
+
private ulongArg;
|
|
121
178
|
private checkUnsafe;
|
|
122
179
|
private parseFeature;
|
|
123
180
|
private optionImportMarks;
|
|
124
181
|
private parseOption;
|
|
125
182
|
private marksFilesOrDie;
|
|
126
183
|
private readMarks;
|
|
184
|
+
/** read_mark_file: each `:<mark> <id>` line in order (an id of either hash). */
|
|
185
|
+
private readMarkFile;
|
|
186
|
+
/** option_rewrite_submodules: `<name>:<file>`, the file read now. */
|
|
187
|
+
private optionRewriteSubmodules;
|
|
188
|
+
/** build_mark_map: each `from` id to the id of its mark in the submodule's `to` file. */
|
|
189
|
+
private buildMarkMap;
|
|
190
|
+
/**
|
|
191
|
+
* parse_mapped_oid_hex: an id of either hash at the start of `text` (SHA-256's tried
|
|
192
|
+
* first), through the submodule rewrite map; one of another hash than the repository's
|
|
193
|
+
* that nothing maps is no id.
|
|
194
|
+
*/
|
|
195
|
+
private parseMappedOidHex;
|
|
127
196
|
private dumpMarks;
|
|
128
197
|
private findMark;
|
|
129
198
|
private insertMark;
|
|
@@ -144,10 +213,19 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
144
213
|
private lookupBranch;
|
|
145
214
|
private newBranch;
|
|
146
215
|
private loadTree;
|
|
216
|
+
/**
|
|
217
|
+
* The entry a tree walk takes for `name`: under `core.ignorecase` the first one whose name
|
|
218
|
+
* matches ignoring ASCII case (fast-import.c's `fspathncmp`), the name it was stored under
|
|
219
|
+
* kept.
|
|
220
|
+
*/
|
|
221
|
+
private findEntry;
|
|
147
222
|
/** tree_content_set */
|
|
148
223
|
private treeSet;
|
|
149
224
|
/** tree_content_remove: the removed entry, or true when only something changed */
|
|
150
225
|
private treeRemove;
|
|
226
|
+
private removeEntry;
|
|
227
|
+
/** The name a new entry takes: that of an entry of its spelling removed before the store. */
|
|
228
|
+
private revivedName;
|
|
151
229
|
/** tree_content_get */
|
|
152
230
|
private treeGet;
|
|
153
231
|
/** store_tree: writes every dirty tree, giving each its id. */
|
|
@@ -158,12 +236,39 @@ export declare class FastImportCommand extends PlumbingCommand {
|
|
|
158
236
|
private verifyPath;
|
|
159
237
|
private fileChangeM;
|
|
160
238
|
private fileChangeCR;
|
|
239
|
+
/** construct_path_with_fanout: `fanout` levels of two hex digits, then the rest */
|
|
240
|
+
private notePath;
|
|
241
|
+
/**
|
|
242
|
+
* change_note_fanout: moves every note (a path of exactly one id's hex digits, in
|
|
243
|
+
* components of even length) of the tree to its place under `fanout`, and gives the
|
|
244
|
+
* number of notes; 0xff only counts them.
|
|
245
|
+
*/
|
|
246
|
+
private changeNoteFanout;
|
|
247
|
+
private doChangeNoteFanout;
|
|
248
|
+
/** note_change_n: `N <dataref> <commit-ish>` (or `N inline <commit-ish>` and its data). */
|
|
249
|
+
private noteChangeN;
|
|
161
250
|
private parseObjectish;
|
|
162
251
|
private setRootFromCommit;
|
|
163
252
|
private parseMerge;
|
|
164
253
|
private parseSignature;
|
|
165
254
|
private parseNewCommit;
|
|
166
255
|
private parseNewTag;
|
|
256
|
+
/** The lines a check printed (git's check_signature errors) go to stderr. */
|
|
257
|
+
private printCheckMessages;
|
|
258
|
+
/** sign_buffer with `keyid` (else the configured key); git's death with `failure`. */
|
|
259
|
+
private signOrDie;
|
|
260
|
+
/**
|
|
261
|
+
* handle_signature_if_invalid: the commit with its signatures checked as
|
|
262
|
+
* `verify_commit_buffer` checks it; kept when good, else stripped (with git's warning),
|
|
263
|
+
* re-signed, or the import ends. Gives the commit's bytes (as a binary string).
|
|
264
|
+
*/
|
|
265
|
+
private handleSignatureIfInvalid;
|
|
266
|
+
/**
|
|
267
|
+
* handle_tag_signature_if_invalid: the signature ending a tag's message checked over the
|
|
268
|
+
* tag before it; kept when good, else dropped, replaced, or the import ends. Gives the
|
|
269
|
+
* message.
|
|
270
|
+
*/
|
|
271
|
+
private handleTagSignatureIfInvalid;
|
|
167
272
|
private parseResetBranch;
|
|
168
273
|
private catBlobWrite;
|
|
169
274
|
private parseGetMark;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast-import-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-import-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"fast-import-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-import-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AAGxE,OAAO,EACL,KAAK,cAAc,EAKnB,KAAK,QAAQ,EAGd,MAAM,0BAA0B,CAAC;AAElC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,MAAM,EAAE,GAC3B,kBAAkB,CAAC;AAoCv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YA8CP,UAAU;YAoBV,UAAU;YAMV,YAAY;IAM1B,OAAO,CAAC,OAAO;IAIf,uCAAuC;YACzB,YAAY;IAmC1B,yFAAyF;YAC3E,YAAY;YAUZ,QAAQ;CAMvB"}
|
|
@@ -43,15 +43,6 @@ export declare function signatureFormatOf(signature: string): string;
|
|
|
43
43
|
* first `\n-----BEGIN PGP SIGNATURE-----\n`.
|
|
44
44
|
*/
|
|
45
45
|
export declare function signatureStartOf(message: string, compatibility: "2.43" | "2.56"): number;
|
|
46
|
-
/**
|
|
47
|
-
* Marks files over a FilesApi: paths relative to `cwd` (git's current directory, default the
|
|
48
|
-
* FilesApi's root), `relative-marks` ones below `<gitDir>/info/fast-import/`.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* git.fastImport().setMarksFiles(marksFilesOf(files, { gitDir: ".git" })).setExportMarks("marks");
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
46
|
export declare function marksFilesOf(files: FilesApi, options?: {
|
|
56
47
|
cwd?: string;
|
|
57
48
|
gitDir?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast-stream-support.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-stream-support.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAe,MAAM,8BAA8B,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,UAAU,GACV,QAAQ,GACR,eAAe,GACf,MAAM,GACN,YAAY,GACZ,OAAO,CAAC;AAYZ,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,QAAQ,CAEzD;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,IAAI,CAAC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AAE,cAAc,CAAC,UAAU,CAAC,GAAG;IAChE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAQA"}
|
|
@@ -87,6 +87,7 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
87
87
|
private refetch;
|
|
88
88
|
/** `--negotiation-tip=<revision>` (a revision, or a ref glob), in order */
|
|
89
89
|
private negotiationTips;
|
|
90
|
+
private negotiationIncludes;
|
|
90
91
|
private negotiateOnlyMode;
|
|
91
92
|
private setUpstream;
|
|
92
93
|
/** `--[no-]recurse-submodules[=<mode>]`; unset: the configuration's */
|
|
@@ -267,6 +268,15 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
267
268
|
* warning.
|
|
268
269
|
*/
|
|
269
270
|
setNegotiationTips(...tips: string[]): this;
|
|
271
|
+
/**
|
|
272
|
+
* git 2.56's `git fetch --negotiation-include=<revision>`: these commits (a revision, or a
|
|
273
|
+
* glob of refs) are sent as `have` lines whatever the negotiator chooses, before its own;
|
|
274
|
+
* without any, the remote's `remote.<name>.negotiationInclude` values (an empty value
|
|
275
|
+
* clears the earlier ones). A revision naming nothing is skipped; a glob matching no ref is
|
|
276
|
+
* ignored with git's warning. git 2.43 has no such option: under its compatibility the call
|
|
277
|
+
* dies as git's option parser does (`unknown option`, exit 129).
|
|
278
|
+
*/
|
|
279
|
+
setNegotiationIncludes(...revisions: string[]): this;
|
|
270
280
|
/**
|
|
271
281
|
* `git fetch --negotiate-only`: negotiates with the remote from {@link setNegotiationTips}
|
|
272
282
|
* (protocol v2, a server with `wait-for-done`) and fetches nothing; the commits the server
|
|
@@ -491,6 +501,17 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
491
501
|
* `remote.<name>.negotiationRestrict` values.
|
|
492
502
|
*/
|
|
493
503
|
private negotiationTipsGiven;
|
|
504
|
+
/**
|
|
505
|
+
* The `--negotiation-include` revisions given, else the remote's
|
|
506
|
+
* `remote.<name>.negotiationInclude` values; none under git 2.43, which has neither.
|
|
507
|
+
*/
|
|
508
|
+
private negotiationIncludesGiven;
|
|
509
|
+
/**
|
|
510
|
+
* A multi-valued `remote.<name>.<key>` as transport.c's parse_transport_option keeps it:
|
|
511
|
+
* each value appended, an empty one clearing the list. git reads it for the remote named
|
|
512
|
+
* as given, a URL or path too (remote_get makes a remote of that name).
|
|
513
|
+
*/
|
|
514
|
+
private remoteTransportOption;
|
|
494
515
|
/**
|
|
495
516
|
* add_negotiation_tips: a revision (no glob characters) must name an object here, else git
|
|
496
517
|
* dies (git 2.5x skips a name that resolves to nothing); a glob adds every ref it matches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,EAiBnB,KAAK,OAAO,EAIb,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAuB3D,OAAO,EACL,KAAK,sBAAsB,EAM5B,MAAM,sBAAsB,CAAC;AAO9B;;;;GAIG;AACH,oBAAY,SAAS;IACnB,8DAA8D;IAC9D,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,UAAU,eAAe;IACzB,2BAA2B;IAC3B,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,eAAe;CAc9B;AASD,wDAAwD;AACxD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CASpD;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAsB7E;AA+DD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,UAAQ,GAAG,MAAM,CAO1E;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAQ3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAiBnE"}
|
|
@@ -346,6 +346,34 @@ export declare class HookSession {
|
|
|
346
346
|
stdout: Uint8Array;
|
|
347
347
|
stderr: Uint8Array;
|
|
348
348
|
} | undefined>;
|
|
349
|
+
/**
|
|
350
|
+
* A credential helper as credential.c's `run_credential_helper` starts it: `command` (the
|
|
351
|
+
* helper and its operation, `git credential-store get`) through the shell (`use_shell`) in
|
|
352
|
+
* the directory git runs in, `stdin` written to it, its stdout kept (read only for `get`),
|
|
353
|
+
* its stderr git's. Undefined without a runner or a layout (no helper runs); an exit code of
|
|
354
|
+
* 127 when the runner fails to start it.
|
|
355
|
+
*/
|
|
356
|
+
runCredentialHelper(command: string, stdin: string): Promise<{
|
|
357
|
+
exitCode: number;
|
|
358
|
+
stdout: Uint8Array;
|
|
359
|
+
stderr: Uint8Array;
|
|
360
|
+
} | undefined>;
|
|
361
|
+
/**
|
|
362
|
+
* Runs a program git starts from an argv without a shell (run-command.c with `use_shell =
|
|
363
|
+
* 0`, as `pipe_command` runs `gpg.ssh.defaultKeyCommand`): `argv[0]` as `execvp` runs it
|
|
364
|
+
* (a word with a `/` is a path from the directory git runs in, any other is looked up in
|
|
365
|
+
* `PATH`; no `~` or variable expansion), the arguments verbatim, stdin closed, git's own
|
|
366
|
+
* variables with nothing removed. Its exit code and output; `startError` is the line git
|
|
367
|
+
* prints when it cannot start the program (`error: cannot run <word>: <reason>` for a word
|
|
368
|
+
* it looks up in `PATH`, `fatal: cannot exec '<path>': <reason>` for a path), the program
|
|
369
|
+
* then counting as failed (exit code 127). Undefined without a runner or a layout.
|
|
370
|
+
*/
|
|
371
|
+
runArgv(name: string, argv: readonly string[]): Promise<{
|
|
372
|
+
exitCode: number;
|
|
373
|
+
stdout: string;
|
|
374
|
+
stderr: string;
|
|
375
|
+
startError?: string;
|
|
376
|
+
} | undefined>;
|
|
349
377
|
/**
|
|
350
378
|
* A program git runs through the shell with variables of its own (diff.c's
|
|
351
379
|
* `run_external_diff`: `use_shell`, the worktree's top as its directory, its stdout git's):
|