@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
|
@@ -27,6 +27,16 @@ export interface BlameEntry {
|
|
|
27
27
|
};
|
|
28
28
|
/** A boundary commit (a root commit, unless `setShowRoot(true)`): `^` in git's output */
|
|
29
29
|
boundary?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Lines an ignored commit changed, blamed on the line of its parent they resemble (`?` in
|
|
32
|
+
* git's output and `ignored` in the porcelain ones under `blame.markIgnoredLines`)
|
|
33
|
+
*/
|
|
34
|
+
ignored?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Lines an ignored commit changed that resemble no line of its parent, so stay its own
|
|
37
|
+
* (`*` and `unblamable` under `blame.markUnblamableLines`)
|
|
38
|
+
*/
|
|
39
|
+
unblamable?: boolean;
|
|
30
40
|
}
|
|
31
41
|
/**
|
|
32
42
|
* Detailed tracking information for a single line.
|
|
@@ -61,8 +71,23 @@ export interface BlameResult {
|
|
|
61
71
|
* line ranges asked for
|
|
62
72
|
*/
|
|
63
73
|
entries: BlameEntry[];
|
|
64
|
-
/** The blamed file's content at the start commit */
|
|
74
|
+
/** The blamed file's content at the start commit (`--reverse`: at the commit reversed from) */
|
|
65
75
|
content?: Uint8Array;
|
|
76
|
+
/** Whether git's output marks ignored lines (`blame.markIgnoredLines`, `setMarkIgnoredLines`) */
|
|
77
|
+
markIgnoredLines?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Whether git's output marks unblamable lines (`blame.markUnblamableLines`,
|
|
80
|
+
* `setMarkUnblamableLines`)
|
|
81
|
+
*/
|
|
82
|
+
markUnblamableLines?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The entries in the order blame found them, before sorting and coalescing: what
|
|
85
|
+
* `git blame --incremental` prints (`formatBlameIncremental`). Each entry's `boundary` is
|
|
86
|
+
* what git knew when it printed the entry.
|
|
87
|
+
*/
|
|
88
|
+
incremental?: BlameEntry[];
|
|
89
|
+
/** The output settings of the repository's configuration (defaults of `formatBlame`) */
|
|
90
|
+
output?: BlameOutputConfig;
|
|
66
91
|
/**
|
|
67
92
|
* Get the blame entry for a specific line (1-based).
|
|
68
93
|
*
|
|
@@ -112,6 +137,54 @@ export interface BlameResult {
|
|
|
112
137
|
*/
|
|
113
138
|
autoAbbrev?(): Promise<number>;
|
|
114
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* The output settings `git blame` reads from the configuration (`git_blame_config`), which
|
|
142
|
+
* `formatBlame` takes as defaults of its options
|
|
143
|
+
*/
|
|
144
|
+
export interface BlameOutputConfig {
|
|
145
|
+
/** `blame.date`: the date mode (`--date`), as written */
|
|
146
|
+
date?: string;
|
|
147
|
+
/** `blame.showEmail` (`-e`) */
|
|
148
|
+
showEmail?: boolean;
|
|
149
|
+
/** `blame.blankBoundary` (`-b`) */
|
|
150
|
+
blankBoundary?: boolean;
|
|
151
|
+
/** `blame.coloring=repeatedLines` (`--color-lines`) */
|
|
152
|
+
colorLines?: boolean;
|
|
153
|
+
/** `blame.coloring=highlightRecent` (`--color-by-age`) */
|
|
154
|
+
colorByAge?: boolean;
|
|
155
|
+
/** `color.blame.repeatedLines`: the escape sequence of the color (default cyan) */
|
|
156
|
+
repeatedLinesColor?: string;
|
|
157
|
+
/** `color.blame.highlightRecent`: `<color>,<date>,<color>,...` as written */
|
|
158
|
+
highlightRecent?: string;
|
|
159
|
+
/** Warnings git prints while reading these settings (invalid values it skips) */
|
|
160
|
+
warnings?: string[];
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The buffer blamed instead of the file of the start commit (`setContents`): git's fake
|
|
164
|
+
* working-tree commit on top of the start commit
|
|
165
|
+
*/
|
|
166
|
+
export interface BlameContentsOptions {
|
|
167
|
+
/**
|
|
168
|
+
* The `--contents` argument, named in the fake commit's summary (`-` reads "standard
|
|
169
|
+
* input", the default)
|
|
170
|
+
*/
|
|
171
|
+
name?: string;
|
|
172
|
+
/**
|
|
173
|
+
* The working tree's file blamed as `git blame <path>` without a revision does: the commit
|
|
174
|
+
* is "Not Committed Yet" instead of "External file (--contents)"
|
|
175
|
+
*/
|
|
176
|
+
workingTree?: boolean;
|
|
177
|
+
/** The fake commit's time in seconds (default now) */
|
|
178
|
+
time?: number;
|
|
179
|
+
/** Its zone, `+HHMM` (default the local zone at `time`) */
|
|
180
|
+
tzOffset?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The file's mode, as git's `canon_mode` of the `--contents` file's stat or the working
|
|
183
|
+
* tree file's lstat (`120000` for a link, whose content is its target); default, as for
|
|
184
|
+
* standard input, the index entry's mode at the path, else `100644`
|
|
185
|
+
*/
|
|
186
|
+
mode?: number;
|
|
187
|
+
}
|
|
115
188
|
/**
|
|
116
189
|
* Annotate each line of a file with the commit that last changed it.
|
|
117
190
|
*
|
|
@@ -123,8 +196,14 @@ export interface BlameResult {
|
|
|
123
196
|
* are its own. A parent with the same blob takes all lines. Root commits are boundaries
|
|
124
197
|
* unless `setShowRoot(true)` (`blame.showRoot`).
|
|
125
198
|
*
|
|
126
|
-
*
|
|
127
|
-
* are
|
|
199
|
+
* Lines moved within the file (`-M`, `setDetectMoves`) and copied from other files (`-C` up
|
|
200
|
+
* to three times, `setDetectCopies`) are found as git's `find_move_in_parent` and
|
|
201
|
+
* `find_copy_in_parent` find them, and names and emails go through the mailmap
|
|
202
|
+
* (`setUseMailmap`). Ignored revisions (`setIgnoreRevs`, `setIgnoreRevsFiles`,
|
|
203
|
+
* `blame.ignoreRevsFile`) pass their changed lines to the parent lines they resemble, by
|
|
204
|
+
* git's fingerprint matching (`guess_line_blames`); `setReverse` blames each line of an old
|
|
205
|
+
* version on the last commit it existed in (`--reverse`), and `setFirstParent` follows
|
|
206
|
+
* first parents only.
|
|
128
207
|
*
|
|
129
208
|
* @example
|
|
130
209
|
* ```typescript
|
|
@@ -151,7 +230,58 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
151
230
|
private lineRanges;
|
|
152
231
|
private diffOptions;
|
|
153
232
|
private renameCountLastSpan?;
|
|
233
|
+
/** `-M`: look for lines moved within the file (`PICKAXE_BLAME_MOVE`) */
|
|
234
|
+
private detectMoves;
|
|
235
|
+
/** `-C` given this many times (`PICKAXE_BLAME_COPY`, `_HARDER`, `_HARDEST`) */
|
|
236
|
+
private copyLevel;
|
|
237
|
+
private moveScore;
|
|
238
|
+
private copyScore;
|
|
239
|
+
private useMailmap;
|
|
240
|
+
private ignoreRevs;
|
|
241
|
+
private ignoreRevsFiles;
|
|
242
|
+
private markIgnoredLines?;
|
|
243
|
+
private markUnblamableLines?;
|
|
244
|
+
/** `:(optional)` paths in the configuration (git 2.52+) */
|
|
245
|
+
private optionalPaths;
|
|
246
|
+
/** `--reverse`: the commit whose lines are followed forward */
|
|
247
|
+
private reverseFrom?;
|
|
248
|
+
private firstParent;
|
|
249
|
+
/** The buffer blamed instead of the start commit's file (`--contents`) */
|
|
250
|
+
private contents?;
|
|
251
|
+
/** Commits older than this (committer time, seconds) are boundaries (`--since`) */
|
|
252
|
+
private since?;
|
|
253
|
+
/** Commits `--since` marked uninteresting before they were loaded */
|
|
254
|
+
private sinceUninteresting;
|
|
255
|
+
/** Blobs that exist only here (the `--contents` buffer: git's `odb_pretend_object`) */
|
|
256
|
+
private pretend;
|
|
257
|
+
/** The entries in the order they were found guilty (`--incremental`) */
|
|
258
|
+
private guilty;
|
|
259
|
+
/** The commits blamed lines pass to from each commit in reverse (`revs->children`) */
|
|
260
|
+
private children;
|
|
261
|
+
/** The commits the reverse walk found uninteresting (boundaries) */
|
|
262
|
+
private reverseUninteresting;
|
|
263
|
+
/** The commits whose changes are ignored (`sb->ignore_list`) */
|
|
264
|
+
private ignoreList;
|
|
265
|
+
/** The blamed file at the start commit, its line starts and alphanumerics before each line */
|
|
266
|
+
private finalContent;
|
|
267
|
+
private finalStarts;
|
|
268
|
+
private finalAlnum;
|
|
269
|
+
private originSeq;
|
|
270
|
+
/** Files looked in for copies, interned, the most recently used last (`copySourceText`) */
|
|
271
|
+
private copySources;
|
|
272
|
+
private copySourceBytes;
|
|
273
|
+
/** Line hashes of the files looked in for copies (null: over the big file threshold) */
|
|
274
|
+
private copyHashes;
|
|
275
|
+
private copyHashBytes;
|
|
276
|
+
private copyHashCacheBytes;
|
|
277
|
+
private copySourceCacheBytes;
|
|
278
|
+
/** The hash of each line of the final file (`lineHashesOf`) */
|
|
279
|
+
private finalHashes;
|
|
154
280
|
private states;
|
|
281
|
+
/** The `--contents` buffer's blob and mode */
|
|
282
|
+
private fakeEntry?;
|
|
283
|
+
/** The index's files with the `--contents` buffer at its path (the fake commit's "tree") */
|
|
284
|
+
private fakeFiles?;
|
|
155
285
|
/** Numbers the lines of every version compared, so each is split and hashed once */
|
|
156
286
|
private interner?;
|
|
157
287
|
/**
|
|
@@ -199,12 +329,82 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
199
329
|
*/
|
|
200
330
|
setLineRanges(ranges: Array<[number, number]>): this;
|
|
201
331
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
332
|
+
* Find lines moved or copied within the file (`-M[<num>]`): lines a commit moved are blamed
|
|
333
|
+
* on the commit that wrote them. A block is taken when it has more than `score`
|
|
334
|
+
* alphanumeric characters (default 20; 0 keeps the default, as git's).
|
|
335
|
+
*/
|
|
336
|
+
setDetectMoves(detect: boolean, score?: number): this;
|
|
337
|
+
/**
|
|
338
|
+
* Find lines copied from other files (`-C[<num>]` given `level` times; any level also
|
|
339
|
+
* finds moves): 1 looks in the files the commit changed, 2 also in every file of the parent
|
|
340
|
+
* when the blamed file was created or renamed, 3 in every file of the parent always. A block
|
|
341
|
+
* is taken when it has more than `score` alphanumeric characters (default 40; 0 keeps the
|
|
342
|
+
* default).
|
|
343
|
+
*/
|
|
344
|
+
setDetectCopies(level: number, score?: number): this;
|
|
345
|
+
/**
|
|
346
|
+
* Map the names and emails of authors and committers through the mailmap (`.mailmap`,
|
|
347
|
+
* `mailmap.blob`, `mailmap.file`), as git blame always does (default true). The entries'
|
|
348
|
+
* commits then carry the mapped identities.
|
|
349
|
+
*/
|
|
350
|
+
setUseMailmap(use: boolean): this;
|
|
351
|
+
/**
|
|
352
|
+
* Ignore the changes these revisions made (`--ignore-rev <rev>`, each peeled to a commit):
|
|
353
|
+
* their lines are blamed on the lines of their parents they resemble most (git's fuzzy
|
|
354
|
+
* matching), or stay theirs (unblamable) when none does.
|
|
355
|
+
*
|
|
356
|
+
* @throws Error `cannot find revision <rev> to ignore` when a name gives no commit
|
|
357
|
+
*/
|
|
358
|
+
setIgnoreRevs(revs: string[]): this;
|
|
359
|
+
/**
|
|
360
|
+
* Ignore the revisions listed in these files (`--ignore-revs-file <file>`, read after
|
|
361
|
+
* `blame.ignoreRevsFile`): full object ids, one per line, `#` comments; an empty name
|
|
362
|
+
* forgets the files before it. A relative path is read from the worktree's top.
|
|
363
|
+
*
|
|
364
|
+
* @throws Error `could not open object name list: <file>`, `invalid object name: <line>`
|
|
365
|
+
*/
|
|
366
|
+
setIgnoreRevsFiles(files: string[]): this;
|
|
367
|
+
/** Mark lines blamed through an ignored commit (`?`; default `blame.markIgnoredLines`) */
|
|
368
|
+
setMarkIgnoredLines(mark: boolean): this;
|
|
369
|
+
/** Mark lines an ignored commit keeps (`*`; default `blame.markUnblamableLines`) */
|
|
370
|
+
setMarkUnblamableLines(mark: boolean): this;
|
|
371
|
+
/**
|
|
372
|
+
* Blame in reverse (`--reverse <from>..<start>`): the lines of the file at `from`, each
|
|
373
|
+
* blamed on the last commit up to the start commit (default HEAD) it still existed in.
|
|
374
|
+
*/
|
|
375
|
+
setReverse(from: ObjectId): this;
|
|
376
|
+
/**
|
|
377
|
+
* Follow only first parents (`--first-parent`); with `setReverse`, the range must lie on
|
|
378
|
+
* the start commit's first-parent chain.
|
|
379
|
+
*/
|
|
380
|
+
setFirstParent(first: boolean): this;
|
|
381
|
+
/**
|
|
382
|
+
* Blame a buffer instead of the start commit's file (`--contents <file>`): git's fake
|
|
383
|
+
* commit on top of the start commit (default HEAD) and the commits `MERGE_HEAD` names,
|
|
384
|
+
* with null id, holding `content` at the blamed path of the index. Its lines are blamed on
|
|
385
|
+
* "External file (--contents)" where the parents' file differs (`workingTree`: "Not
|
|
386
|
+
* Committed Yet", as `git blame <path>` blames the working tree's file); a path only the
|
|
387
|
+
* index has is all its own, a rename staged in the index is followed. The content is taken
|
|
388
|
+
* as git stores it (no clean filters).
|
|
389
|
+
*
|
|
390
|
+
* @throws Error `--contents and --reverse do not blend well.` with `setReverse`, and
|
|
391
|
+
* `no such path '<path>' in HEAD` when neither a parent nor the index has the path
|
|
392
|
+
*/
|
|
393
|
+
setContents(content: Uint8Array, options?: BlameContentsOptions): this;
|
|
394
|
+
/**
|
|
395
|
+
* Stop at commits older than `timestamp` (seconds, committer time; `--since`): they and
|
|
396
|
+
* their ancestors are boundaries, as git's `revs->max_age`
|
|
397
|
+
*/
|
|
398
|
+
setSince(timestamp: number): this;
|
|
399
|
+
/**
|
|
400
|
+
* Details that changed between git versions: `histogramRediff` (git 2.54+, default
|
|
401
|
+
* true), `legacyMinimal` (git before 2.5x), `renameCountLastSpan` (rename scores of
|
|
402
|
+
* git 2.50+, default true) and `optionalPaths` (a `blame.ignoreRevsFile` of
|
|
403
|
+
* `:(optional)<path>` naming a missing file is skipped: git 2.52+, default true)
|
|
205
404
|
*/
|
|
206
405
|
setCompatibility(options: Pick<XdiffOptions, "histogramRediff" | "legacyMinimal"> & {
|
|
207
406
|
renameCountLastSpan?: boolean;
|
|
407
|
+
optionalPaths?: boolean;
|
|
208
408
|
}): this;
|
|
209
409
|
/**
|
|
210
410
|
* Set the size above which a file is never loaded (git's
|
|
@@ -226,23 +426,116 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
226
426
|
* @param bytes Size in bytes
|
|
227
427
|
*/
|
|
228
428
|
setInternerByteLimit(bytes: number): this;
|
|
429
|
+
/**
|
|
430
|
+
* Set how many bytes the caches of `-C` keep between commits (default 32 MiB of line hashes
|
|
431
|
+
* of the files looked in, 16 MiB of their contents): a file not kept is read again for the
|
|
432
|
+
* next commit, as git reads it. The output does not change.
|
|
433
|
+
*
|
|
434
|
+
* @param bytes Size in bytes
|
|
435
|
+
*/
|
|
436
|
+
setCopyCacheByteLimit(bytes: number): this;
|
|
229
437
|
/**
|
|
230
438
|
* Execute the blame command.
|
|
231
439
|
*
|
|
232
440
|
* @returns BlameResult with per-line authorship
|
|
233
441
|
*/
|
|
234
442
|
call(): Promise<BlameResult>;
|
|
443
|
+
/** The commits a commit's lines pass to: its parents, or its children in reverse */
|
|
444
|
+
private scapegoats;
|
|
445
|
+
/**
|
|
446
|
+
* builtin/blame.c's `build_ignorelist`: `blame.ignoreRevsFile` (sorted, as git inserts
|
|
447
|
+
* them), the files given, then the revisions given
|
|
448
|
+
*/
|
|
449
|
+
private buildIgnoreList;
|
|
450
|
+
/**
|
|
451
|
+
* The children each commit passes its lines to in `--reverse` (git's `--children` walk of
|
|
452
|
+
* `<from>..<start>`: `limit_list` then `set_children`, or the first-parent chain)
|
|
453
|
+
*/
|
|
454
|
+
private prepareReverse;
|
|
235
455
|
/** The -L ranges as 0-based half-open ranges, sorted and merged; the whole file otherwise */
|
|
236
456
|
private ranges;
|
|
237
457
|
/** git's `assign_blame` */
|
|
238
458
|
private assignBlame;
|
|
239
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* revision.c's `mark_parents_uninteresting`: the parents marked, and the parents of those
|
|
461
|
+
* already loaded (parsed) recursively
|
|
462
|
+
*/
|
|
463
|
+
private markParentsUninteresting;
|
|
464
|
+
/**
|
|
465
|
+
* blame.c's `fake_working_tree_commit`: a commit with the null id on top of `parentId`
|
|
466
|
+
* (and the commits MERGE_HEAD names, `append_merge_parents`) whose file at `path` is the
|
|
467
|
+
* `--contents` buffer; its id is returned
|
|
468
|
+
*/
|
|
469
|
+
private fakeWorkingTreeCommit;
|
|
470
|
+
/** The commits `.git/MERGE_HEAD` names, one per line (`append_merge_parents`) */
|
|
471
|
+
private mergeHeadParents;
|
|
472
|
+
/** Every entry of the index, none without one (a bare repository) */
|
|
473
|
+
private indexEntries;
|
|
474
|
+
/** git's `pass_blame` */
|
|
240
475
|
private passBlame;
|
|
476
|
+
/**
|
|
477
|
+
* The steps of `pass_blame` before its `finish`: the parents' versions found and compared,
|
|
478
|
+
* then moves and copies looked for; returning is git's `goto finish`
|
|
479
|
+
*/
|
|
480
|
+
private passBlameSteps;
|
|
481
|
+
/** `filter_small` of the origin's suspects into `toosmall` */
|
|
482
|
+
private filterSuspects;
|
|
483
|
+
/**
|
|
484
|
+
* git's `filter_small`: the entries of `source` scoring at most `scoreMin` moved to the
|
|
485
|
+
* front of the list after `small`; returns the link before the old head of that list
|
|
486
|
+
*/
|
|
487
|
+
private filterSmall;
|
|
488
|
+
/** git's `blame_entry_score`: one more than the alphanumerics of the lines in the final file */
|
|
489
|
+
private entryScore;
|
|
490
|
+
/** git's `prepare_lines`, and the alphanumerics before each line for `entryScore` */
|
|
491
|
+
private prepareLines;
|
|
492
|
+
/** git's `copy_split_if_better`: `potential` kept in `best` when it scores no lower */
|
|
493
|
+
private copySplitIfBetter;
|
|
494
|
+
/**
|
|
495
|
+
* git's `find_copy_in_blob`: the best run of `ent`'s lines (in the final file) that the
|
|
496
|
+
* parent's file has, as a split of `ent`
|
|
497
|
+
*/
|
|
498
|
+
private findCopyInBlob;
|
|
499
|
+
/** git's `find_move_in_parent`: lines the target is suspected for found in the parent's file */
|
|
500
|
+
private findMoveInParent;
|
|
501
|
+
/**
|
|
502
|
+
* git's `find_copy_in_parent`: lines the target is suspected for found in other files of
|
|
503
|
+
* the parent (`porigin`, the parent's version of the file, was tried by the move pass)
|
|
504
|
+
*/
|
|
505
|
+
private findCopyInParent;
|
|
506
|
+
/**
|
|
507
|
+
* The hash of each line, as the line interner hashes it (`xdl_hash_record` under
|
|
508
|
+
* whitespace flags): lines a diff can match hash alike
|
|
509
|
+
*/
|
|
510
|
+
private lineHashesOf;
|
|
511
|
+
/**
|
|
512
|
+
* Kept while the cache has room (and never evicted): a commit scans its parent's files in
|
|
513
|
+
* the order the next one scans them, so evicting the oldest would evict every file before
|
|
514
|
+
* its next use
|
|
515
|
+
*/
|
|
516
|
+
private keepCopyHashes;
|
|
517
|
+
/** A file a copy was looked for in, interned, kept as `keepCopyHashes` keeps hashes */
|
|
518
|
+
private keepCopySourceText;
|
|
519
|
+
/**
|
|
520
|
+
* The parent's files `find_copy_in_parent` looks in, in the order git's tree diff lists
|
|
521
|
+
* them: those the commit changed or removed, or (`harder`, find_copies_harder) all of
|
|
522
|
+
* them; never gitlinks
|
|
523
|
+
*/
|
|
524
|
+
private copyCandidates;
|
|
525
|
+
/** git's `distribute_blame`: the entries found in parents queued to their origins */
|
|
526
|
+
private distributeBlame;
|
|
527
|
+
/** The diff options of every comparison (`sb->xdl_opts`) */
|
|
528
|
+
private xdiffOptions;
|
|
529
|
+
/** mailmap.c's read_mailmap: `.mailmap` (not in a bare repository), `mailmap.blob`, `mailmap.file` */
|
|
530
|
+
private loadMailmap;
|
|
241
531
|
/** git's `pass_whole_blame` */
|
|
242
532
|
private passWholeBlame;
|
|
243
533
|
/** git's `queue_blames` */
|
|
244
534
|
private queueBlames;
|
|
245
|
-
/**
|
|
535
|
+
/**
|
|
536
|
+
* git's `pass_blame_to_parent`; `ignoreDiffs` (an ignored commit's second pass) passes the
|
|
537
|
+
* changed lines too, to the parent lines they resemble
|
|
538
|
+
*/
|
|
246
539
|
private passBlameToParent;
|
|
247
540
|
/** git's `find_origin`: the parent's version at the same path, of the same kind */
|
|
248
541
|
private findOrigin;
|
|
@@ -260,6 +553,8 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
260
553
|
private lineInterner;
|
|
261
554
|
/** Whether a blob is over the threshold (from its size, without reading it). */
|
|
262
555
|
private isBig;
|
|
556
|
+
/** A blob's size, the `--contents` buffer's too */
|
|
557
|
+
private blobSize;
|
|
263
558
|
/**
|
|
264
559
|
* A blob's content; `shared` (for content only read here) takes a single chunk as it
|
|
265
560
|
* comes (a resolved pack object) instead of copying it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,
|
|
1
|
+
{"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,EAKL,KAAK,kBAAkB,EAEvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAGlB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA6B/C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH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M;YAiBN,YAAY;CAW3B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's heuristics for the lines of an ignored commit (blame.c): each changed line of the
|
|
3
|
+
* ignored version is matched with a line of its parent's version by fingerprint
|
|
4
|
+
* (`fuzzy_find_matching_lines` within the diff chunk, then `scan_parent_range` over the
|
|
5
|
+
* whole parent), so `git blame --ignore-rev` can blame it on the commit that wrote that line.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const parentFps = lineFingerprints(parentContent);
|
|
10
|
+
* const targetFps = lineFingerprints(targetContent);
|
|
11
|
+
* // a chunk replacing parent lines [3, 5) by target lines [3, 7)
|
|
12
|
+
* const blames = guessLineBlames(parentFps, targetFps, 3, 0, 7, 2);
|
|
13
|
+
* blames[0]; // { isParent: true, sLno: 3 } or { isParent: false, sLno: 3 }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* A fingerprint (`struct fingerprint`): the multiset of the lower-cased byte pairs of a line,
|
|
20
|
+
* whitespace (as `\0`) added at both ends, whitespace pairs left out; each pair (`c0 | c1 << 8`)
|
|
21
|
+
* mapped to its count
|
|
22
|
+
*/
|
|
23
|
+
export type Fingerprint = Map<number, number>;
|
|
24
|
+
/** git's `find_line_starts`: where each line starts, and the length at the end */
|
|
25
|
+
export declare function lineStartsOf(content: Uint8Array): Int32Array;
|
|
26
|
+
/** git's `get_line_fingerprints` over every line (`fill_origin_fingerprints`) */
|
|
27
|
+
export declare function lineFingerprints(content: Uint8Array): Fingerprint[];
|
|
28
|
+
/**
|
|
29
|
+
* git's `fuzzy_find_matching_lines`: for each target line of `[tlno, same)` the parent line
|
|
30
|
+
* of `[parentSlno, parentSlno + parentLen)` it matches (-1 for none), the line order kept;
|
|
31
|
+
* undefined when the parent chunk is empty. The matched parent fingerprints are reduced by
|
|
32
|
+
* what was matched (`parentFps` changes).
|
|
33
|
+
*/
|
|
34
|
+
export declare function fuzzyFindMatchingLines(parentFps: Fingerprint[], targetFps: Fingerprint[], tlno: number, parentSlno: number, same: number, parentLen: number): Int32Array | undefined;
|
|
35
|
+
/** Where a changed line of an ignored commit is blamed (`struct blame_line_tracker`) */
|
|
36
|
+
export interface LineBlame {
|
|
37
|
+
/** Whether it goes to the parent (else it stays with the ignored commit: unblamable) */
|
|
38
|
+
isParent: boolean;
|
|
39
|
+
/** Its line in the parent, or its own line in the target */
|
|
40
|
+
sLno: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* git's `guess_line_blames`: for the target lines `[tlno, same)` of a diff chunk whose parent
|
|
44
|
+
* side is `parentLen` lines at `tlno + offset`, the parent line each came from, by the fuzzy
|
|
45
|
+
* match within the chunk, else the best match in the whole parent.
|
|
46
|
+
*/
|
|
47
|
+
export declare function guessLineBlames(parentFps: Fingerprint[], targetFps: Fingerprint[], tlno: number, offset: number, same: number, parentLen: number): LineBlame[];
|
|
48
|
+
//# sourceMappingURL=blame-ignore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blame-ignore.d.ts","sourceRoot":"","sources":["../../src/commands/blame-ignore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAK9C,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,CAS5D;AAoBD,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW,EAAE,CAKnE;AAwCD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,WAAW,EAAE,EACxB,SAAS,EAAE,WAAW,EAAE,EACxB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,UAAU,GAAG,SAAS,CAqIxB;AAwBD,wFAAwF;AACxF,MAAM,WAAW,SAAS;IACxB,wFAAwF;IACxF,QAAQ,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,WAAW,EAAE,EACxB,SAAS,EAAE,WAAW,EAAE,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,SAAS,EAAE,CAYb"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git check-mailmap` (builtin/check-mailmap.c): each contact as the repository's mailmap
|
|
3
|
+
* maps it (`.mailmap`, `mailmap.blob`, `mailmap.file`, plus `--mailmap-blob` and
|
|
4
|
+
* `--mailmap-file`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git check-mailmap "nick1 <bugs@company.xx>"
|
|
9
|
+
* await git.checkMailmap().addContact("nick1 <bugs@company.xx>").call();
|
|
10
|
+
* // "Some Dude <some@dude.xx>\n"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
/**
|
|
15
|
+
* The contacts of `git check-mailmap <contact>...` (and `--stdin`'s lines after them), one
|
|
16
|
+
* output line each: `Name <email>`, or `<email>` when the result has no name.
|
|
17
|
+
*
|
|
18
|
+
* git 2.43 (`setCompatibility("2.43")`) takes only `Name <email>` contacts (`fatal: unable
|
|
19
|
+
* to parse contact: <contact>`) and has no `--mailmap-file`/`--mailmap-blob`; 2.47 and later
|
|
20
|
+
* also map a bare address. Where git dies, the error carries what was printed before
|
|
21
|
+
* ({@link getOutput}).
|
|
22
|
+
*/
|
|
23
|
+
export declare class CheckMailmapCommand extends GitCommand<string> {
|
|
24
|
+
private readonly contacts;
|
|
25
|
+
private stdin?;
|
|
26
|
+
private mailmapFile?;
|
|
27
|
+
private mailmapBlob?;
|
|
28
|
+
private compatibility;
|
|
29
|
+
private output;
|
|
30
|
+
private readonly errors;
|
|
31
|
+
/** A contact argument. */
|
|
32
|
+
addContact(contact: string): this;
|
|
33
|
+
/** `--stdin`: these lines (git's stdin) checked after the arguments. */
|
|
34
|
+
setStdin(text: string): this;
|
|
35
|
+
/** `--mailmap-file=<file>` (git 2.47+): more entries from this host file. */
|
|
36
|
+
setMailmapFile(path: string): this;
|
|
37
|
+
/** `--mailmap-blob=<blob>` (git 2.47+): more entries from this blob. */
|
|
38
|
+
setMailmapBlob(name: string): this;
|
|
39
|
+
/** The git version whose behaviour to follow (default 2.56). */
|
|
40
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
41
|
+
/** What was printed on stdout (also after a death). */
|
|
42
|
+
getOutput(): string;
|
|
43
|
+
/** git's `error:` lines (a mailmap blob that is no blob). */
|
|
44
|
+
getErrors(): string[];
|
|
45
|
+
/** The output. */
|
|
46
|
+
call(): Promise<string>;
|
|
47
|
+
private check;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=check-mailmap-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-mailmap-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-mailmap-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,MAAM,CAAC;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC,0BAA0B;IAC1B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI3B;IAED,6EAA6E;IAC7E,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,wEAAwE;IACxE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,gEAAgE;IAChE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,uDAAuD;IACvD,SAAS,IAAI,MAAM,CAElB;IAED,6DAA6D;IAC7D,SAAS,IAAI,MAAM,EAAE,CAEpB;IAED,kBAAkB;IACZ,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAiC5B;IAED,OAAO,CAAC,KAAK;CASd"}
|
|
@@ -141,6 +141,7 @@ export declare class CheckoutCommand extends GitCommand<CheckoutResult> {
|
|
|
141
141
|
private conflictStyle?;
|
|
142
142
|
private quiet;
|
|
143
143
|
private countCheckoutPaths;
|
|
144
|
+
private recurseSubmodules?;
|
|
144
145
|
/** `--pathspec-from-file` */
|
|
145
146
|
private readonly pathspecFile;
|
|
146
147
|
/** Set by a `merge` checkout the two-way merge refused: what the autostash needs */
|
|
@@ -372,6 +373,12 @@ export declare class CheckoutCommand extends GitCommand<CheckoutResult> {
|
|
|
372
373
|
* {@link setMerge}, the unmerged paths re-created with this conflict style.
|
|
373
374
|
*/
|
|
374
375
|
setConflictStyle(style: ConflictStyle): this;
|
|
376
|
+
/**
|
|
377
|
+
* `--[no-]recurse-submodules` (default `submodule.recurse`): the active submodules' worktrees
|
|
378
|
+
* are switched with the superproject's, their HEADs detached at the recorded commits, and
|
|
379
|
+
* local changes in them refuse the switch as git's unpack-trees refuses them.
|
|
380
|
+
*/
|
|
381
|
+
setRecurseSubmodules(recurse: boolean): this;
|
|
375
382
|
/** `-q`: a path checkout reports no counts and no "path is unmerged" warnings. */
|
|
376
383
|
setQuiet(quiet: boolean): this;
|
|
377
384
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MA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;;;OAIG;YACW,kBAAkB;IAMhC,sFAAsF;IACtF,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,mBAAmB;IAK3B,mEAAmE;IACnE,OAAO,CAAC,IAAI;IAsBZ;;;;;OAKG;YACW,aAAa;IAoC3B,6CAA6C;IAC7C,OAAO,CAAC,mBAAmB;IAY3B,yFAAyF;IACzF,OAAO,CAAC,mBAAmB;IAQ3B;;;OAGG;YACW,qBAAqB;IAMnC,oEAAoE;YACtD,eAAe;IAK7B;;OAEG;YACW,cAAc;IAwe5B;;;OAGG;YACW,mBAAmB;IAuEjC;;OAEG;YACW,kBAAkB;IAgBhC;;;;;;OAMG;YACW,iBAAiB;IAO/B;;;;OAIG;YACW,eAAe;IAa7B;;;;;OAKG;YACW,UAAU;IAqGxB;;;;OAIG;YACW,kBAAkB;IAkBhC;;OAEG;YACW,oBAAoB;CAenC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,cAAc,CAWhF;AAKD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,kBAAkB,CAM9F"}
|
|
@@ -50,6 +50,8 @@ export interface CheckoutPathsOptions {
|
|
|
50
50
|
quiet?: boolean;
|
|
51
51
|
/** `count_checkout_paths`: "Updated N paths from ..." (checkout without `--`) */
|
|
52
52
|
countCheckoutPaths?: boolean;
|
|
53
|
+
/** `--recurse-submodules` given (default `submodule.recurse`) */
|
|
54
|
+
recurseSubmodules?: boolean;
|
|
53
55
|
}
|
|
54
56
|
/** What {@link checkoutPaths} did. */
|
|
55
57
|
export interface CheckoutPathsOutcome {
|
|
@@ -98,6 +100,8 @@ export interface PathCheckoutRequest {
|
|
|
98
100
|
ignoreUnmerged?: boolean;
|
|
99
101
|
quiet?: boolean;
|
|
100
102
|
countCheckoutPaths?: boolean;
|
|
103
|
+
/** `--[no-]recurse-submodules`: the matched submodules' worktrees checked out too */
|
|
104
|
+
recurseSubmodules?: boolean;
|
|
101
105
|
/** The global pathspec magic (`GIT_LITERAL_PATHSPECS`, ...) */
|
|
102
106
|
globalMagic?: GlobalPathspecMagic;
|
|
103
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-paths.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAY,KAAK,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAIL,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"checkout-paths.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAY,KAAK,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAIL,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AASvB,mDAAmD;AACnD,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,Y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