@statewalker/vcs-commands 0.8.0 → 0.9.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 +32 -0
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/add-patch.d.ts +7 -0
- package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +47 -0
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-command.d.ts +2 -0
- package/dist/commands/apply/apply-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-parse.d.ts +7 -0
- package/dist/commands/apply/apply-parse.d.ts.map +1 -1
- package/dist/commands/apply/index.d.ts +1 -1
- package/dist/commands/apply/index.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +303 -8
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/blame-ignore.d.ts +48 -0
- package/dist/commands/blame-ignore.d.ts.map +1 -0
- package/dist/commands/check-mailmap-command.d.ts +49 -0
- package/dist/commands/check-mailmap-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +7 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-paths.d.ts +4 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-command.d.ts +61 -0
- package/dist/commands/cherry-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +23 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +32 -0
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +56 -0
- package/dist/commands/clean-interactive.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +116 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +50 -2
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/describe-command.d.ts +71 -64
- package/dist/commands/describe-command.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +118 -6
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +60 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts +193 -0
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
- package/dist/commands/format-patch-command.d.ts +28 -2
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +77 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +15 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/index.d.ts +12 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +5 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/line-log.d.ts +161 -0
- package/dist/commands/line-log.d.ts.map +1 -0
- package/dist/commands/log-command.d.ts +235 -6
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +4 -2
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +66 -1
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/mailmap.d.ts +24 -1
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/merge-command.d.ts +51 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +2 -0
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-strategy-options.d.ts +69 -0
- package/dist/commands/merge-strategy-options.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +10 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/name-rev-command.d.ts +65 -0
- package/dist/commands/name-rev-command.d.ts.map +1 -0
- package/dist/commands/name-rev.d.ts +110 -22
- package/dist/commands/name-rev.d.ts.map +1 -1
- package/dist/commands/octopus-merge.d.ts +26 -1
- package/dist/commands/octopus-merge.d.ts.map +1 -1
- package/dist/commands/ort-merge.d.ts +16 -0
- package/dist/commands/ort-merge.d.ts.map +1 -1
- package/dist/commands/ort-recursive.d.ts.map +1 -1
- package/dist/commands/patch-id.d.ts +58 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +182 -38
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +65 -0
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/index.d.ts +4 -0
- package/dist/commands/range-diff/index.d.ts.map +1 -0
- package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
- package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff.d.ts +106 -0
- package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
- package/dist/commands/read-tree-command.d.ts +14 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +21 -2
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/remerge-diff.d.ts +59 -0
- package/dist/commands/remerge-diff.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +41 -0
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/remote-show-command.d.ts +204 -0
- package/dist/commands/remote-show-command.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +19 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +7 -0
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +75 -3
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +22 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +2 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +102 -1
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +10 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/shortlog-command.d.ts +109 -0
- package/dist/commands/shortlog-command.d.ts.map +1 -0
- package/dist/commands/shortlog.d.ts +151 -0
- package/dist/commands/shortlog.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +31 -2
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +90 -2
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-fetch.d.ts +149 -0
- package/dist/commands/submodule-fetch.d.ts.map +1 -0
- package/dist/commands/submodule-model.d.ts +8 -0
- package/dist/commands/submodule-model.d.ts.map +1 -1
- package/dist/commands/submodule-unpack.d.ts +120 -0
- package/dist/commands/submodule-unpack.d.ts.map +1 -0
- package/dist/commands/submodule-update-command.d.ts +8 -0
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/subtree-shift.d.ts +27 -0
- package/dist/commands/subtree-shift.d.ts.map +1 -0
- package/dist/commands/switch-command.d.ts +3 -0
- package/dist/commands/switch-command.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-ISM52N0n.js → commands-CNvli5bl.js} +39426 -61169
- package/dist/errors/command-errors.d.ts +25 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +29 -1
- package/dist/fsck-CPeDh9fh.js +5138 -0
- package/dist/git-command.d.ts +31 -1
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +97 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +82 -0
- package/dist/guarded-transport-command.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/remote-transport-CCmBadm-.js +1606 -0
- package/dist/rename/detect-renames.d.ts +20 -0
- package/dist/rename/detect-renames.d.ts.map +1 -1
- package/dist/rename/diffcore-break.d.ts +51 -0
- package/dist/rename/diffcore-break.d.ts.map +1 -0
- package/dist/rename/index.d.ts +1 -0
- package/dist/rename/index.d.ts.map +1 -1
- package/dist/results/blame-format.d.ts +62 -1
- package/dist/results/blame-format.d.ts.map +1 -1
- package/dist/results/clone-result.d.ts +9 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/diff-dirstat.d.ts +36 -0
- package/dist/results/diff-dirstat.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +10 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +18 -0
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +12 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +2 -0
- package/dist/results/index.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/init-result.d.ts +8 -1
- package/dist/results/init-result.d.ts.map +1 -1
- package/dist/results/line-range-hunks.d.ts +27 -0
- package/dist/results/line-range-hunks.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +8 -1
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/pull-result.d.ts +11 -0
- package/dist/results/pull-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +5 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/status-result.d.ts +1 -1
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/results-BDuEgdLU.js +46847 -0
- package/dist/transport-command.d.ts +14 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +115 -0
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +20 -2
- package/src/commands/am/am-command.ts +138 -4
- package/src/commands/apply/apply-command.ts +52 -9
- package/src/commands/apply/apply-parse.ts +10 -0
- package/src/commands/apply/index.ts +8 -1
- package/src/commands/blame-command.ts +1450 -51
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/checkout-command.ts +97 -12
- package/src/commands/checkout-paths.ts +28 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +42 -1
- package/src/commands/clean-command.ts +92 -12
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +596 -44
- package/src/commands/commit-command.ts +180 -47
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-command.ts +616 -56
- package/src/commands/fetch-command.ts +353 -6
- package/src/commands/fetch-multiple-command.ts +665 -0
- package/src/commands/format-patch-command.ts +189 -77
- package/src/commands/git-describe.ts +456 -217
- package/src/commands/git-hooks.ts +42 -3
- package/src/commands/index.ts +17 -0
- package/src/commands/init-command.ts +603 -49
- package/src/commands/line-log.ts +931 -0
- package/src/commands/log-command.ts +1414 -177
- package/src/commands/log-graph.ts +6 -3
- package/src/commands/log-output.ts +173 -10
- package/src/commands/mailmap.ts +41 -5
- package/src/commands/merge-command.ts +274 -16
- package/src/commands/merge-drivers.ts +3 -0
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +101 -21
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +700 -109
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +41 -7
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id.ts +109 -0
- package/src/commands/pull-command.ts +718 -224
- package/src/commands/push-command.ts +353 -3
- package/src/commands/range-diff/index.ts +3 -0
- package/src/commands/range-diff/linear-assignment.ts +203 -0
- package/src/commands/range-diff/range-diff-command.ts +433 -0
- package/src/commands/range-diff/range-diff.ts +617 -0
- package/src/commands/read-tree-command.ts +74 -3
- package/src/commands/rebase-command.ts +141 -65
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +98 -10
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/reset-command.ts +78 -3
- package/src/commands/restore-command.ts +15 -0
- package/src/commands/rev-list-command.ts +187 -11
- package/src/commands/revert-command.ts +41 -1
- package/src/commands/revision-range.ts +3 -1
- package/src/commands/sequencer-pick.ts +323 -29
- package/src/commands/sequencer-support.ts +164 -2
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-command.ts +2 -1
- package/src/commands/status-command.ts +115 -25
- package/src/commands/status-format.ts +1 -1
- package/src/commands/submodule-commands.ts +321 -3
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +9 -1
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +39 -5
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +9 -0
- package/src/commands/tree-restore.ts +6 -1
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/errors/command-errors.ts +35 -0
- package/src/git-command.ts +87 -1
- package/src/git.ts +146 -0
- package/src/guarded-transport-command.ts +171 -0
- package/src/index.ts +1 -0
- package/src/rename/detect-renames.ts +42 -8
- package/src/rename/diffcore-break.ts +166 -0
- package/src/rename/index.ts +1 -0
- package/src/results/blame-format.ts +268 -43
- package/src/results/clone-result.ts +6 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +12 -0
- package/src/results/diff-formatter.ts +1 -0
- package/src/results/diff-output.ts +127 -2
- package/src/results/fetch-result.ts +12 -1
- package/src/results/index.ts +2 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +9 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +5 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +34 -3
- package/dist/fsck-DLRpbwTj.js +0 -13405
- package/dist/results-TB2IJ64h.js +0 -4700
|
@@ -63,6 +63,17 @@ export interface OrtMergeOptions {
|
|
|
63
63
|
ignoreCase?: boolean;
|
|
64
64
|
/** Detect renames (default true) */
|
|
65
65
|
renames?: boolean;
|
|
66
|
+
/** The rename score (`-X find-renames=<n>`, 0..60000; default 50%) */
|
|
67
|
+
renameScore?: number;
|
|
68
|
+
/** The diff algorithm of content merges (`-X diff-algorithm=`; default histogram) */
|
|
69
|
+
algorithm?: "myers" | "minimal" | "patience" | "histogram";
|
|
70
|
+
/** xdiff's whitespace bits of content merges (`-X ignore-space-change`, ...) */
|
|
71
|
+
whitespace?: number;
|
|
72
|
+
/**
|
|
73
|
+
* `-s subtree` (`""`) / `-X subtree=<path>`: their tree and the base shifted to ours' shape
|
|
74
|
+
* before the merge (applied by `mergeStoredTrees`, merge_ort_nonrecursive_internal)
|
|
75
|
+
*/
|
|
76
|
+
subtreeShift?: string;
|
|
66
77
|
/** merge.directoryRenames (default `conflict`, as git) */
|
|
67
78
|
directoryRenames?: DirectoryRenames;
|
|
68
79
|
/** merge.renameLimit (default 7000, as merge-ort) */
|
|
@@ -100,6 +111,11 @@ export interface OrtMergeResult {
|
|
|
100
111
|
clean: boolean;
|
|
101
112
|
/** merge-ort's messages (`Auto-merging x`, `CONFLICT (...)`), in git's order */
|
|
102
113
|
messages: string[];
|
|
114
|
+
/**
|
|
115
|
+
* The messages by the path they are about, without merge-ort's omittable hints
|
|
116
|
+
* (`Auto-merging`, `Path updated`, ...): `--remerge-diff`'s `remerge` headers
|
|
117
|
+
*/
|
|
118
|
+
pathMessages?: Map<string, string[]>;
|
|
103
119
|
/** Whether directory renames were found (paths may move into any directory) */
|
|
104
120
|
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,OAAO,CAAC;CAC5B;AAuBD,0BAA0B;AAC1B,wBAAsB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAI9E;AAiID;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IAAK,KAAK;CAAK,CAAC;AAE7C;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACjC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACjC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACnC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,cAAc,CAAC,CAEzB;AA60CD;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAapC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ort-recursive.d.ts","sourceRoot":"","sources":["../../src/commands/ort-recursive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ort-recursive.d.ts","sourceRoot":"","sources":["../../src/commands/ort-recursive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBA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xB,OAAO,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAAE,CAAC,CA2B/D;AAED,yFAAyF;AACzF,wBAAgB,UAAU,CACxB,MAAM,EAAE,QAAQ,GAAG,SAAS,EAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,GAC7C,aAAa,CAEf"}
|
|
@@ -41,4 +41,62 @@ export declare function patchIdOfChanges(blobs: Blobs, changes: PatchIdChange[],
|
|
|
41
41
|
headerOnly?: boolean;
|
|
42
42
|
objectFormat?: ObjectFormat;
|
|
43
43
|
}): Promise<string>;
|
|
44
|
+
/** The change a commit makes, as {@link PatchIds} asks for it. */
|
|
45
|
+
export interface PatchIdCommit {
|
|
46
|
+
/** Its first parent's tree; undefined for a root commit (diffed against the empty tree) */
|
|
47
|
+
parentTree?: ObjectId;
|
|
48
|
+
tree: ObjectId;
|
|
49
|
+
}
|
|
50
|
+
/** What {@link PatchIds} reads. */
|
|
51
|
+
export interface PatchIdsHost<K> {
|
|
52
|
+
trees: PatchIdTrees;
|
|
53
|
+
blobs: Blobs;
|
|
54
|
+
objectFormat?: ObjectFormat;
|
|
55
|
+
/**
|
|
56
|
+
* The change of a commit, or undefined where git's patch_id_defined says no (a merge: more
|
|
57
|
+
* than one parent, as the walk has them)
|
|
58
|
+
*/
|
|
59
|
+
change(key: K): Promise<PatchIdCommit | undefined>;
|
|
60
|
+
/** The paths the diffs are limited to (the walk's pathspec); every path without */
|
|
61
|
+
paths?: (path: string) => boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* patch-ids.c: a table of commits by patch-id. Each commit added gets only the cheap id of
|
|
65
|
+
* its diff's headers (names and modes, no content read); a lookup computes the same cheap
|
|
66
|
+
* id, and the full patch-ids of both sides only where those collide (patch_id_neq), each at
|
|
67
|
+
* most once. A commit whose diff is empty has the null id, as git's, so empty commits match
|
|
68
|
+
* one another.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const ids = new PatchIds({ trees, blobs, change: async (id) => ({ parentTree, tree }) });
|
|
73
|
+
* for (const id of upstream) await ids.add(id);
|
|
74
|
+
* const same = await ids.matches(mine); // the upstream commits making mine's change
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class PatchIds<K> {
|
|
78
|
+
private readonly host;
|
|
79
|
+
private readonly byHeader;
|
|
80
|
+
private readonly full;
|
|
81
|
+
private readonly nullId;
|
|
82
|
+
constructor(host: PatchIdsHost<K>);
|
|
83
|
+
/** add_commit_patch_id: false for a commit without a patch-id (a merge). */
|
|
84
|
+
add(key: K): Promise<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* patch_id_iter_first/next: the commits added whose patch-id is `key`'s, in the order
|
|
87
|
+
* added (none for a merge).
|
|
88
|
+
*/
|
|
89
|
+
matches(key: K): Promise<K[]>;
|
|
90
|
+
/** has_commit_patch_id */
|
|
91
|
+
has(key: K): Promise<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* The full patch-id of a commit (hex; the null id for an empty diff), null when it has
|
|
94
|
+
* none (a merge, or a commit that could not be read: never equal to another, as git errs on
|
|
95
|
+
* the side of keeping both).
|
|
96
|
+
*/
|
|
97
|
+
fullId(key: K): Promise<string | null>;
|
|
98
|
+
private headerId;
|
|
99
|
+
/** commit_patch_id */
|
|
100
|
+
private compute;
|
|
101
|
+
}
|
|
44
102
|
//# sourceMappingURL=patch-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-id.d.ts","sourceRoot":"","sources":["../../src/commands/patch-id.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAgC,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAGL,KAAK,YAAY,EAGlB,MAA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CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;IACnD,mFAAmF;IACnF,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,QAAQ,CAAC,CAAC;IAKT,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0B;IACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA+B;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,YAA6B,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAGjD;IAED,4EAA4E;IACtE,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAOlC;IAED;;;OAGG;IACG,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CASlC;IAED,0BAA0B;IACpB,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAElC;IAED;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQ3C;IAED,OAAO,CAAC,QAAQ;IAIhB,sBAAsB;YACR,OAAO;CAYtB"}
|
|
@@ -1,28 +1,39 @@
|
|
|
1
1
|
import type { FilesApi } from "@statewalker/vcs-core";
|
|
2
|
+
import { GuardedTransportCommand } from "../guarded-transport-command.js";
|
|
2
3
|
import { FastForwardMode, type MergeStrategy } from "../results/merge-result.js";
|
|
3
4
|
import type { PullResult } from "../results/pull-result.js";
|
|
4
|
-
import {
|
|
5
|
+
import type { CommitEditor } from "./commit-command.js";
|
|
5
6
|
import { TagOption } from "./fetch-command.js";
|
|
7
|
+
import { type CleanupMode } from "./message-cleanup.js";
|
|
8
|
+
import { type FetchRecurseSubmodules } from "./submodule-fetch.js";
|
|
6
9
|
/**
|
|
7
10
|
* Pull changes from a remote repository.
|
|
8
11
|
*
|
|
9
|
-
* Equivalent to `git pull`
|
|
12
|
+
* Equivalent to `git pull`: git's fetch (`git fetch [<remote> [<refspec>...]]`, the
|
|
13
|
+
* configured refspecs when none is given), then the `FETCH_HEAD` entries marked for merge
|
|
14
|
+
* merged into the current branch (`git merge FETCH_HEAD`), rebased onto (`--rebase`,
|
|
15
|
+
* `pull.rebase`), or branched off on an unborn branch (pull.c's `pull_into_void`). The
|
|
16
|
+
* options pull passes to git's merge, rebase and fetch are passed on the same way.
|
|
10
17
|
*
|
|
11
|
-
*
|
|
18
|
+
* Credentials and headers follow `GuardedTransportCommand`'s rule: {@link setCredentials} and
|
|
19
|
+
* {@link setHeaders} go only to the origins named with `addCredentialOrigin`, else to the
|
|
20
|
+
* default remote's origin (`branch.<name>.remote`, a name or a URL) while every remote the
|
|
21
|
+
* pull reaches has it, or to the URL given to {@link setRemote} when it names no configured
|
|
22
|
+
* remote; per-URL providers
|
|
23
|
+
* (`setCredentialsForUrl`, `setHeadersForUrl`) answer for their URL's origin; a redirect to
|
|
24
|
+
* another origin carries none. `--all` runs `FetchMultipleCommand` (git's fetch_multiple).
|
|
12
25
|
*
|
|
13
26
|
* @example
|
|
14
27
|
* ```typescript
|
|
15
|
-
* // Pull
|
|
28
|
+
* // Pull the current branch's upstream (branch.<name>.remote / .merge)
|
|
16
29
|
* const result = await git.pull().call();
|
|
17
30
|
*
|
|
18
|
-
* //
|
|
31
|
+
* // git pull --no-rebase --squash upstream main
|
|
19
32
|
* const result = await git.pull()
|
|
20
33
|
* .setRemote("upstream")
|
|
21
|
-
* .
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* const result = await git.pull()
|
|
25
|
-
* .setRemoteBranchName("develop")
|
|
34
|
+
* .setRemoteBranchName("main")
|
|
35
|
+
* .setRebase(false)
|
|
36
|
+
* .setSquash(true)
|
|
26
37
|
* .call();
|
|
27
38
|
*
|
|
28
39
|
* // Pull with rebase (`git pull --rebase`; without the option, pull.rebase decides)
|
|
@@ -31,15 +42,42 @@ import { TagOption } from "./fetch-command.js";
|
|
|
31
42
|
* .call();
|
|
32
43
|
* ```
|
|
33
44
|
*/
|
|
34
|
-
export declare class PullCommand extends
|
|
45
|
+
export declare class PullCommand extends GuardedTransportCommand<PullResult> {
|
|
35
46
|
private remote;
|
|
36
47
|
/** Whether the remote was named (it is then in the reflog action). */
|
|
37
48
|
private remoteGiven;
|
|
38
|
-
|
|
49
|
+
/** The refspecs after the remote (`git pull <remote> <refspec>...`) */
|
|
50
|
+
private refSpecs;
|
|
39
51
|
/** `--rebase` / `--no-rebase`; undefined: branch.<name>.rebase, then pull.rebase */
|
|
40
52
|
private rebase?;
|
|
41
53
|
/** `--verify-signatures` / `--no-verify-signatures`, passed to the merge */
|
|
42
54
|
private verifySignatures?;
|
|
55
|
+
/** `--autostash` / `--no-autostash`; undefined: pull.autoStash, then rebase.autoStash */
|
|
56
|
+
private autoStash?;
|
|
57
|
+
private strategy?;
|
|
58
|
+
private strategyOptions;
|
|
59
|
+
private fastForwardMode?;
|
|
60
|
+
private tagOption?;
|
|
61
|
+
private repositoryFiles?;
|
|
62
|
+
private squash?;
|
|
63
|
+
private commit?;
|
|
64
|
+
private edit?;
|
|
65
|
+
private editor?;
|
|
66
|
+
private log?;
|
|
67
|
+
private signoff?;
|
|
68
|
+
private cleanupMode?;
|
|
69
|
+
private cleanupArg?;
|
|
70
|
+
private noVerify?;
|
|
71
|
+
private allowUnrelatedHistories;
|
|
72
|
+
private all;
|
|
73
|
+
private prune?;
|
|
74
|
+
private depth?;
|
|
75
|
+
private deepen?;
|
|
76
|
+
private unshallow;
|
|
77
|
+
private force;
|
|
78
|
+
private compatibility?;
|
|
79
|
+
private dryRun;
|
|
80
|
+
private recurseSubmodules?;
|
|
43
81
|
/**
|
|
44
82
|
* `--verify-signatures` (true) / `--no-verify-signatures` (false), passed to the merge as
|
|
45
83
|
* git's pull passes it (see `MergeCommand.setVerifySignatures`; undefined: the merge's
|
|
@@ -48,12 +86,6 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
48
86
|
* `--verify-signatures` with git's warning.
|
|
49
87
|
*/
|
|
50
88
|
setVerifySignatures(verify: boolean | undefined): this;
|
|
51
|
-
/** `--autostash` / `--no-autostash`; undefined: pull.autoStash, then rebase.autoStash */
|
|
52
|
-
private autoStash?;
|
|
53
|
-
private strategy?;
|
|
54
|
-
private fastForwardMode?;
|
|
55
|
-
private tagOption?;
|
|
56
|
-
private repositoryFiles?;
|
|
57
89
|
/**
|
|
58
90
|
* The files of the repository, for the fetch to write the commit-graph
|
|
59
91
|
* `fetch.writeCommitGraph` asks for (see `FetchCommand.setRepositoryFiles`).
|
|
@@ -63,9 +95,8 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
63
95
|
gitDir?: string;
|
|
64
96
|
}): this;
|
|
65
97
|
/**
|
|
66
|
-
* Set the remote to pull from
|
|
67
|
-
*
|
|
68
|
-
* Default is "origin".
|
|
98
|
+
* Set the remote to pull from: a configured remote's name, a path or a URL (git's
|
|
99
|
+
* `<repository>`). Default: the current branch's `branch.<name>.remote`, else `origin`.
|
|
69
100
|
*
|
|
70
101
|
* @param remote Remote name
|
|
71
102
|
*/
|
|
@@ -75,20 +106,28 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
75
106
|
*/
|
|
76
107
|
getRemote(): string;
|
|
77
108
|
/**
|
|
78
|
-
* Set the remote branch to pull.
|
|
109
|
+
* Set the remote branch to pull (one refspec, `git pull <remote> <branch>`).
|
|
79
110
|
*
|
|
80
|
-
* If not set,
|
|
111
|
+
* If not set, the remote's configured refspecs are fetched and the current branch's
|
|
112
|
+
* `branch.<name>.merge` is merged.
|
|
81
113
|
*
|
|
82
114
|
* @param branch Remote branch name
|
|
83
115
|
*/
|
|
84
116
|
setRemoteBranchName(branch: string): this;
|
|
85
117
|
/**
|
|
86
|
-
* Get the remote branch name.
|
|
118
|
+
* Get the remote branch name (the first refspec).
|
|
87
119
|
*/
|
|
88
120
|
getRemoteBranchName(): string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* The refspecs to fetch (`git pull <remote> <refspec>...`): what they fetch is merged, two
|
|
123
|
+
* or more heads as an octopus.
|
|
124
|
+
*/
|
|
125
|
+
setRefSpecs(...refSpecs: string[]): this;
|
|
89
126
|
/**
|
|
90
127
|
* Set whether to use rebase instead of merge (`--rebase` / `--no-rebase`). Without it the
|
|
91
|
-
* configuration decides, as in git: `branch.<name>.rebase`, else `pull.rebase`, else merge
|
|
128
|
+
* configuration decides, as in git: `branch.<name>.rebase`, else `pull.rebase`, else merge
|
|
129
|
+
* (a pull that cannot fast-forward then refuses unless `pull.ff` or a fast-forward mode
|
|
130
|
+
* is given: git's "Need to specify how to reconcile divergent branches.").
|
|
92
131
|
* Only this option puts `--rebase` in the reflog lines (git's are the command line's).
|
|
93
132
|
*
|
|
94
133
|
* @param rebase Whether to use rebase
|
|
@@ -106,13 +145,20 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
106
145
|
*/
|
|
107
146
|
setAutoStash(autoStash: boolean): this;
|
|
108
147
|
/**
|
|
109
|
-
* Set the merge strategy.
|
|
148
|
+
* Set the merge strategy (`-s <strategy>`, passed to the merge or the rebase).
|
|
110
149
|
*
|
|
111
150
|
* @param strategy Merge strategy
|
|
112
151
|
*/
|
|
113
152
|
setStrategy(strategy: MergeStrategy): this;
|
|
114
153
|
/**
|
|
115
|
-
*
|
|
154
|
+
* `-X <option>` for each option (passed to the merge or the rebase, see
|
|
155
|
+
* `MergeCommand.setStrategyOptions`).
|
|
156
|
+
*/
|
|
157
|
+
setStrategyOptions(options: readonly string[]): this;
|
|
158
|
+
/**
|
|
159
|
+
* Set the fast-forward mode (`--ff`, `--no-ff`, `--ff-only`; default `pull.ff`). With
|
|
160
|
+
* `--ff-only` a pull whose branches diverged dies before merging or rebasing (git's
|
|
161
|
+
* `die_ff_impossible`), and one that can fast-forward merges even when a rebase is asked.
|
|
116
162
|
*
|
|
117
163
|
* @param mode Fast-forward mode
|
|
118
164
|
*/
|
|
@@ -122,7 +168,7 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
122
168
|
*/
|
|
123
169
|
getFastForwardMode(): FastForwardMode | undefined;
|
|
124
170
|
/**
|
|
125
|
-
* Set the specification of annotated tag behavior during fetch.
|
|
171
|
+
* Set the specification of annotated tag behavior during fetch (`--tags`, `--no-tags`).
|
|
126
172
|
*
|
|
127
173
|
* @param tagOption Tag option
|
|
128
174
|
*/
|
|
@@ -131,14 +177,102 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
131
177
|
* Get the tag option.
|
|
132
178
|
*/
|
|
133
179
|
getTagOpt(): TagOption | undefined;
|
|
180
|
+
/** `--squash` / `--no-squash`, passed to the merge (see `MergeCommand.setSquash`). */
|
|
181
|
+
setSquash(squash: boolean): this;
|
|
182
|
+
/** `--commit` / `--no-commit`, passed to the merge (see `MergeCommand.setCommit`). */
|
|
183
|
+
setCommit(commit: boolean): this;
|
|
184
|
+
/**
|
|
185
|
+
* `--edit` / `--no-edit`, passed to the merge: with `--edit` the merge commit's message
|
|
186
|
+
* goes through the editor ({@link setEditor}; see `MergeCommand.setEdit`). Without either
|
|
187
|
+
* the merge does not edit (git's default without a terminal).
|
|
188
|
+
*/
|
|
189
|
+
setEdit(edit: boolean): this;
|
|
190
|
+
/** The editor `--edit` runs over MERGE_MSG (git's `GIT_EDITOR`; see `CommitCommand.setEditor`). */
|
|
191
|
+
setEditor(editor: CommitEditor): this;
|
|
192
|
+
/**
|
|
193
|
+
* `--log[=<n>]` / `--no-log`, passed to the merge (see `MergeCommand.setLog`): true is
|
|
194
|
+
* `--log`, a number `--log=<n>`, false `--no-log`.
|
|
195
|
+
*/
|
|
196
|
+
setLog(log: boolean | number): this;
|
|
197
|
+
/**
|
|
198
|
+
* `--signoff` / `--no-signoff`, passed to the merge, or to the rebase of a rebasing pull.
|
|
199
|
+
*/
|
|
200
|
+
setSignoff(signoff: boolean): this;
|
|
201
|
+
/**
|
|
202
|
+
* `--cleanup=<mode>`, passed to the merge. A mode git does not know dies before the fetch
|
|
203
|
+
* (`Invalid cleanup mode <mode>`).
|
|
204
|
+
*/
|
|
205
|
+
setCleanupMode(mode: CleanupMode | string): this;
|
|
206
|
+
/** `--no-verify` (true) / `--verify` (false), passed to the merge. */
|
|
207
|
+
setNoVerify(noVerify: boolean): this;
|
|
208
|
+
/** `--allow-unrelated-histories`, passed to the merge. */
|
|
209
|
+
setAllowUnrelatedHistories(allow: boolean): this;
|
|
210
|
+
/**
|
|
211
|
+
* `--all`: fetch every remote (but those with `remote.<name>.skipDefaultUpdate`), each
|
|
212
|
+
* appending to FETCH_HEAD as git's `fetch --all` does, then merge what the current
|
|
213
|
+
* branch's upstream marked for merge. Takes no remote or refspec.
|
|
214
|
+
*/
|
|
215
|
+
setAll(all: boolean): this;
|
|
216
|
+
/** `--prune` / `--no-prune`, passed to the fetch (`FetchCommand.setRemoveDeletedRefs`). */
|
|
217
|
+
setPrune(prune: boolean): this;
|
|
218
|
+
/** `--depth=<n>`, passed to the fetch. */
|
|
219
|
+
setDepth(depth: number): this;
|
|
220
|
+
/** `--deepen=<n>`, passed to the fetch (`FetchCommand.setDeepen`). */
|
|
221
|
+
setDeepen(deepen: number): this;
|
|
222
|
+
/** `--unshallow`, passed to the fetch. */
|
|
223
|
+
setUnshallow(unshallow: boolean): this;
|
|
224
|
+
/**
|
|
225
|
+
* The git version whose advice text the refusals follow (2.43: `hint: ` before an empty
|
|
226
|
+
* line, `git config advice.<name> false`); default the hooks' compatibility.
|
|
227
|
+
*/
|
|
228
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
229
|
+
/** `--force`, passed to the fetch (`FetchCommand.setForceUpdate`). */
|
|
230
|
+
setForce(force: boolean): this;
|
|
231
|
+
/**
|
|
232
|
+
* `--dry-run`: the fetch only shows what it would do (`FetchCommand.setDryRun`), and
|
|
233
|
+
* nothing is merged or rebased.
|
|
234
|
+
*/
|
|
235
|
+
setDryRun(dryRun: boolean): this;
|
|
236
|
+
/**
|
|
237
|
+
* `--recurse-submodules[=yes|on-demand|no]` / `--no-recurse-submodules` (true is `yes`,
|
|
238
|
+
* false `no`): passed to the fetch (`FetchCommand.setRecurseSubmodules`), and, unless
|
|
239
|
+
* `no`, once the merge or rebase succeeded the submodules are updated as `git submodule
|
|
240
|
+
* update --recursive --checkout` (`--rebase` for a rebasing pull) does, its output in
|
|
241
|
+
* {@link PullResult.submodules}. Unset, `submodule.recurse` decides (the fetch reads its
|
|
242
|
+
* own configuration). A rebasing pull that would recurse refuses local commits that
|
|
243
|
+
* record submodule changes (`cannot rebase with locally recorded submodule modifications`).
|
|
244
|
+
*/
|
|
245
|
+
setRecurseSubmodules(recurse: boolean | FetchRecurseSubmodules): this;
|
|
134
246
|
/**
|
|
135
247
|
* Execute the pull operation.
|
|
136
248
|
*
|
|
137
249
|
* @returns Pull result with fetch and merge results
|
|
138
|
-
* @throws NoHeadError if HEAD is
|
|
139
|
-
* @throws
|
|
250
|
+
* @throws NoHeadError if HEAD is detached and no refspec is given
|
|
251
|
+
* @throws GitApiError with git's stderr where git's pull dies (exit 128, or 1 when nothing
|
|
252
|
+
* fetched is to be merged)
|
|
140
253
|
*/
|
|
141
254
|
call(): Promise<PullResult>;
|
|
255
|
+
/** pull.c's `submodule.recurse`: a boolean (on or off), undefined when unset. */
|
|
256
|
+
private configRecurseSubmodules;
|
|
257
|
+
/** `git submodule update --recursive --checkout|--rebase`: its output and exit status. */
|
|
258
|
+
private updateSubmodules;
|
|
259
|
+
/**
|
|
260
|
+
* git's advise() lines (`hint:`, 2.43's `hint: ` before an empty line), the
|
|
261
|
+
* `advise_if_enabled` hint naming `advice.<name>` when given, then the `fatal:` line.
|
|
262
|
+
*/
|
|
263
|
+
private advice;
|
|
264
|
+
/**
|
|
265
|
+
* The pull's command line as git's reflog action spells it (`pull` and its arguments), in
|
|
266
|
+
* a fixed order since our options have none.
|
|
267
|
+
*/
|
|
268
|
+
private commandLine;
|
|
269
|
+
/**
|
|
270
|
+
* run_fetch: `git fetch [<options>] <remote> [<refspec>...]` with the pull's options, over
|
|
271
|
+
* the guarded transports (the credentials and headers go only where they are for).
|
|
272
|
+
*/
|
|
273
|
+
private fetchCommand;
|
|
274
|
+
/** Whether MERGE_HEAD exists (pull.c's `file_exists(git_path_merge_head())`). */
|
|
275
|
+
private mergeInProgress;
|
|
142
276
|
/**
|
|
143
277
|
* pull.c after its fetch: when the fetch moved the checked-out branch itself
|
|
144
278
|
* (`--update-head-ok`, a branches remote named after it), the index and worktree still at
|
|
@@ -151,22 +285,32 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
151
285
|
*/
|
|
152
286
|
private fastForwardMovedHead;
|
|
153
287
|
/**
|
|
154
|
-
* pull.c's `get_merge_heads`: the
|
|
155
|
-
*
|
|
288
|
+
* pull.c's `get_merge_heads`: the FETCH_HEAD entries not marked `not-for-merge`, with the
|
|
289
|
+
* file's text (what `git merge FETCH_HEAD` gives fmt-merge-msg).
|
|
290
|
+
*/
|
|
291
|
+
private mergeHeadsFromFetchHead;
|
|
292
|
+
/**
|
|
293
|
+
* pull.c's `die_no_merge_candidates`: why nothing fetched is to be merged.
|
|
156
294
|
*
|
|
157
|
-
* @throws GitApiError with
|
|
295
|
+
* @throws GitApiError with git's lines (exit 1)
|
|
158
296
|
*/
|
|
159
|
-
private
|
|
297
|
+
private dieNoMergeCandidates;
|
|
160
298
|
private config;
|
|
299
|
+
/**
|
|
300
|
+
* git's config_get_ff: `pull.ff` (false `--no-ff`, true `--ff`, `only` `--ff-only`).
|
|
301
|
+
*
|
|
302
|
+
* @throws GitApiError for any other value (`invalid value for 'pull.ff'`)
|
|
303
|
+
*/
|
|
304
|
+
private configFastForward;
|
|
161
305
|
/**
|
|
162
306
|
* git's config_get_rebase: `branch.<name>.rebase`, else `pull.rebase`; any value other
|
|
163
|
-
* than false (`true`, `merges`, `interactive`) rebases.
|
|
307
|
+
* than false (`true`, `merges`, `interactive`) rebases. Undefined when neither is set.
|
|
164
308
|
*/
|
|
165
309
|
private configRebase;
|
|
166
310
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
311
|
+
* Whether `ancestor` is an ancestor of `commit` (git's repo_is_descendant_of), by git's
|
|
312
|
+
* date-ordered paint walk, which stops once the sides meet.
|
|
169
313
|
*/
|
|
170
|
-
private
|
|
314
|
+
private isAncestor;
|
|
171
315
|
}
|
|
172
316
|
//# sourceMappingURL=pull-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull-command.d.ts","sourceRoot":"","sources":["../../src/commands/pull-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"pull-command.d.ts","sourceRoot":"","sources":["../../src/commands/pull-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,uBAAuB,CAAC;AAKhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EACL,eAAe,EAGf,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAgB,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM7D,OAAO,EAAE,KAAK,WAAW,EAAoB,MAAM,sBAAsB,CAAC;AAG1E,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,sBAAsB,CAAC;AAS5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,WAAY,SAAQ,uBAAuB,CAAC,UAAU,CAAC;IAClE,OAAO,CAAC,MAA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;OAGG;IACH,OAAO,CAAC,MAAM;IAad;;;OAGG;IACH,OAAO,CAAC,WAAW;IAqCnB;;;OAGG;IACH,OAAO,CAAC,YAAY;IAqBpB,iFAAiF;YACnE,eAAe;IAM7B;;;;;;;;;OASG;YACW,oBAAoB;IAyBlC;;;OAGG;YACW,uBAAuB;IAarC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAuD5B,OAAO,CAAC,MAAM;IAId;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;;OAGG;IACH,OAAO,CAAC,YAAY;IASpB;;;OAGG;YACW,UAAU;CAMzB"}
|
|
@@ -51,6 +51,24 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
51
51
|
/** `--[no-]signed[=if-asked]` (undefined: `push.gpgSign`) */
|
|
52
52
|
private signed?;
|
|
53
53
|
private noVerify;
|
|
54
|
+
/** `--recurse-submodules=<mode>`; unset: the configuration's */
|
|
55
|
+
private recurseSubmodules?;
|
|
56
|
+
/** `--recurse-submodules=only-is-on-demand`: a superproject's push of this submodule */
|
|
57
|
+
private recurseFromSuperproject;
|
|
58
|
+
/**
|
|
59
|
+
* `--recurse-submodules=check|on-demand|only|no` (`--no-recurse-submodules` is `no`):
|
|
60
|
+
* before the refs are sent, the submodules whose recorded commits (in the commits pushed,
|
|
61
|
+
* not on the remote's tracking refs) are on none of the submodule's remote-tracking refs
|
|
62
|
+
* are `check`ed (the push dies listing them), pushed first (`on-demand`: `git push` in each,
|
|
63
|
+
* to the remote and refspecs given here when the remote is configured; then checked again
|
|
64
|
+
* unless a dry run), or pushed alone (`only`: the superproject's refs are not sent). Unset,
|
|
65
|
+
* `push.recurseSubmodules` and `submodule.recurse` (on-demand or no) decide, in config
|
|
66
|
+
* order. What the submodules' pushes printed is {@link PushResult.submoduleOutput}.
|
|
67
|
+
* A bare repository never recurses.
|
|
68
|
+
*/
|
|
69
|
+
setRecurseSubmodules(mode: PushRecurseSubmodules | boolean): this;
|
|
70
|
+
/** @internal `--recurse-submodules=only-is-on-demand`: run by a superproject's push. */
|
|
71
|
+
setRecurseFromSuperproject(child: boolean): this;
|
|
54
72
|
/** `--no-verify`: the pre-push hook does not run. */
|
|
55
73
|
setNoVerify(noVerify: boolean): this;
|
|
56
74
|
private thin;
|
|
@@ -315,6 +333,39 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
315
333
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
316
334
|
*/
|
|
317
335
|
call(): Promise<PushResult>;
|
|
336
|
+
/**
|
|
337
|
+
* builtin/push.c's `recurse_submodules`: `push.recurseSubmodules` and `submodule.recurse`
|
|
338
|
+
* in config order, then the command line; undefined for none (`no`). A superproject's push
|
|
339
|
+
* of this submodule takes `only` as `on-demand`, with git's warning.
|
|
340
|
+
*/
|
|
341
|
+
private pushRecursion;
|
|
342
|
+
/** git's `-q`: never set here (the report is the caller's to print) */
|
|
343
|
+
private readonly quietOutput;
|
|
344
|
+
/**
|
|
345
|
+
* transport.c's submodule steps of `transport_push`: `push_unpushed_submodules` for
|
|
346
|
+
* on-demand and only, then the `find_unpushed_submodules` check for check (and on-demand
|
|
347
|
+
* and only unless a dry run); `only` then stops the push ({@link SubmodulesOnlyPushed}).
|
|
348
|
+
*/
|
|
349
|
+
private pushSubmodulesFirst;
|
|
350
|
+
/** The submodule's repository at `path` (populated). */
|
|
351
|
+
private openSubmodulePath;
|
|
352
|
+
/**
|
|
353
|
+
* submodule.c's `push_submodule`: `git push --recurse-submodules=only-is-on-demand
|
|
354
|
+
* [--dry-run] [--push-option=...] [<remote> <refspec>...]` in the submodule, when it has
|
|
355
|
+
* remote-tracking refs; false when that push failed.
|
|
356
|
+
*/
|
|
357
|
+
private pushSubmodule;
|
|
358
|
+
/**
|
|
359
|
+
* The transports a submodule's push goes through: a submodule's URL is repository content,
|
|
360
|
+
* so this push's credentials and headers go only to its own remote's origin.
|
|
361
|
+
*/
|
|
362
|
+
private submoduleTransports;
|
|
363
|
+
/**
|
|
364
|
+
* `git submodule--helper push-check <head> <remote> <refspec>...` in the submodule: its
|
|
365
|
+
* `fatal:` line when the remote is not configured there or a refspec's source names no
|
|
366
|
+
* single ref (`HEAD` only when the submodule is on the superproject's branch).
|
|
367
|
+
*/
|
|
368
|
+
private submodulePushCheck;
|
|
318
369
|
/**
|
|
319
370
|
* transport.c's pre-push hook: told the remote's name (its URL when pushed to by URL) and
|
|
320
371
|
* URL, with a `<local ref> <local id> <remote ref> <remote id>` line on stdin for each ref
|
|
@@ -417,4 +468,18 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
417
468
|
*/
|
|
418
469
|
private trackingRefMapper;
|
|
419
470
|
}
|
|
471
|
+
/**
|
|
472
|
+
* builtin/push.c's `--recurse-submodules` modes (git's `RECURSE_SUBMODULES_CHECK`,
|
|
473
|
+
* `_ON_DEMAND`, `_ONLY`, `_OFF`).
|
|
474
|
+
*/
|
|
475
|
+
export type PushRecurseSubmodules = "check" | "on-demand" | "only" | "no";
|
|
476
|
+
/**
|
|
477
|
+
* submodule-config.c's `parse_push_recurse_submodules_arg`: false, `on-demand`, `check` or
|
|
478
|
+
* `only`; true (there is no plain "on" for a push) and anything else die.
|
|
479
|
+
*/
|
|
480
|
+
export declare function parsePushRecurseSubmodules(key: string, value: string | undefined): PushRecurseSubmodules;
|
|
481
|
+
/** What a push prints on stderr: its warnings, its report, its errors, its submodules'. */
|
|
482
|
+
export declare function pushOutputText(result: PushResult): string;
|
|
483
|
+
/** Whether git's push exits 0: every ref pushed or up to date, the report sound. */
|
|
484
|
+
export declare function pushSucceeded(result: PushResult): boolean;
|
|
420
485
|
//# sourceMappingURL=push-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-command.d.ts","sourceRoot":"","sources":["../../src/commands/push-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-command.d.ts","sourceRoot":"","sources":["../../src/commands/push-command.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,K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,GAAG,MAAM,GAAG,IAAI,CAAC;AAE1E;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,qBAAqB,CAOvB;AAED,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAQzD;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAOzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/range-diff/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's linear-assignment.c: the Jonker-Volgenant shortest augmenting path solver of the
|
|
3
|
+
* linear assignment problem (Jonker, R., & Volgenant, A. (1987). A shortest augmenting path
|
|
4
|
+
* algorithm for dense and sparse linear assignment problems. Computing, 38(4), 325-340),
|
|
5
|
+
* step for step as git runs it, so that ties end in git's pairing.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // two columns, two rows: column 0 costs 1 in row 0 and 2 in row 1
|
|
10
|
+
* const { columnToRow } = computeAssignment(2, 2, [1, 5, 2, 1]);
|
|
11
|
+
* // columnToRow: [0, 1]
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
/** The pairing found: the row of each column and the column of each row. */
|
|
15
|
+
export interface Assignment {
|
|
16
|
+
columnToRow: Int32Array;
|
|
17
|
+
rowToColumn: Int32Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `compute_assignment`: the assignment of columns to rows of least total cost. `cost` is the
|
|
21
|
+
* cost matrix, the cost of assigning column `j` to row `i` at `cost[j + columnCount * i]`.
|
|
22
|
+
* With fewer than two columns every column and row is paired with 0, as git leaves them.
|
|
23
|
+
*
|
|
24
|
+
* @throws Error where git hits its `BUG("negative j")`
|
|
25
|
+
*/
|
|
26
|
+
export declare function computeAssignment(columnCount: number, rowCount: number, cost: ArrayLike<number>): Assignment;
|
|
27
|
+
//# sourceMappingURL=linear-assignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-assignment.d.ts","sourceRoot":"","sources":["../../../src/commands/range-diff/linear-assignment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,4EAA4E;AAC5E,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,GACtB,UAAU,CAwKZ"}
|