@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
|
@@ -12,55 +12,53 @@ export interface DescribeResult {
|
|
|
12
12
|
readonly depth?: number;
|
|
13
13
|
/** Abbreviated commit hash */
|
|
14
14
|
readonly abbrevHash?: string;
|
|
15
|
+
/** One description per revision described, as git prints them */
|
|
16
|
+
readonly descriptions: string[];
|
|
17
|
+
/** What git prints on stderr (warnings, `--debug`) */
|
|
18
|
+
readonly stderr: string[];
|
|
19
|
+
}
|
|
20
|
+
/** `git describe`'s output. */
|
|
21
|
+
export interface DescribeText {
|
|
22
|
+
stdout: string;
|
|
23
|
+
stderr: string[];
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
17
|
-
* Given a commit, show the most recent tag that is reachable from it
|
|
18
|
-
*
|
|
19
|
-
*
|
|
26
|
+
* Given a commit, show the most recent tag that is reachable from it: git describe
|
|
27
|
+
* (builtin/describe.c), `--contains` through name-rev, a blob by the first commit that
|
|
28
|
+
* brings it (`<description>:<path>`), `--dirty`/`--broken` marks of the worktree.
|
|
20
29
|
*
|
|
21
|
-
*
|
|
30
|
+
* {@link call} answers `description: undefined` where git dies for want of a tag;
|
|
31
|
+
* {@link callText} gives git's stdout and stderr and throws {@link DescribeError} where git
|
|
32
|
+
* dies.
|
|
22
33
|
*
|
|
23
34
|
* @example
|
|
24
35
|
* ```typescript
|
|
25
|
-
* //
|
|
26
|
-
* const desc = await git.describe().call();
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* const
|
|
30
|
-
* .setTarget(commitId)
|
|
31
|
-
* .call();
|
|
32
|
-
*
|
|
33
|
-
* // Use long format
|
|
34
|
-
* const desc = await git.describe()
|
|
35
|
-
* .setLong(true)
|
|
36
|
-
* .call();
|
|
37
|
-
*
|
|
38
|
-
* // Include lightweight tags
|
|
39
|
-
* const desc = await git.describe()
|
|
40
|
-
* .setTags(true)
|
|
41
|
-
* .call();
|
|
42
|
-
*
|
|
43
|
-
* // Always output something (fall back to commit hash)
|
|
44
|
-
* const desc = await git.describe()
|
|
45
|
-
* .setAlways(true)
|
|
46
|
-
* .call();
|
|
47
|
-
*
|
|
48
|
-
* // Match specific tag patterns
|
|
49
|
-
* const desc = await git.describe()
|
|
50
|
-
* .setMatch("v*")
|
|
51
|
-
* .call();
|
|
36
|
+
* const desc = await git.describe().call(); // HEAD
|
|
37
|
+
* const desc = await git.describe().setTags(true).call(); // lightweight tags too
|
|
38
|
+
* const { stdout } = await git.describe().setRevisions("HEAD~2", "v1.0").callText();
|
|
39
|
+
* const { stdout } = await git.describe().setDirty().callText(); // "v1.2-3-gabc1234-dirty"
|
|
40
|
+
* const { stdout } = await git.describe().setContains(true).callText(); // "v2.0~3"
|
|
52
41
|
* ```
|
|
53
42
|
*/
|
|
54
43
|
export declare class DescribeCommand extends GitCommand<DescribeResult> {
|
|
55
44
|
private target?;
|
|
45
|
+
private revisions;
|
|
56
46
|
private longFormat;
|
|
57
47
|
private useTags;
|
|
58
48
|
private useAll;
|
|
59
49
|
private always;
|
|
60
|
-
private abbrev
|
|
50
|
+
private abbrev?;
|
|
61
51
|
private matchPatterns;
|
|
62
52
|
private excludePatterns;
|
|
63
53
|
private maxCandidates;
|
|
54
|
+
private contains;
|
|
55
|
+
private firstParent;
|
|
56
|
+
private debug;
|
|
57
|
+
private dirty?;
|
|
58
|
+
private broken?;
|
|
59
|
+
private compatibility;
|
|
60
|
+
/** What a child git (diff-index of `--broken`) printed on stderr */
|
|
61
|
+
private childStderr;
|
|
64
62
|
/**
|
|
65
63
|
* Set the commit to describe.
|
|
66
64
|
*
|
|
@@ -73,6 +71,8 @@ export declare class DescribeCommand extends GitCommand<DescribeResult> {
|
|
|
73
71
|
* @param rev Reference string (branch, tag, commit ID)
|
|
74
72
|
*/
|
|
75
73
|
setTargetRef(rev: string): Promise<this>;
|
|
74
|
+
/** The revisions to describe, as given to git (`<commit-ish>...`, blobs too). */
|
|
75
|
+
setRevisions(...revisions: string[]): this;
|
|
76
76
|
/**
|
|
77
77
|
* Whether to always use long output format.
|
|
78
78
|
*
|
|
@@ -106,9 +106,10 @@ export declare class DescribeCommand extends GitCommand<DescribeResult> {
|
|
|
106
106
|
*/
|
|
107
107
|
setAlways(always: boolean): this;
|
|
108
108
|
/**
|
|
109
|
-
* Set the abbreviation length for commit hash
|
|
109
|
+
* Set the abbreviation length for commit hash (`--abbrev=<n>`): 0 prints the tag alone,
|
|
110
|
+
* other lengths are kept between 4 and 40.
|
|
110
111
|
*
|
|
111
|
-
* @param abbrev Abbreviation length (default:
|
|
112
|
+
* @param abbrev Abbreviation length (default: `core.abbrev`)
|
|
112
113
|
*/
|
|
113
114
|
setAbbrev(abbrev: number): this;
|
|
114
115
|
/**
|
|
@@ -128,48 +129,54 @@ export declare class DescribeCommand extends GitCommand<DescribeResult> {
|
|
|
128
129
|
*/
|
|
129
130
|
setExclude(...patterns: string[]): this;
|
|
130
131
|
/**
|
|
131
|
-
* Set maximum number of tag candidates to consider.
|
|
132
|
+
* Set maximum number of tag candidates to consider (`--candidates=<n>`, at most 28).
|
|
132
133
|
*
|
|
133
134
|
* @param max Maximum candidates (default: 10)
|
|
134
135
|
*/
|
|
135
136
|
setMaxCandidates(max: number): this;
|
|
137
|
+
/** `--candidates=<n>`: as {@link setMaxCandidates}. */
|
|
138
|
+
setCandidates(max: number): this;
|
|
139
|
+
/** `--exact-match` (`--candidates=0`); false is `--no-exact-match` (10 candidates). */
|
|
140
|
+
setExactMatch(exact: boolean): this;
|
|
141
|
+
/** `--contains`: the tag that comes after the commit (name-rev). */
|
|
142
|
+
setContains(contains: boolean): this;
|
|
143
|
+
/** `--first-parent`: only first parents are followed. */
|
|
144
|
+
setFirstParent(firstParent: boolean): this;
|
|
145
|
+
/** `--debug`: the search strategy on stderr. */
|
|
146
|
+
setDebug(debug: boolean): this;
|
|
136
147
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* @returns Description result with tag name, depth, and/or commit hash
|
|
140
|
-
*/
|
|
141
|
-
call(): Promise<DescribeResult>;
|
|
142
|
-
/**
|
|
143
|
-
* Collect all tags/refs into a map by commit ID.
|
|
148
|
+
* `--dirty[=<mark>]`: HEAD described, `<mark>` (default `-dirty`) appended when the
|
|
149
|
+
* worktree differs from it; `undefined` turns it off.
|
|
144
150
|
*/
|
|
145
|
-
|
|
151
|
+
setDirty(mark?: string | undefined): this;
|
|
146
152
|
/**
|
|
147
|
-
*
|
|
153
|
+
* `--broken[=<mark>]`: as `--dirty`, and `<mark>` (default `-broken`) when the worktree
|
|
154
|
+
* cannot be compared (a broken submodule); `undefined` turns it off.
|
|
148
155
|
*/
|
|
149
|
-
|
|
156
|
+
setBroken(mark?: string | undefined): this;
|
|
157
|
+
/** The git version whose behaviour to follow (see `DescribeOptions.compatibility`). */
|
|
158
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
150
159
|
/**
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Select the best tag from multiple candidates.
|
|
156
|
-
*/
|
|
157
|
-
private selectBestTag;
|
|
158
|
-
/**
|
|
159
|
-
* Find tag candidates by walking ancestors.
|
|
160
|
-
*/
|
|
161
|
-
private findCandidates;
|
|
162
|
-
/**
|
|
163
|
-
* Format a ref name to tag name.
|
|
164
|
-
*/
|
|
165
|
-
private formatTagName;
|
|
166
|
-
/**
|
|
167
|
-
* Format long description: tag-depth-gSHA.
|
|
160
|
+
* Execute the describe command.
|
|
161
|
+
*
|
|
162
|
+
* @returns Description result with tag name, depth, and/or commit hash
|
|
168
163
|
*/
|
|
169
|
-
|
|
164
|
+
call(): Promise<DescribeResult>;
|
|
170
165
|
/**
|
|
171
|
-
*
|
|
166
|
+
* git describe's stdout (one line per revision) and stderr.
|
|
167
|
+
*
|
|
168
|
+
* @throws DescribeError where git dies (its stderr as the message, the lines printed
|
|
169
|
+
* before in `stdout`)
|
|
172
170
|
*/
|
|
171
|
+
callText(): Promise<DescribeText>;
|
|
173
172
|
private abbreviate;
|
|
173
|
+
private nameRevSource;
|
|
174
|
+
private run;
|
|
175
|
+
/** `--dirty`/`--broken`: the mark the worktree's state against HEAD gives. */
|
|
176
|
+
private worktreeSuffix;
|
|
177
|
+
/** Whether a stage-0 entry's file no longer matches its stat (`ce_match_stat_basic`). */
|
|
178
|
+
private statChanged;
|
|
179
|
+
/** `describe --contains`: `name-rev --peel-tag --name-only --no-undefined [--tags]`. */
|
|
180
|
+
private runContains;
|
|
174
181
|
}
|
|
175
182
|
//# sourceMappingURL=describe-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe-command.d.ts","sourceRoot":"","sources":["../../src/commands/describe-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"describe-command.d.ts","sourceRoot":"","sources":["../../src/commands/describe-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,sCAAsC;IACtC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC,sDAAsD;IACtD,QAA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EAA8E;YAChE,cAAc;IAoC5B,yFAAyF;YAC3E,WAAW;IAWzB,wFAAwF;YAC1E,WAAW;CAwC1B"}
|
|
@@ -2,11 +2,16 @@ import { type XdiffAlgorithm } from "@statewalker/vcs-utils";
|
|
|
2
2
|
import { type Staging } from "@statewalker/vcs-working-tree";
|
|
3
3
|
import { GitCommand } from "../git-command.js";
|
|
4
4
|
import { ChangeType, type DiffEntry } from "../results/diff-entry.js";
|
|
5
|
-
import { type DiffOutputOptions, type DiffstatFile, type DiffstatOptions } from "../results/diff-output.js";
|
|
5
|
+
import { type DiffDriver, type DiffOutputOptions, type DiffstatFile, type DiffstatOptions } from "../results/diff-output.js";
|
|
6
6
|
import { type DiffColorOptions, type DiffColorSettings } from "./diff-color-config.js";
|
|
7
7
|
import { type SubmoduleIgnoreMode } from "./submodule-config.js";
|
|
8
8
|
import { type SubmoduleDiffFormat } from "./submodule-summary.js";
|
|
9
9
|
export type DiffOutputFormat = "patch" | "stat" | "numstat" | "shortstat" | "summary" | "name-only" | "name-status"
|
|
10
|
+
/**
|
|
11
|
+
* `--dirstat`: the share of the change each directory holds (see
|
|
12
|
+
* {@link DiffTextOptions.dirstat}, `diff.dirstat`)
|
|
13
|
+
*/
|
|
14
|
+
| "dirstat"
|
|
10
15
|
/**
|
|
11
16
|
* `--check`: the whitespace errors and leftover conflict markers the change adds (see
|
|
12
17
|
* {@link writePairCheck}); it turns the other formats off, and {@link DiffCommand.exitCode}
|
|
@@ -14,7 +19,7 @@ export type DiffOutputFormat = "patch" | "stat" | "numstat" | "shortstat" | "sum
|
|
|
14
19
|
*/
|
|
15
20
|
| "check";
|
|
16
21
|
/** Options of the text output that `git diff` takes on its command line */
|
|
17
|
-
export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "algorithm" | "indentHeuristic" | "ignoreRegex" | "colors" | "wsHighlight" | "whitespaceRule" | "defaultWordRegex">, DiffColorOptions {
|
|
22
|
+
export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "algorithm" | "indentHeuristic" | "ignoreRegex" | "colors" | "wsHighlight" | "whitespaceRule" | "defaultWordRegex" | "anchors">, DiffColorOptions {
|
|
18
23
|
/**
|
|
19
24
|
* The builtin diff drivers (funcname and word regexes) of that git version (default 2.56):
|
|
20
25
|
* 2.43 has no `ini`, `r` and `swift` drivers and older `bash`, `csharp` and `scheme` ones
|
|
@@ -163,6 +168,39 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
163
168
|
pickaxeAll?: boolean;
|
|
164
169
|
/** `-i` / `--regexp-ignore-case` of `-S`/`-G` (ASCII case folded) */
|
|
165
170
|
pickaxeIgnoreCase?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* `-M[<n>]` / `--find-renames[=<n>]`: detect renames, at least this similar (git's
|
|
173
|
+
* syntax: `90%`, `9` and `.9` alike; `true` the default 50%); `false` is `--no-renames`.
|
|
174
|
+
* Wins over {@link DiffCommand.setRenames} and `diff.renames`. Trailing text throws git's
|
|
175
|
+
* `error: invalid argument to find-renames` (exit 129).
|
|
176
|
+
*/
|
|
177
|
+
findRenames?: boolean | string;
|
|
178
|
+
/**
|
|
179
|
+
* `-C[<n>]` / `--find-copies[=<n>]`: renames and copies, from the modified paths too (the
|
|
180
|
+
* threshold as {@link findRenames}). With `diff.renames=copies` and nothing else asking,
|
|
181
|
+
* git's second `-C` is found: copies are then found harder.
|
|
182
|
+
*/
|
|
183
|
+
findCopies?: boolean | string;
|
|
184
|
+
/** `--find-copies-harder` (or `-C -C`): unchanged paths are copy sources too */
|
|
185
|
+
findCopiesHarder?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* `-B[<n>][/<m>]` / `--break-rewrites`: modifications that changed at least `<n>` (default
|
|
188
|
+
* 50%) are broken into a deletion and a creation for rename detection, and merged back
|
|
189
|
+
* unless they removed at least `<m>` (default 60%) of the old content, shown then as a
|
|
190
|
+
* complete rewrite (`dissimilarity index`, `M<score>`)
|
|
191
|
+
*/
|
|
192
|
+
breakRewrites?: boolean | string;
|
|
193
|
+
/**
|
|
194
|
+
* `--dirstat=<params>` for the `dirstat` format: comma-separated `changes`, `lines`,
|
|
195
|
+
* `files`, `cumulative`, `noncumulative` and a cut-off percentage (default `diff.dirstat`,
|
|
196
|
+
* else `changes,noncumulative,3`)
|
|
197
|
+
*/
|
|
198
|
+
dirstat?: string;
|
|
199
|
+
/**
|
|
200
|
+
* `--anchored=<text>`: the patience diff, lines starting with one of these texts kept
|
|
201
|
+
* unchanged where they are unique on both sides
|
|
202
|
+
*/
|
|
203
|
+
anchored?: readonly string[];
|
|
166
204
|
}
|
|
167
205
|
/** Whether options ask for a pickaxe (git's `DIFF_PICKAXE_KINDS_MASK`) */
|
|
168
206
|
export declare function hasPickaxe(o: DiffTextOptions): boolean;
|
|
@@ -171,6 +209,12 @@ export declare function hasPickaxe(o: DiffTextOptions): boolean;
|
|
|
171
209
|
* diff_setup_done's combinations), before anything is read
|
|
172
210
|
*/
|
|
173
211
|
export declare function checkPickaxeOptions(o: DiffTextOptions): void;
|
|
212
|
+
/**
|
|
213
|
+
* `diff.renames` as git_config_rename reads it: `copies`/`copy` detect copies too.
|
|
214
|
+
*
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
export declare function renamesValue(value: string | undefined): boolean | "copies" | undefined;
|
|
174
218
|
/**
|
|
175
219
|
* Show changes between commits, trees, the index and the worktree.
|
|
176
220
|
*
|
|
@@ -322,8 +366,10 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
322
366
|
/** Whether the last call found differences (git's `has_changes`) */
|
|
323
367
|
get hasChanges(): boolean;
|
|
324
368
|
/**
|
|
325
|
-
* Show intent-to-add entries
|
|
326
|
-
*
|
|
369
|
+
* Show intent-to-add entries as the empty files they name, as plumbing's
|
|
370
|
+
* `diff-index --cached` and `diff-files` do (porcelain `git diff` sets
|
|
371
|
+
* `ita_invisible_in_index`): in a `--cached` comparison on the index side, against the
|
|
372
|
+
* worktree as the old side (`git add -e`'s diff).
|
|
327
373
|
*
|
|
328
374
|
* @internal
|
|
329
375
|
*/
|
|
@@ -393,6 +439,12 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
393
439
|
* `diff.submodule`, its warnings, and the failure of a variable without a value.
|
|
394
440
|
*/
|
|
395
441
|
private readUiConfig;
|
|
442
|
+
/** `diff.dirstat`'s parameters (git's defaults without it) */
|
|
443
|
+
private configuredDirstat?;
|
|
444
|
+
/** The dirstat's parameters: `diff.dirstat`, then {@link DiffTextOptions.dirstat} */
|
|
445
|
+
private dirstatParams;
|
|
446
|
+
/** show_dirstat (or show_dirstat_by_line): the dirstat of the pairs */
|
|
447
|
+
private writeDirstat;
|
|
396
448
|
/**
|
|
397
449
|
* Compare HEAD (or the old tree) to the index instead of the worktree.
|
|
398
450
|
*
|
|
@@ -426,6 +478,31 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
426
478
|
* <pathspec>`) does: paths from the top, with wildcards and magic (see `LogCommand.addPath`).
|
|
427
479
|
*/
|
|
428
480
|
setPathspec(paths: string[]): this;
|
|
481
|
+
/**
|
|
482
|
+
* The queue {@link callFormats} prints instead of comparing the trees: pairs a caller found
|
|
483
|
+
* itself (`git log -L` queues each commit's pairs with their line ranges, line-log.c's
|
|
484
|
+
* `line_log_queue_pairs`). diffcore's later stages (pickaxe, order, `--diff-filter`) still
|
|
485
|
+
* apply.
|
|
486
|
+
*
|
|
487
|
+
* @internal
|
|
488
|
+
*/
|
|
489
|
+
setQueue(entries: DiffEntry[]): this;
|
|
490
|
+
private presetQueue?;
|
|
491
|
+
/**
|
|
492
|
+
* diffcore's filtering stages over a queue a caller found (the pickaxe, `-O`,
|
|
493
|
+
* `--diff-filter`): git 2.43's `git log -L` runs them on the pairs it follows renames with
|
|
494
|
+
*
|
|
495
|
+
* @internal
|
|
496
|
+
*/
|
|
497
|
+
filterQueue(entries: DiffEntry[]): Promise<DiffEntry[]>;
|
|
498
|
+
/**
|
|
499
|
+
* The diff driver of a path as a diff of two trees finds it (the worktree's attributes,
|
|
500
|
+
* `diff.<driver>.*`, the builtin drivers): `git log -L :<funcname>:<file>` finds functions
|
|
501
|
+
* by its funcname pattern (line-range.c's `userdiff_find_by_path`)
|
|
502
|
+
*
|
|
503
|
+
* @internal
|
|
504
|
+
*/
|
|
505
|
+
driverOf(path: string): Promise<DiffDriver | undefined>;
|
|
429
506
|
/**
|
|
430
507
|
* Detect renames (`-M`, `--no-renames`). Default: off for `call()` (each path as added and
|
|
431
508
|
* deleted), `diff.renames` (default on) for `callText()`.
|
|
@@ -435,6 +512,23 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
435
512
|
setRenameLimit(limit: number): this;
|
|
436
513
|
/** `diff` stores no objects: its abbreviations read each loose fan-out directory once */
|
|
437
514
|
protected writesNoObjects(): boolean;
|
|
515
|
+
/** diff.c's `additional_path_headers` (see {@link setAdditionalHeaders}) */
|
|
516
|
+
private additionalHeaders?;
|
|
517
|
+
/**
|
|
518
|
+
* diff.c's `additional_path_headers` (`--remerge-diff`'s `remerge CONFLICT` lines), by path:
|
|
519
|
+
* the paths within the pathspec keep theirs (log-tree.c's setup_additional_headers). A
|
|
520
|
+
* pair's headers follow its rename lines; a path with headers and no change is shown as a
|
|
521
|
+
* `diff --git` line with its headers alone, unless a pickaxe or a `--diff-filter` without
|
|
522
|
+
* `U` is given (`include_conflict_headers`).
|
|
523
|
+
*/
|
|
524
|
+
setAdditionalHeaders(headers: ReadonlyMap<string, readonly string[]>): this;
|
|
525
|
+
/** The additional headers within the pathspec, undefined for none */
|
|
526
|
+
private headersInPathspec;
|
|
527
|
+
/**
|
|
528
|
+
* diff.c's `include_conflict_headers`: headers present, no pickaxe, and no `--diff-filter`
|
|
529
|
+
* or one that keeps `U`
|
|
530
|
+
*/
|
|
531
|
+
private includesConflictHeaders;
|
|
438
532
|
/** Text output options: context, algorithm, whitespace, `--stat` widths, ... */
|
|
439
533
|
setOptions(options: DiffTextOptions): this;
|
|
440
534
|
/**
|
|
@@ -496,6 +590,11 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
496
590
|
private followSource;
|
|
497
591
|
/** The formats of the collected comparison, in diff_flush's order */
|
|
498
592
|
private writeFormats;
|
|
593
|
+
/**
|
|
594
|
+
* create_filepairs_for_header_only_notifications: the pairs, and the paths with headers
|
|
595
|
+
* none of them names first (as strings), sorted by first name (diffcore_fix_diff_index)
|
|
596
|
+
*/
|
|
597
|
+
private withHeaderOnlyPairs;
|
|
499
598
|
/**
|
|
500
599
|
* builtin_diff's submodule branch: `--submodule=log` (show_submodule_diff_summary) or
|
|
501
600
|
* `--submodule=diff` (show_submodule_inline_diff) for a pair of submodules (or a submodule
|
|
@@ -626,8 +725,21 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
626
725
|
*/
|
|
627
726
|
private pairUp;
|
|
628
727
|
/**
|
|
629
|
-
*
|
|
630
|
-
* `
|
|
728
|
+
* diffcore's settings of a run: rename or copy detection (`renames` as configured or set,
|
|
729
|
+
* then `-M`/`-C`), its threshold, `--find-copies-harder`, `-B`; option errors are thrown here
|
|
730
|
+
*/
|
|
731
|
+
private diffcoreSettings;
|
|
732
|
+
/**
|
|
733
|
+
* diffcore_std's pair stages: `diffcore_break` (`-B`), `diffcore_rename` (renames, copies,
|
|
734
|
+
* `--find-copies-harder`), `diffcore_merge_broken`, then `diff_resolve_rename_copy`. The
|
|
735
|
+
* entries are changed in place, in git's queue order.
|
|
736
|
+
*/
|
|
737
|
+
private diffcore;
|
|
738
|
+
/**
|
|
739
|
+
* git's `diffcore_rename` over the queue: deleted paths (broken deletions too) as sources,
|
|
740
|
+
* with copies the modified paths (and, harder, the unmodified ones) as sources that stay,
|
|
741
|
+
* created paths as destinations. A destination paired becomes a rename (resolved into a
|
|
742
|
+
* copy or a rename by {@link diffcore}); a deletion its rename takes is dropped.
|
|
631
743
|
*/
|
|
632
744
|
private detectRenames;
|
|
633
745
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAOL,KAAK,OAAO,EAKb,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAOL,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,EACtB,KAAK,YAAY,EACjB,KAAK,eAAe,EAUrB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,wBAAwB,CAAC;AAwChC,MAAM,MAAM,gBAAgB,GACxB,OAAO,GACP,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,GACX,aAAa;AACf;;;GAGG;GACD,SAAS;AACX;;;;GAIG;GACD,OAAO,CAAC;AAEZ,2EAA2E;AAC3E,MAAM,WAAW,eACf,SAAQ,IAAI,CACR,iBAAiB,EACf,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,aAAa,GACb,QAAQ,GACR,aAAa,GACb,gBAAgB,GAChB,kBAAk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AAe,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAaxD"}
|
|
@@ -2,6 +2,7 @@ import { type FilesApi } from "@statewalker/vcs-core";
|
|
|
2
2
|
import { type FetchRefUpdate, type TagMode } from "@statewalker/vcs-transport";
|
|
3
3
|
import { type FetchResult, type TrackingRefUpdate } from "../results/fetch-result.js";
|
|
4
4
|
import { TransportCommand } from "../transport-command.js";
|
|
5
|
+
import { type FetchRecurseSubmodules } from "./submodule-fetch.js";
|
|
5
6
|
/**
|
|
6
7
|
* Tag fetching option.
|
|
7
8
|
*
|
|
@@ -65,6 +66,8 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
65
66
|
private porcelain;
|
|
66
67
|
private thin;
|
|
67
68
|
private depth?;
|
|
69
|
+
/** `--deepen=<n>`: `deepen <n>` with `deepen-relative` */
|
|
70
|
+
private deepen?;
|
|
68
71
|
private uploadPack?;
|
|
69
72
|
private dryRun;
|
|
70
73
|
private writeCommitGraphOption?;
|
|
@@ -82,6 +85,15 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
82
85
|
private filterSpec?;
|
|
83
86
|
private refetch;
|
|
84
87
|
private setUpstream;
|
|
88
|
+
/** `--[no-]recurse-submodules[=<mode>]`; unset: the configuration's */
|
|
89
|
+
private recurseSubmodules?;
|
|
90
|
+
/** `--recurse-submodules-default` (a submodule's fetch run by its superproject's) */
|
|
91
|
+
private recurseSubmodulesDefault;
|
|
92
|
+
/** `--submodule-prefix` */
|
|
93
|
+
private submodulePrefix;
|
|
94
|
+
private quiet;
|
|
95
|
+
/** The arguments git's reflog action names, when this fetch is a superproject's child */
|
|
96
|
+
private childArguments?;
|
|
85
97
|
/**
|
|
86
98
|
* Set the remote to fetch from.
|
|
87
99
|
*
|
|
@@ -184,6 +196,32 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
184
196
|
* `From <url>` line; `fetch.output` does not apply.
|
|
185
197
|
*/
|
|
186
198
|
setPorcelain(porcelain: boolean): this;
|
|
199
|
+
/**
|
|
200
|
+
* `--recurse-submodules[=yes|on-demand|no]` / `--no-recurse-submodules` (true is `yes`,
|
|
201
|
+
* false `no`). Unset, git's configuration decides (`submodule.recurse`,
|
|
202
|
+
* `fetch.recurseSubmodules`, in config order; else `.gitmodules`' `fetch.recurseSubmodules`),
|
|
203
|
+
* and without any the fetch recurses on demand: after the superproject's refs are stored,
|
|
204
|
+
* each submodule whose recorded commit the fetched history changed is fetched, as
|
|
205
|
+
* `submodule.<name>.fetchRecurseSubmodules` allows (`yes`: every populated submodule).
|
|
206
|
+
* The submodules' fetches print into {@link FetchResult.submoduleOutput} and their results
|
|
207
|
+
* are {@link FetchResult.submodules}; a failed one fails the fetch (git's exit status 1,
|
|
208
|
+
* {@link FetchResult.submodulesFailed}). Submodules are fetched one at a time (git's
|
|
209
|
+
* `submodule.fetchJobs`/`-j` only run several at once; one job is this order).
|
|
210
|
+
*
|
|
211
|
+
* A submodule's URL comes from repository content: the transports given here reach it, but
|
|
212
|
+
* this fetch's credentials and headers go to it only when its origin is the origin of the
|
|
213
|
+
* remote this fetch is for (`guardSubmoduleTransports`).
|
|
214
|
+
*/
|
|
215
|
+
setRecurseSubmodules(mode: boolean | FetchRecurseSubmodules): this;
|
|
216
|
+
/**
|
|
217
|
+
* `-q`: the submodules' fetches are quiet and no `Fetching submodule` line is printed
|
|
218
|
+
* ({@link FetchResult.display} is still returned: the caller prints it or not).
|
|
219
|
+
*/
|
|
220
|
+
setQuiet(quiet: boolean): this;
|
|
221
|
+
/** @internal `--recurse-submodules-default` and `--submodule-prefix` of a submodule's fetch. */
|
|
222
|
+
setSubmoduleContext(defaultMode: "yes" | "on-demand", prefix: string, childArguments: string[]): this;
|
|
223
|
+
/** @internal The remote `git fetch` without one fetches (not named on its command line). */
|
|
224
|
+
setDefaultRemote(remote: string): this;
|
|
187
225
|
/** Whether the ref lines are porcelain ones (`--porcelain`). */
|
|
188
226
|
isPorcelain(): boolean;
|
|
189
227
|
/**
|
|
@@ -229,6 +267,12 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
229
267
|
* @param depth Number of commits to fetch
|
|
230
268
|
*/
|
|
231
269
|
setDepth(depth: number): this;
|
|
270
|
+
/**
|
|
271
|
+
* `--deepen=<n>`: deepen a shallow repository by `n` commits from its current shallow
|
|
272
|
+
* boundary (git's `deepen <n>` with `deepen-relative`), instead of `n` from the tips as
|
|
273
|
+
* {@link setDepth}.
|
|
274
|
+
*/
|
|
275
|
+
setDeepen(deepen: number): this;
|
|
232
276
|
/**
|
|
233
277
|
* Set the program the remote runs for upload-pack (git's `--upload-pack`, over
|
|
234
278
|
* `remote.<name>.uploadpack`): what an ssh connector runs, and what git:// names in its
|
|
@@ -399,6 +443,15 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
399
443
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
400
444
|
*/
|
|
401
445
|
call(): Promise<FetchResult>;
|
|
446
|
+
/**
|
|
447
|
+
* cmd_fetch's `config.recurse_submodules`: the command line, else `submodule.recurse` and
|
|
448
|
+
* `fetch.recurseSubmodules` in config order, else `.gitmodules`' `fetch.recurseSubmodules`;
|
|
449
|
+
* undefined when the fetch does not recurse (`no`, `--porcelain`, no worktree). git checks
|
|
450
|
+
* `submodule.fetchJobs` there too (a negative one dies).
|
|
451
|
+
*/
|
|
452
|
+
private submoduleRecursion;
|
|
453
|
+
/** fetch_submodules over this fetch's options (add_options_to_argv). */
|
|
454
|
+
private fetchSubmodulesAfter;
|
|
402
455
|
/**
|
|
403
456
|
* git's `--set-upstream` (do_fetch): the ref map's one ref without a local ref (fetched
|
|
404
457
|
* only into FETCH_HEAD; a ref add_merge_config marked among those the refspecs took has
|
|
@@ -489,4 +542,11 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
489
542
|
export declare function toTagMode(option: TagOption): TagMode;
|
|
490
543
|
/** A transport ref update as a {@link TrackingRefUpdate}. */
|
|
491
544
|
export declare function toTrackingRefUpdate(update: FetchRefUpdate): TrackingRefUpdate;
|
|
545
|
+
/**
|
|
546
|
+
* What a fetch prints on stderr, as git's child `git fetch` does: its ref lines (not with
|
|
547
|
+
* `-q`), its messages, its errors, then its submodules' lines.
|
|
548
|
+
*/
|
|
549
|
+
export declare function fetchOutputText(result: FetchResult, quiet?: boolean): string;
|
|
550
|
+
/** Whether git's fetch exits 0: no error, no refused ref, its submodules fetched. */
|
|
551
|
+
export declare function fetchSucceeded(result: FetchResult): boolean;
|
|
492
552
|
//# sourceMappingURL=fetch-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,EAWnB,KAAK,OAAO,EAGb,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,EAWnB,KAAK,OAAO,EAGb,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAiB3D,OAAO,EACL,KAAK,sBAAsB,EAM5B,MAAM,sBAAsB,CAAC;AAI9B;;;;GAIG;AACH,oBAAY,SAAS;IACnB,8DAA8D;IAC9D,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,UAAU,eAAe;IACzB,2BAA2B;IAC3B,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,YAAa,SAAQ,gBAAgB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