@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
|
@@ -16,6 +16,16 @@ export interface LogResult extends Commit {
|
|
|
16
16
|
* not listed itself, given after the others (git's `BOUNDARY`, the `-` mark)
|
|
17
17
|
*/
|
|
18
18
|
boundary?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* On the left side of a symmetric difference (`a` of `a...b`, reached from it only): git's
|
|
21
|
+
* SYMMETRIC_LEFT, the `<` mark of {@link LogCommand.setLeftRight} (`>` otherwise)
|
|
22
|
+
*/
|
|
23
|
+
left?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* {@link LogCommand.setCherryMark}: the other side of the symmetric difference has a commit
|
|
26
|
+
* with the same patch-id (git's PATCHSAME, the `=` mark)
|
|
27
|
+
*/
|
|
28
|
+
patchSame?: boolean;
|
|
19
29
|
/**
|
|
20
30
|
* The name the commit was reached from ({@link LogCommand.setSource}, git's `--source`):
|
|
21
31
|
* the revision as given, or the ref `--all`, `--branches`... named
|
|
@@ -23,6 +33,11 @@ export interface LogResult extends Commit {
|
|
|
23
33
|
source?: string;
|
|
24
34
|
/** In a reflog walk ({@link LogCommand.addReflogWalk}), the entry the commit is listed for */
|
|
25
35
|
reflog?: LogReflogEntry;
|
|
36
|
+
/**
|
|
37
|
+
* The parents before {@link LogCommand.setParents} rewrote `parents` (git's saved parents,
|
|
38
|
+
* which `--full-diff` diffs against)
|
|
39
|
+
*/
|
|
40
|
+
savedParents?: ObjectId[];
|
|
26
41
|
}
|
|
27
42
|
/**
|
|
28
43
|
* What `git show` prints through one log printer (see {@link LogCommand.showSession}).
|
|
@@ -191,6 +206,10 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
191
206
|
private readonly grepReflogs;
|
|
192
207
|
/** The git version whose behaviour differs where versions differ */
|
|
193
208
|
private compatibility;
|
|
209
|
+
/** `-L` arguments, as given */
|
|
210
|
+
private readonly lineRangeArgs;
|
|
211
|
+
/** The ranges `-L` follows through the walk under way */
|
|
212
|
+
private lineLog?;
|
|
194
213
|
/** `--topo-order`, `--date-order`, `--author-date-order` */
|
|
195
214
|
private order?;
|
|
196
215
|
/** `--reverse` */
|
|
@@ -199,6 +218,41 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
199
218
|
private boundary;
|
|
200
219
|
/** `--source` */
|
|
201
220
|
private source;
|
|
221
|
+
/** `--left-right` */
|
|
222
|
+
private leftRight;
|
|
223
|
+
/** `--left-only` */
|
|
224
|
+
private leftOnly;
|
|
225
|
+
/** `--right-only` (and `--cherry`) */
|
|
226
|
+
private rightOnly;
|
|
227
|
+
/** `--cherry-pick` */
|
|
228
|
+
private cherryPick;
|
|
229
|
+
/** `--cherry-mark` (and `--cherry`) */
|
|
230
|
+
private cherryMark;
|
|
231
|
+
/** `--cherry`: no merges (git's max_parents 1) */
|
|
232
|
+
private cherry;
|
|
233
|
+
/** `--simplify-merges` (and `--simplify-by-decoration`) */
|
|
234
|
+
private simplifyMerges;
|
|
235
|
+
/** `--simplify-by-decoration` */
|
|
236
|
+
private simplifyByDecoration;
|
|
237
|
+
/** git's `dense`: `--dense` (the default), off with `--sparse` */
|
|
238
|
+
private dense;
|
|
239
|
+
/** `--show-pulls` */
|
|
240
|
+
private showPulls;
|
|
241
|
+
/** `--parents` (git's `rewrite_parents` by itself) */
|
|
242
|
+
private rewriteParents;
|
|
243
|
+
/** `--ancestry-path` without a commit: the bottom commits are the ones */
|
|
244
|
+
private ancestryPathImplicit;
|
|
245
|
+
/** `--ancestry-path=<commit>`: the commits given */
|
|
246
|
+
private readonly ancestryPathCommits;
|
|
247
|
+
/**
|
|
248
|
+
* Commits a revision reaches through an annotated tag `--ancestry-path=<tag>` names: the
|
|
249
|
+
* tag's ANCESTRY_PATH passes to them (handle_commit's `object->flags |= flags`)
|
|
250
|
+
*/
|
|
251
|
+
private readonly ancestryPathPeeled;
|
|
252
|
+
/** `git log --reverse` collects the walk itself: shown commits keep their parents */
|
|
253
|
+
private keepShownParents;
|
|
254
|
+
/** Loads the decorations `--simplify-by-decoration` keeps (the log's filter), when set */
|
|
255
|
+
private decorationLoader?;
|
|
202
256
|
/**
|
|
203
257
|
* The order of the commits ({@link LogOrder}); undefined is git's default, newest commit
|
|
204
258
|
* date first as the walk meets them. A sorted walk reads the whole history it lists
|
|
@@ -235,6 +289,51 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
235
289
|
* child to parent as the walk goes (the first name to reach a commit wins).
|
|
236
290
|
*/
|
|
237
291
|
setSource(source: boolean): this;
|
|
292
|
+
/**
|
|
293
|
+
* `--left-right`: each commit is marked by the side of the symmetric difference it is
|
|
294
|
+
* reached from: `<` for the left (`a` of `a...b`, {@link add} with `left`), `>` for the
|
|
295
|
+
* right (`commit < <id>`, `< <id> <subject>` under `--oneline`, the graph's `<`/`>` in place
|
|
296
|
+
* of `*`); `left` on each {@link LogResult} says it whatever this says.
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```typescript
|
|
300
|
+
* // git log --left-right --oneline main...topic
|
|
301
|
+
* await git.revList().addRevision("main...topic").setLeftRight(true).callLogText({ oneline: true });
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
304
|
+
setLeftRight(leftRight: boolean): this;
|
|
305
|
+
/**
|
|
306
|
+
* `--left-only`: only the commits of the left side of a symmetric difference (none without
|
|
307
|
+
* one). Refused with {@link setRightOnly} or {@link setCherry}, as git refuses them.
|
|
308
|
+
*/
|
|
309
|
+
setLeftOnly(leftOnly: boolean): this;
|
|
310
|
+
/** `--right-only`: only the commits of the right side (see {@link setLeftOnly}). */
|
|
311
|
+
setRightOnly(rightOnly: boolean): this;
|
|
312
|
+
/**
|
|
313
|
+
* `--cherry-pick`: commits whose change (patch-id, as `git patch-id` computes it, limited to
|
|
314
|
+
* the paths) a commit on the other side of the symmetric difference makes too are left out,
|
|
315
|
+
* on both sides. The cheap id of each diff's headers is computed for the smaller side, and
|
|
316
|
+
* full patch-ids only where those collide (revision.c's cherry_pick_list).
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* ```typescript
|
|
320
|
+
* // git rev-list --left-right --cherry-pick main...topic
|
|
321
|
+
* await git.revList().addRevision("main...topic").setLeftRight(true).setCherryPick(true).callText();
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
setCherryPick(cherryPick: boolean): this;
|
|
325
|
+
/**
|
|
326
|
+
* `--cherry-mark`: as {@link setCherryPick}, but the equivalent commits are kept and marked
|
|
327
|
+
* (`patchSame`, the `=` mark; the others `+` when nothing else marks them).
|
|
328
|
+
*/
|
|
329
|
+
setCherryMark(cherryMark: boolean): this;
|
|
330
|
+
/**
|
|
331
|
+
* `--cherry`: `--right-only --cherry-mark --no-merges`, the commits of the right side marked
|
|
332
|
+
* by whether the left side has their change (`git cherry` as a walk).
|
|
333
|
+
*/
|
|
334
|
+
setCherry(cherry: boolean): this;
|
|
335
|
+
/** The revision options of the marks the output prints (get_revision_mark). */
|
|
336
|
+
private revisionMarks;
|
|
238
337
|
/**
|
|
239
338
|
* `git log -g <ref>` (`--walk-reflogs`) for the printed log ({@link callText}): the
|
|
240
339
|
* commits of `ref`'s reflog, newest entry first, each shown with its entry (`Reflog:`
|
|
@@ -264,7 +363,9 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
264
363
|
setWalkReflogs(walk: boolean): this;
|
|
265
364
|
/**
|
|
266
365
|
* The git version to follow where versions differ (default 2.56): 2.43 refuses a reflog
|
|
267
|
-
* walk's `--reverse` before a sorted walk (`--topo-order`, `--graph`), 2.56 after.
|
|
366
|
+
* walk's `--reverse` before a sorted walk (`--topo-order`, `--graph`), 2.56 after; 2.43's
|
|
367
|
+
* `--left-only`/`--right-only` hide nothing in a walk nothing else limits (no excluded
|
|
368
|
+
* commit: `a...b` of unrelated histories, or no range at all).
|
|
268
369
|
*/
|
|
269
370
|
setCompatibility(version: "2.43" | "2.56"): this;
|
|
270
371
|
/**
|
|
@@ -282,8 +383,30 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
282
383
|
*
|
|
283
384
|
* @param commit ObjectId of commit to start from
|
|
284
385
|
* @param name The name it was given by, which {@link setSource} reports (the id without)
|
|
386
|
+
* @param options `left`: the commit is the left side of a symmetric difference (`a` of
|
|
387
|
+
* `a...b`): it and what only it reaches are marked so ({@link setLeftRight})
|
|
388
|
+
*/
|
|
389
|
+
add(commit: ObjectId, name?: string, options?: {
|
|
390
|
+
left?: boolean;
|
|
391
|
+
}): this;
|
|
392
|
+
/**
|
|
393
|
+
* `-L <start>,<end>:<file>` / `-L :<funcname>:<file>`: follow lines of a file back through
|
|
394
|
+
* history ({@link callBytes} only). The range is given as git takes it: `<start>` and
|
|
395
|
+
* `<end>` line numbers, `+<n>`/`-<n>` offsets, `/<regex>/` (searched from the previous
|
|
396
|
+
* range of the file, or the top with `^/<regex>/`), or `:<regex>` naming a function as the
|
|
397
|
+
* path's diff driver finds them (`diff.<driver>.xfuncname`, the builtin drivers). Each
|
|
398
|
+
* commit whose change touches the lines is shown with its diff cut to them; renames are
|
|
399
|
+
* followed (`diff.renames`, `-M`). Several ranges, of one file or several, are followed
|
|
400
|
+
* together. The log starts from one commit (HEAD by default), and paths cannot be given.
|
|
401
|
+
* Errors are git's deaths (`fatal: ...`, exit 128).
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```typescript
|
|
405
|
+
* // git log -L 4,12:a.c -L :main:a.c
|
|
406
|
+
* await git.log().addLineRange("4,12:a.c").addLineRange(":main:a.c").callText();
|
|
407
|
+
* ```
|
|
285
408
|
*/
|
|
286
|
-
|
|
409
|
+
addLineRange(range: string): this;
|
|
287
410
|
/**
|
|
288
411
|
* Filter commits to only those affecting the given path.
|
|
289
412
|
*
|
|
@@ -333,6 +456,51 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
333
456
|
* relevant.
|
|
334
457
|
*/
|
|
335
458
|
setFullHistory(fullHistory: boolean): this;
|
|
459
|
+
/**
|
|
460
|
+
* `--simplify-merges`: a path-limited walk keeps every parent of a merge (as
|
|
461
|
+
* {@link setFullHistory}), then removes the merges whose parents simplify to one commit and
|
|
462
|
+
* the parents another parent reaches (revision.c's simplify_merges). Commits come in
|
|
463
|
+
* topological order (`--topo-order` unless another order is set), with their parents
|
|
464
|
+
* rewritten past the commits not shown.
|
|
465
|
+
*/
|
|
466
|
+
setSimplifyMerges(simplify: boolean): this;
|
|
467
|
+
/**
|
|
468
|
+
* `--simplify-by-decoration`: only commits a ref names (git's ref decorations: every ref and
|
|
469
|
+
* HEAD, or `git log`'s decoration filter in {@link callText}), commits that change the
|
|
470
|
+
* paths when paths are given, and merges tying them together; merges simplified as
|
|
471
|
+
* {@link setSimplifyMerges}.
|
|
472
|
+
*/
|
|
473
|
+
setSimplifyByDecoration(simplify: boolean): this;
|
|
474
|
+
/**
|
|
475
|
+
* `--dense` (true, the default) / `--sparse` (false): with `--sparse` a path-limited walk
|
|
476
|
+
* shows every commit it walks, also those that change none of the paths (merges are still
|
|
477
|
+
* simplified to the parent they match).
|
|
478
|
+
*/
|
|
479
|
+
setDense(dense: boolean): this;
|
|
480
|
+
/**
|
|
481
|
+
* `--show-pulls`: a merge that differs from its first parent at the paths but matches
|
|
482
|
+
* another parent is shown too (it "pulled" the change into the first-parent history).
|
|
483
|
+
*/
|
|
484
|
+
setShowPulls(showPulls: boolean): this;
|
|
485
|
+
/**
|
|
486
|
+
* `--parents`: each commit's `parents` are the ones the walk shows (rewritten past the
|
|
487
|
+
* commits a path-limited walk leaves out, as git's `rewrite_parents`), and TREESAME merges
|
|
488
|
+
* of two relevant lines are kept to tie them together.
|
|
489
|
+
*/
|
|
490
|
+
setParents(parents: boolean): this;
|
|
491
|
+
/**
|
|
492
|
+
* `--ancestry-path`: of `A..B`, only the commits that are descendants of an excluded
|
|
493
|
+
* (bottom) commit and ancestors of B. A walk without bottom commits fails (`--ancestry-path
|
|
494
|
+
* given but there are no bottom commits`). Turns history simplification off, as
|
|
495
|
+
* {@link setFullHistory}.
|
|
496
|
+
*/
|
|
497
|
+
setAncestryPath(ancestryPath: boolean): this;
|
|
498
|
+
/**
|
|
499
|
+
* `--ancestry-path=<commit>` (repeatable): only the commits that are the commit, its
|
|
500
|
+
* ancestors or its descendants (of any commit given). A tag is peeled: its commit then
|
|
501
|
+
* keeps only its descendants, as git marks the tag object and not the commit.
|
|
502
|
+
*/
|
|
503
|
+
addAncestryPath(commit: ObjectId): this;
|
|
336
504
|
/**
|
|
337
505
|
* Follow only the first parent on merges.
|
|
338
506
|
*
|
|
@@ -348,7 +516,9 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
348
516
|
* @param commit ObjectId to exclude along with its ancestors
|
|
349
517
|
* @param name The name it was given by (see {@link add})
|
|
350
518
|
*/
|
|
351
|
-
not(commit: ObjectId, name?: string
|
|
519
|
+
not(commit: ObjectId, name?: string, options?: {
|
|
520
|
+
left?: boolean;
|
|
521
|
+
}): this;
|
|
352
522
|
/**
|
|
353
523
|
* Set minimum commit time (--since/--after).
|
|
354
524
|
*
|
|
@@ -518,6 +688,35 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
518
688
|
* commits shown in order, with their parents as shown.
|
|
519
689
|
*/
|
|
520
690
|
private finishOutputWalk;
|
|
691
|
+
/**
|
|
692
|
+
* line-log.c's line_log_init: the one commit the log starts from (check_single_commit),
|
|
693
|
+
* the `-L` ranges parsed against it, and the walk that follows them
|
|
694
|
+
*/
|
|
695
|
+
private startLineLog;
|
|
696
|
+
/** The diff options of `-L`'s diffs: the builtin drivers of the version followed */
|
|
697
|
+
private lineLogDiffOptions;
|
|
698
|
+
/** The entry at a path of a tree (its mode canonical), undefined when none */
|
|
699
|
+
private treeEntryAt;
|
|
700
|
+
/** What `-L`'s walk reads: trees, entries, blobs, and renames as queue_diffs finds them */
|
|
701
|
+
private lineLogHost;
|
|
702
|
+
/**
|
|
703
|
+
* The walk's commits under `-L` without parents rewritten, sorted topologically: each
|
|
704
|
+
* followed in turn (git's simplify_commit), shown when its diff touched the ranges and the
|
|
705
|
+
* other filters keep it, with the parents a merge kept (one when a parent took it all).
|
|
706
|
+
*/
|
|
707
|
+
private finishLineLogWalk;
|
|
708
|
+
/**
|
|
709
|
+
* line-log.c's line_log_filter: every commit of the sorted list followed, those whose diff
|
|
710
|
+
* touched no range marked TREESAME (a merge one parent took whole left with that parent),
|
|
711
|
+
* the others kept with their parents rewritten past TREESAME commits
|
|
712
|
+
* (line_log_rewrite_one); `unwalked` the parents rewritten to that the walk never reached
|
|
713
|
+
*/
|
|
714
|
+
private lineLogFilter;
|
|
715
|
+
/**
|
|
716
|
+
* setup_revisions' and cmd_log_init_finish's refusals of `-L`: the diff formats it cannot
|
|
717
|
+
* show (2.43: anything but `-p` and `-s`), then a pathspec
|
|
718
|
+
*/
|
|
719
|
+
private checkLineLogOptions;
|
|
521
720
|
/**
|
|
522
721
|
* The log printed as `git log <options>` prints it to a pipe (no pager; colors only when
|
|
523
722
|
* `setDiffOptions({ color })` or `color.ui`/`color.diff` say `always`): the
|
|
@@ -535,6 +734,21 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
535
734
|
/** {@link callText} as bytes (messages and file contents that are not UTF-8 kept as they are). */
|
|
536
735
|
callBytes(options?: LogOutputOptions): Promise<Uint8Array>;
|
|
537
736
|
private printLog;
|
|
737
|
+
private printLogOutput;
|
|
738
|
+
/**
|
|
739
|
+
* The refs' decorations (log-tree.c's load_ref_decorations): with `logOptions`, git log's
|
|
740
|
+
* decoration filter; without, every ref and HEAD (get_name_decoration's own load).
|
|
741
|
+
*/
|
|
742
|
+
private refDecorations;
|
|
743
|
+
/** The mailmap, read once for the walk's filters and the output alike. */
|
|
744
|
+
private loadedMailmap;
|
|
745
|
+
/**
|
|
746
|
+
* git's `error:` lines of reading the mailmap (a `mailmap.blob` that is no blob), as git
|
|
747
|
+
* log prints them: once when it reads the mailmap for the log (`log.mailmap`,
|
|
748
|
+
* `--use-mailmap`), once more when a user format maps an identity (`%aN`, pretty.c's own
|
|
749
|
+
* read) of a commit it shows.
|
|
750
|
+
*/
|
|
751
|
+
private reportMailmapErrors;
|
|
538
752
|
/**
|
|
539
753
|
* `git show`'s output of objects one at a time (builtin/log.c's cmd_show without a walk):
|
|
540
754
|
* one printer for every object, so commits, tags and trees share git's `shown_one`
|
|
@@ -544,7 +758,11 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
544
758
|
* @internal
|
|
545
759
|
*/
|
|
546
760
|
showSession(options: LogOutputOptions): Promise<ShowSession>;
|
|
547
|
-
/**
|
|
761
|
+
/**
|
|
762
|
+
* revision.c's try_to_simplify_commit for a commit git shows without walking; without
|
|
763
|
+
* `simplify_history` (`--full-history`, `-m`, `--remerge-diff`) a merge is TREESAME only
|
|
764
|
+
* to every parent it looks at (update_treesame)
|
|
765
|
+
*/
|
|
548
766
|
private treesameForShow;
|
|
549
767
|
/**
|
|
550
768
|
* setup_revisions' refusals of a reflog walk: a sorted walk (`--topo-order`, `--graph`
|
|
@@ -578,6 +796,9 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
578
796
|
/** The colors {@link callBytes} prints with */
|
|
579
797
|
private colorSettings?;
|
|
580
798
|
private readonly outputWarnings;
|
|
799
|
+
/** The mailmap as read once ({@link loadedMailmap}), and git's errors of reading it */
|
|
800
|
+
private mailmapLoad?;
|
|
801
|
+
private readonly mailmapErrors;
|
|
581
802
|
/**
|
|
582
803
|
* What git prints on stderr while {@link callBytes} prints the log without dying: the
|
|
583
804
|
* `log.graphColors` colors it cannot parse (`error: invalid color value: <c>`, then
|
|
@@ -630,8 +851,6 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
630
851
|
* expanded, unless only `--notes=<ref>` refs are asked for; then those refs.
|
|
631
852
|
*/
|
|
632
853
|
private loadNotes;
|
|
633
|
-
/** mailmap.c's read_mailmap: `.mailmap` (not in a bare repository), `mailmap.blob`, `mailmap.file` */
|
|
634
|
-
private loadMailmap;
|
|
635
854
|
/**
|
|
636
855
|
* The tree, parents and date of a commit (git's parse_commit_buffer), from its raw bytes
|
|
637
856
|
* when the store gives them (kept in `raw` to be decoded whole if the commit is shown),
|
|
@@ -644,6 +863,16 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
|
|
|
644
863
|
* element's path components when all are plain paths (no wildcard, no magic, no trailing
|
|
645
864
|
* slash): those are compared by looking their entries up, without a tree diff.
|
|
646
865
|
*/
|
|
866
|
+
/** The walk's pathspec elements: the paths, the excluded ones, `.` when every one excludes */
|
|
867
|
+
private pathspecItems;
|
|
868
|
+
/**
|
|
869
|
+
* revision.c's cherry_pick_list over the limited list: the patch-ids of the side with fewer
|
|
870
|
+
* commits are added (header ids only, see {@link PatchIds}), each commit of the other side
|
|
871
|
+
* looked up, and every match on either side marked PATCHSAME (`--cherry-mark`) or SHOWN
|
|
872
|
+
* (`--cherry-pick`, hidden). The diffs are limited to the walk's paths, and compare a
|
|
873
|
+
* commit with its parent as the walk has it (simplified), as git's do.
|
|
874
|
+
*/
|
|
875
|
+
private cherryPickList;
|
|
647
876
|
private pathspec;
|
|
648
877
|
/** git's `commitGraph.changedPathsVersion` (-1: any; 0 when `readChangedPaths` is false). */
|
|
649
878
|
private changedPathsVersion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-command.d.ts","sourceRoot":"","sources":["../../src/commands/log-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,MAAM,EAMX,KAAK,QAAQ,EAEb,KAAK,WAAW,EAGjB,MAAM,uBAAuB,CA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AA6E;YAC/D,cAAc;IAqB5B,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C,gFAAgF;IAChF,OAAO,CAAC,cAAc;IAUtB,0EAA0E;YAC5D,WAAW;IAqBzB;;;OAGG;YACW,aAAa;IAuB3B;;;OAGG;YACW,OAAO;IAWrB,0EAA0E;IAC1E,OAAO,CAAC,gBAAgB,CAAC,CAAkC;IAE3D,qGAAqG;IACrG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IACnE,OAAO,CAAC,YAAY,CAAK;IAEzB,8FAA8F;YAChF,OAAO;IAyCrB;;OAEG;IACH,OAAO,CAAC,aAAa;IAMrB;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAKzB"}
|
|
@@ -47,6 +47,8 @@ export declare function graphColumnColors(value: string, parse: (spec: string) =
|
|
|
47
47
|
export declare class LogGraph {
|
|
48
48
|
private readonly options;
|
|
49
49
|
private commit;
|
|
50
|
+
/** The commit's mark on its line (get_revision_mark: `*`, `<`, `>`, `=`) */
|
|
51
|
+
private commitMark;
|
|
50
52
|
private numParents;
|
|
51
53
|
private width;
|
|
52
54
|
private expansionRow;
|
|
@@ -98,9 +100,9 @@ export declare class LogGraph {
|
|
|
98
100
|
private isVisualRootCandidate;
|
|
99
101
|
/**
|
|
100
102
|
* The next commit: `id`, with the commits shown after it that the walk has already read
|
|
101
|
-
* (git's lookahead of two, for visual roots).
|
|
103
|
+
* (git's lookahead of two, for visual roots), and the mark drawn for it (`*`, or `<`/`>`/`=`).
|
|
102
104
|
*/
|
|
103
|
-
update(id: ObjectId, lookahead?: readonly ObjectId[]): void;
|
|
105
|
+
update(id: ObjectId, lookahead?: readonly ObjectId[], mark?: string): void;
|
|
104
106
|
private needsPreRootLine;
|
|
105
107
|
private updateState;
|
|
106
108
|
private isMappingCorrect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-graph.d.ts","sourceRoot":"","sources":["../../src/commands/log-graph.ts"],"names":[],"mappings":"AAAA;;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AyD3B,OAAO,CAAC,oBAAoB;IAsD5B,OAAO,CAAC,iBAAiB;IAYzB,4EAA4E;IAC5E,QAAQ,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CA8BhD;IAED,wEAAwE;IACxE,WAAW,IAAI,MAAM,CAiBpB;IAED,+BAA+B;IAC/B,gBAAgB,IAAI,OAAO,CAE1B;IAED;;;OAGG;IACH,UAAU,IAAI,MAAM,CAWnB;IAED,mEAAmE;IACnE,WAAW,IAAI,MAAM,CAEpB;IAED,yBAAyB;IACzB,WAAW,IAAI,MAAM,CAEpB;IAED,2FAA2F;IAC3F,aAAa,IAAI,MAAM,CAStB;IAED;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAkBrC;CACF"}
|
|
@@ -39,7 +39,7 @@ import { type DecorationPalette, type RefDecorations } from "./pretty-format.js"
|
|
|
39
39
|
import type { SignatureCheck } from "./signature-check.js";
|
|
40
40
|
import { type TrailerConfig } from "./trailers.js";
|
|
41
41
|
/** How `git log` treats merges in its diffs (`--diff-merges=<mode>`, `-m`, `-c`, `--cc`). */
|
|
42
|
-
export type LogDiffMerges = "off" | "first-parent" | "separate" | "combined" | "dense-combined";
|
|
42
|
+
export type LogDiffMerges = "off" | "first-parent" | "separate" | "combined" | "dense-combined" | "remerge";
|
|
43
43
|
/** What `git log` prints of each commit (its command-line options). */
|
|
44
44
|
export interface LogOutputOptions {
|
|
45
45
|
/** `--pretty=<format>` / `--format=<format>` (default `format.pretty`, else `medium`) */
|
|
@@ -48,6 +48,11 @@ export interface LogOutputOptions {
|
|
|
48
48
|
oneline?: boolean;
|
|
49
49
|
/** `--abbrev-commit` / `--no-abbrev-commit` (default `log.abbrevCommit`, false) */
|
|
50
50
|
abbrevCommit?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* `--parents`: each commit's parents after its id in the header, rewritten past the commits
|
|
53
|
+
* a path-limited walk leaves out (as `%P` and the graph see them)
|
|
54
|
+
*/
|
|
55
|
+
parents?: boolean;
|
|
51
56
|
/**
|
|
52
57
|
* `--abbrev=<n>` (default `core.abbrev`, automatic): at least n digits (4 to 40, as git
|
|
53
58
|
* clamps it), in the commits' ids and in the diffs' `index` lines (combined diffs keep the
|
|
@@ -125,6 +130,12 @@ export interface LogOutputOptions {
|
|
|
125
130
|
cc?: boolean;
|
|
126
131
|
/** `--diff-merges=<mode>` */
|
|
127
132
|
diffMerges?: LogDiffMerges;
|
|
133
|
+
/**
|
|
134
|
+
* `--remerge-diff`: each two-parent merge shown as the diff from merge-ort's automatic
|
|
135
|
+
* result of its parents (conflict markers included, merged in memory) to the merge, with
|
|
136
|
+
* the merge's conflicts as `remerge CONFLICT` headers (implies `-p`)
|
|
137
|
+
*/
|
|
138
|
+
remergeDiff?: boolean;
|
|
128
139
|
/**
|
|
129
140
|
* `--full-diff`: a path-limited log shows the commits' whole diffs (against their parents
|
|
130
141
|
* before `--graph` rewrote them)
|
|
@@ -203,6 +214,12 @@ export interface LogMailOptions {
|
|
|
203
214
|
* commit that cannot be converted is shown as stored, as git shows it when iconv fails.
|
|
204
215
|
*/
|
|
205
216
|
outputEncoding?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Blocks shown after the message as commentary (git before 2.46 writes format-patch's
|
|
219
|
+
* `Interdiff:` and `Range-diff:` there): each after `---` (the first) or an empty line,
|
|
220
|
+
* its title line included
|
|
221
|
+
*/
|
|
222
|
+
commentary?: Uint8Array[];
|
|
206
223
|
}
|
|
207
224
|
/** A commit the walk shows, with the parents it is shown with (rewritten under `--graph`). */
|
|
208
225
|
export interface LogOutputEntry {
|
|
@@ -215,6 +232,10 @@ export interface LogOutputEntry {
|
|
|
215
232
|
reflog?: LogReflogEntry;
|
|
216
233
|
/** A boundary commit (`--boundary`), marked `-` */
|
|
217
234
|
boundary?: boolean;
|
|
235
|
+
/** On the left side of a symmetric difference (`<` under `--left-right` and in `%m`) */
|
|
236
|
+
left?: boolean;
|
|
237
|
+
/** `--cherry-mark`: the other side has its change (`=`) */
|
|
238
|
+
patchSame?: boolean;
|
|
218
239
|
/** The name the commit was reached from (`--source`, `%S`) */
|
|
219
240
|
source?: string;
|
|
220
241
|
}
|
|
@@ -292,6 +313,22 @@ export interface LogOutputHost {
|
|
|
292
313
|
* `names` as `--name-only` / `--name-status` list them (undefined for neither), `patch`
|
|
293
314
|
* the combined patch (when asked); `follow` the one path `--follow` limits it to
|
|
294
315
|
*/
|
|
316
|
+
/**
|
|
317
|
+
* `--remerge-diff`'s diff of a two-parent merge: from merge-ort's in-memory re-merge of
|
|
318
|
+
* `parents` to the merge, with the re-merge's `remerge CONFLICT` headers; nothing it
|
|
319
|
+
* stores reaches the repository
|
|
320
|
+
*/
|
|
321
|
+
remergeDiff?(entry: LogOutputEntry, parents: [ObjectId, ObjectId], formats: DiffOutputFormat[], options: {
|
|
322
|
+
statWidth?: number;
|
|
323
|
+
follow?: string;
|
|
324
|
+
fullDiff?: boolean;
|
|
325
|
+
abbrev?: number;
|
|
326
|
+
/** The commits the log has processed before this one (git 2.43 freed their parents) */
|
|
327
|
+
processed?: ReadonlySet<ObjectId>;
|
|
328
|
+
}): Promise<{
|
|
329
|
+
bytes?: Uint8Array;
|
|
330
|
+
followPath?: string;
|
|
331
|
+
}>;
|
|
295
332
|
combinedDiff(entry: LogOutputEntry, options: {
|
|
296
333
|
dense: boolean;
|
|
297
334
|
names?: "name-only" | "name-status";
|
|
@@ -306,6 +343,20 @@ export interface LogOutputHost {
|
|
|
306
343
|
names: Uint8Array;
|
|
307
344
|
patch: Uint8Array;
|
|
308
345
|
}>;
|
|
346
|
+
/**
|
|
347
|
+
* `git log -L` (2.5x): the commit's pairs that touched the line ranges, through the diff
|
|
348
|
+
* pipeline with each patch cut to the ranges (line_log_queue_pairs, log_tree_diff_flush)
|
|
349
|
+
*/
|
|
350
|
+
lineLogDiff?(entry: LogOutputEntry, formats: DiffOutputFormat[], options: {
|
|
351
|
+
abbrev?: number;
|
|
352
|
+
}): Promise<{
|
|
353
|
+
bytes?: Uint8Array;
|
|
354
|
+
}>;
|
|
355
|
+
/**
|
|
356
|
+
* `git log -L` (2.43): line-log's own diff of the commit (dump_diff_hacky), each line after
|
|
357
|
+
* `prefix`
|
|
358
|
+
*/
|
|
359
|
+
lineLogHacky?(entry: LogOutputEntry, prefix: string, colors?: DiffColors): Promise<Uint8Array>;
|
|
309
360
|
}
|
|
310
361
|
/**
|
|
311
362
|
* pp_email_subject's subject header: `start` (`Subject: [PATCH 1/2] `) and the title, in
|
|
@@ -370,12 +421,18 @@ export declare class LogPrinter {
|
|
|
370
421
|
interesting: (id: ObjectId) => boolean;
|
|
371
422
|
firstParentOnly: boolean;
|
|
372
423
|
paths: string[];
|
|
424
|
+
/** `--left-right`: commits marked `<` or `>` */
|
|
425
|
+
leftRight?: boolean;
|
|
426
|
+
/** `--cherry-mark`: commits marked `=` or `+` */
|
|
427
|
+
cherryMark?: boolean;
|
|
373
428
|
/** The colors (`--color`, `color.ui`...), undefined for none */
|
|
374
429
|
colors?: {
|
|
375
430
|
diff: DiffColors;
|
|
376
431
|
decorations: DecorationPalette;
|
|
377
432
|
graph: readonly string[];
|
|
378
433
|
};
|
|
434
|
+
/** `-L`: the line-log of that git version prints each commit's diff */
|
|
435
|
+
lineLog?: "2.43" | "2.56";
|
|
379
436
|
});
|
|
380
437
|
/** `--diff-filter` or a pickaxe (`-S`, `-G`, `--find-object`) given */
|
|
381
438
|
private readonly diffFiltered;
|
|
@@ -392,6 +449,11 @@ export declare class LogPrinter {
|
|
|
392
449
|
start(): Promise<void>;
|
|
393
450
|
/** Starts the graph over the entries shown */
|
|
394
451
|
useGraph(parentsOf: (id: ObjectId) => readonly ObjectId[]): void;
|
|
452
|
+
/**
|
|
453
|
+
* revision.c's get_revision_mark: `-` boundary, `=` patch-same, `<`/`>` by side (always
|
|
454
|
+
* without the walk's options, `%m`'s), else `*` in a graph, `+` under `--cherry-mark`, none.
|
|
455
|
+
*/
|
|
456
|
+
private revisionMark;
|
|
395
457
|
private padding;
|
|
396
458
|
private oneline;
|
|
397
459
|
private abbrevId;
|
|
@@ -407,6 +469,9 @@ export declare class LogPrinter {
|
|
|
407
469
|
* not shown (`--follow` and nothing of the path changed).
|
|
408
470
|
*/
|
|
409
471
|
showCommit(entry: LogOutputEntry, lookahead: ObjectId[]): Promise<boolean>;
|
|
472
|
+
/** The commits {@link showCommit} was given so far (cmd_log_walk's loop) */
|
|
473
|
+
private readonly processed;
|
|
474
|
+
private showCommitOnce;
|
|
410
475
|
/** log-tree.c's log_tree_diff: true when it showed the log */
|
|
411
476
|
private logTreeDiff;
|
|
412
477
|
/** get_saved_parents: the parents before rewriting under `--full-diff`, else as shown */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-output.d.ts","sourceRoot":"","sources":["../../src/commands/log-output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAc,MAAM,mBAAmB,CAAC;AAE5F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACL,KAAK,iBAAiB,EAKtB,KAAK,cAAc,EAEpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAElE,6FAA6F;AAC7F,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,gBAAgB,CAAC;AAEhG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8ChB;;;OAGG;IACH,cAAc,IAAI,IAAI,CAErB;IAED,mEAAmE;IACnE,SAAS,IAAI,IAAI,CAEhB;IAED,uDAAuD;IACvD,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAE5B;IAED,4EAA4E;IAC5E,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAElC;IAED;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAIpC;IAED,wBAAwB;IACxB,MAAM,IAAI,UAAU,CAEnB;CACF;AAqCD,kCAAkC;AAClC,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAwBnE"}
|
|
@@ -46,7 +46,19 @@ export interface MailmapSources {
|
|
|
46
46
|
/** The host `mailmap.file` is read through (a relative path from its current directory) */
|
|
47
47
|
environment?: GitHostEnvironment;
|
|
48
48
|
/** The blob a revision names (`mailmap.blob`), undefined when it names none */
|
|
49
|
-
readBlobNamed(name: string): Promise<Uint8Array | undefined>;
|
|
49
|
+
readBlobNamed?(name: string): Promise<Uint8Array | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The object a revision names (`mailmap.blob`) with its type, undefined when it names
|
|
52
|
+
* none; `bytes` undefined when it cannot be read. Preferred over {@link readBlobNamed}:
|
|
53
|
+
* with it, git's `mailmap is not a blob` and `unable to read mailmap object` errors are
|
|
54
|
+
* reported.
|
|
55
|
+
*/
|
|
56
|
+
readObjectNamed?(name: string): Promise<{
|
|
57
|
+
type: string;
|
|
58
|
+
bytes?: Uint8Array;
|
|
59
|
+
} | undefined>;
|
|
60
|
+
/** git's `error:` lines while reading (read_mailmap_blob's), each with its prefix */
|
|
61
|
+
onError?(line: string): void;
|
|
50
62
|
}
|
|
51
63
|
/**
|
|
52
64
|
* mailmap.c's read_mailmap: the worktree's `.mailmap` (not in a bare repository), then
|
|
@@ -58,4 +70,15 @@ export interface MailmapSources {
|
|
|
58
70
|
* ```
|
|
59
71
|
*/
|
|
60
72
|
export declare function readRepositoryMailmap(sources: MailmapSources): Promise<Mailmap>;
|
|
73
|
+
/**
|
|
74
|
+
* mailmap.c's read_mailmap_blob: the blob `name` names (nothing when it names none), git's
|
|
75
|
+
* errors reported for an object that cannot be read or is no blob.
|
|
76
|
+
*/
|
|
77
|
+
export declare function readMailmapBlob(sources: Pick<MailmapSources, "readBlobNamed" | "readObjectNamed" | "onError">, name: string): Promise<Uint8Array | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* `mailmap.file`, read as git reads it: through the host (a relative path from its current
|
|
80
|
+
* directory). Without a host environment, a relative path is read from the worktree's top
|
|
81
|
+
* (where git usually runs), and an absolute one inside the worktree through it as well.
|
|
82
|
+
*/
|
|
83
|
+
export declare function readMailmapFile(path: string, environment: GitHostEnvironment | undefined, worktree: Worktree | undefined): Promise<Uint8Array | undefined>;
|
|
61
84
|
//# sourceMappingURL=mailmap.d.ts.map
|