@gitkraken/core-gitlens 0.6.0 → 0.7.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/CHANGELOG.md +15 -1
- package/README.md +9 -2
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/decorate.js +9 -0
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js +57 -0
- package/dist/git/cache.d.ts +297 -297
- package/dist/git/cache.js +948 -1276
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts +202 -197
- package/dist/git/context.js +12 -8
- package/dist/git/context.js.map +1 -1
- package/dist/git/errors.d.ts +268 -281
- package/dist/git/errors.js +928 -706
- package/dist/git/errors.js.map +1 -1
- package/dist/git/features.d.ts +3 -2
- package/dist/git/features.js +34 -55
- package/dist/git/features.js.map +1 -1
- package/dist/git/gitHealth.d.ts +88 -81
- package/dist/git/gitHealth.js +259 -329
- package/dist/git/gitHealth.js.map +1 -1
- package/dist/git/models/author.d.ts +12 -10
- package/dist/git/models/author.js +0 -2
- package/dist/git/models/autolink.d.ts +36 -37
- package/dist/git/models/autolink.js +0 -2
- package/dist/git/models/blame.d.ts +25 -23
- package/dist/git/models/blame.js +0 -2
- package/dist/git/models/branch.d.ts +74 -72
- package/dist/git/models/branch.js +132 -171
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts +135 -133
- package/dist/git/models/commit.js +381 -484
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts +30 -29
- package/dist/git/models/contributor.js +56 -64
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts +5 -3
- package/dist/git/models/defaultBranch.js +0 -2
- package/dist/git/models/diff.d.ts +49 -47
- package/dist/git/models/diff.js +0 -2
- package/dist/git/models/file.d.ts +20 -18
- package/dist/git/models/file.js +0 -2
- package/dist/git/models/fileChange.d.ts +45 -43
- package/dist/git/models/fileChange.js +60 -66
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +25 -23
- package/dist/git/models/fileStatus.js +30 -26
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +328 -320
- package/dist/git/models/graph.js +31 -27
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts +37 -35
- package/dist/git/models/graphSearch.js +0 -2
- package/dist/git/models/graphSession.d.ts +158 -66
- package/dist/git/models/graphSession.js +72 -1
- package/dist/git/models/graphSession.js.map +1 -1
- package/dist/git/models/issue.d.ts +171 -150
- package/dist/git/models/issue.js +86 -88
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +16 -14
- package/dist/git/models/issueOrPullRequest.js +0 -2
- package/dist/git/models/lineRange.d.ts +6 -4
- package/dist/git/models/lineRange.js +0 -2
- package/dist/git/models/log.d.ts +18 -16
- package/dist/git/models/log.js +0 -2
- package/dist/git/models/mergeConflicts.d.ts +17 -15
- package/dist/git/models/mergeConflicts.js +0 -2
- package/dist/git/models/patch.d.ts +14 -12
- package/dist/git/models/patch.js +0 -2
- package/dist/git/models/pausedOperationStatus.d.ts +42 -40
- package/dist/git/models/pausedOperationStatus.js +0 -2
- package/dist/git/models/pullRequest.d.ts +238 -236
- package/dist/git/models/pullRequest.js +151 -163
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts +30 -28
- package/dist/git/models/rebase.js +0 -2
- package/dist/git/models/reference.d.ts +57 -55
- package/dist/git/models/reference.js +0 -2
- package/dist/git/models/reflog.d.ts +29 -27
- package/dist/git/models/reflog.js +63 -82
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts +34 -32
- package/dist/git/models/remote.js +74 -95
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts +86 -84
- package/dist/git/models/remoteProvider.js +145 -150
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts +58 -56
- package/dist/git/models/remoteResource.js +15 -12
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +144 -142
- package/dist/git/models/repository.js +358 -406
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts +8 -6
- package/dist/git/models/repositoryChangeEvent.js +26 -24
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts +50 -46
- package/dist/git/models/repositoryIdentities.js +7 -5
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts +9 -7
- package/dist/git/models/repositoryMetadata.js +0 -2
- package/dist/git/models/resourceDescriptor.d.ts +11 -9
- package/dist/git/models/resourceDescriptor.js +0 -2
- package/dist/git/models/revision.d.ts +2 -0
- package/dist/git/models/revision.js +8 -5
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts +48 -47
- package/dist/git/models/search.js +53 -49
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts +5 -3
- package/dist/git/models/shortlog.js +0 -2
- package/dist/git/models/signature.d.ts +28 -26
- package/dist/git/models/signature.js +0 -2
- package/dist/git/models/staging.d.ts +18 -16
- package/dist/git/models/staging.js +0 -2
- package/dist/git/models/stash.d.ts +5 -3
- package/dist/git/models/stash.js +0 -2
- package/dist/git/models/status.d.ts +51 -49
- package/dist/git/models/status.js +172 -205
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts +35 -34
- package/dist/git/models/statusFile.js +112 -125
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +34 -32
- package/dist/git/models/tag.js +64 -77
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts +8 -6
- package/dist/git/models/tree.js +0 -2
- package/dist/git/models/user.d.ts +6 -4
- package/dist/git/models/user.js +0 -2
- package/dist/git/models/worktree.d.ts +50 -48
- package/dist/git/models/worktree.js +102 -133
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts +7 -5
- package/dist/git/parsers/diffParser.js +438 -587
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts +3 -1
- package/dist/git/parsers/rebaseTodoParser.js +165 -208
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts +12 -10
- package/dist/git/providers/blame.js +0 -2
- package/dist/git/providers/branches.d.ts +96 -94
- package/dist/git/providers/branches.js +0 -2
- package/dist/git/providers/commits.d.ts +105 -104
- package/dist/git/providers/commits.js +0 -2
- package/dist/git/providers/config.d.ts +80 -78
- package/dist/git/providers/config.js +0 -2
- package/dist/git/providers/contributors.d.ts +23 -21
- package/dist/git/providers/contributors.js +0 -2
- package/dist/git/providers/diff.d.ts +68 -66
- package/dist/git/providers/diff.js +0 -2
- package/dist/git/providers/graph.d.ts +73 -62
- package/dist/git/providers/graph.js +0 -2
- package/dist/git/providers/maintenance.d.ts +180 -178
- package/dist/git/providers/maintenance.js +0 -20
- package/dist/git/providers/operations.d.ts +114 -112
- package/dist/git/providers/operations.js +0 -2
- package/dist/git/providers/patch.d.ts +26 -24
- package/dist/git/providers/patch.js +0 -2
- package/dist/git/providers/pausedOperations.d.ts +19 -17
- package/dist/git/providers/pausedOperations.js +0 -2
- package/dist/git/providers/provider.d.ts +52 -50
- package/dist/git/providers/provider.js +0 -2
- package/dist/git/providers/refs.d.ts +42 -40
- package/dist/git/providers/refs.js +0 -2
- package/dist/git/providers/remotes.d.ts +24 -22
- package/dist/git/providers/remotes.js +0 -2
- package/dist/git/providers/revision.d.ts +25 -23
- package/dist/git/providers/revision.js +0 -2
- package/dist/git/providers/shared/remotes.d.ts +24 -22
- package/dist/git/providers/shared/remotes.js +52 -77
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts +37 -35
- package/dist/git/providers/staging.js +0 -2
- package/dist/git/providers/stash.d.ts +38 -36
- package/dist/git/providers/stash.js +0 -2
- package/dist/git/providers/status.d.ts +32 -30
- package/dist/git/providers/status.js +0 -2
- package/dist/git/providers/tags.d.ts +20 -18
- package/dist/git/providers/tags.js +0 -2
- package/dist/git/providers/types.d.ts +19 -17
- package/dist/git/providers/types.js +0 -2
- package/dist/git/providers/worktrees.d.ts +26 -24
- package/dist/git/providers/worktrees.js +0 -2
- package/dist/git/remotes/azure-devops.d.ts +46 -45
- package/dist/git/remotes/azure-devops.js +252 -257
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts +30 -29
- package/dist/git/remotes/bitbucket-server.js +141 -142
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts +27 -26
- package/dist/git/remotes/bitbucket.js +114 -111
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts +26 -25
- package/dist/git/remotes/custom.js +130 -130
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts +29 -28
- package/dist/git/remotes/gerrit.js +140 -143
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts +28 -27
- package/dist/git/remotes/gitea.js +141 -145
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts +35 -34
- package/dist/git/remotes/github.js +196 -190
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts +31 -30
- package/dist/git/remotes/gitlab.js +245 -227
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts +16 -14
- package/dist/git/remotes/google-source.js +33 -31
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts +16 -14
- package/dist/git/remotes/matcher.js +141 -124
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/repositoryService.d.ts +47 -47
- package/dist/git/repositoryService.js +47 -44
- package/dist/git/repositoryService.js.map +1 -1
- package/dist/git/run.types.d.ts +91 -76
- package/dist/git/run.types.js +0 -2
- package/dist/git/service.d.ts +73 -71
- package/dist/git/service.js +286 -302
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts +4 -2
- package/dist/git/utils/autolink.utils.js +103 -139
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts +22 -20
- package/dist/git/utils/blame.utils.js +196 -230
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts +7 -9
- package/dist/git/utils/branch.utils.js +89 -115
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts +10 -16
- package/dist/git/utils/commit.utils.js +28 -47
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/config.utils.d.ts +2 -0
- package/dist/git/utils/config.utils.js +14 -5
- package/dist/git/utils/config.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts +16 -13
- package/dist/git/utils/conflictResolution.utils.js +116 -113
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +10 -8
- package/dist/git/utils/contributor.utils.js +47 -69
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts +2 -0
- package/dist/git/utils/fetch.utils.js +33 -44
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +22 -21
- package/dist/git/utils/fileStatus.utils.js +59 -45
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +19 -1
- package/dist/git/utils/graph.utils.js +60 -35
- package/dist/git/utils/graph.utils.js.map +1 -1
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +154 -158
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +23 -20
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts +4 -1
- package/dist/git/utils/mergeConflicts.utils.js +28 -15
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +7 -42
- package/dist/git/utils/pausedOperationStatus.utils.js +83 -146
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +7 -5
- package/dist/git/utils/pullRequest.utils.js +180 -187
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +6 -6
- package/dist/git/utils/reachability.utils.js +120 -147
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts +3 -1
- package/dist/git/utils/rebase.utils.js +87 -71
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +33 -32
- package/dist/git/utils/reference.utils.js +152 -179
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts +5 -3
- package/dist/git/utils/remote.utils.js +77 -116
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts +3 -1
- package/dist/git/utils/repository.utils.js +12 -11
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts +3 -1
- package/dist/git/utils/resourceDescriptor.utils.js +8 -14
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts +11 -10
- package/dist/git/utils/revision.utils.js +69 -83
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts +5 -3
- package/dist/git/utils/search.utils.js +383 -522
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts +22 -20
- package/dist/git/utils/sorting.js +133 -227
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +2 -0
- package/dist/git/utils/sshKey.utils.js +10 -15
- package/dist/git/utils/sshKey.utils.js.map +1 -1
- package/dist/git/utils/status.utils.d.ts +20 -15
- package/dist/git/utils/status.utils.js +93 -79
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts +6 -4
- package/dist/git/utils/statusFile.utils.js +71 -72
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts +4 -2
- package/dist/git/utils/tag.utils.js +10 -8
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts +5 -2
- package/dist/git/utils/tooltip.utils.js +49 -24
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts +9 -7
- package/dist/git/utils/uriAuthority.js +19 -16
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts +3 -1
- package/dist/git/utils/user.utils.js +6 -10
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts +5 -3
- package/dist/git/utils/worktree.utils.js +14 -12
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts +38 -36
- package/dist/git/watching/changeEvent.js +60 -67
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts +3 -1
- package/dist/git/watching/classifyChange.js +50 -79
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +43 -41
- package/dist/git/watching/gitIgnoreFilter.js +92 -107
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts +22 -20
- package/dist/git/watching/initWatcher.js +58 -57
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts +8 -7
- package/dist/git/watching/provider.js +0 -2
- package/dist/git/watching/watchGroup.d.ts +29 -28
- package/dist/git/watching/watchGroup.js +105 -137
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +70 -68
- package/dist/git/watching/watchService.js +275 -339
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +112 -111
- package/dist/git/watching/watchSession.js +260 -314
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +4 -2
- package/dist/git/watching/watcherPatterns.js +21 -24
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +117 -114
- package/dist/git-cli/cliGitProvider.js +261 -283
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/eventLoopMonitor.d.ts +26 -0
- package/dist/git-cli/exec/eventLoopMonitor.js +61 -0
- package/dist/git-cli/exec/eventLoopMonitor.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +3 -4
- package/dist/git-cli/exec/exec.errors.d.ts +2 -2
- package/dist/git-cli/exec/exec.errors.js +2 -2
- package/dist/git-cli/exec/exec.js +3 -3
- package/dist/git-cli/exec/exec.types.d.ts +2 -2
- package/dist/git-cli/exec/exec.types.js +0 -2
- package/dist/git-cli/exec/features.d.ts +2 -3
- package/dist/git-cli/exec/features.js +2 -2
- package/dist/git-cli/exec/git.d.ts +224 -205
- package/dist/git-cli/exec/git.js +834 -1042
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts +51 -48
- package/dist/git-cli/exec/gitQueue.js +225 -260
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts +8 -6
- package/dist/git-cli/exec/locator.js +95 -121
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts +22 -20
- package/dist/git-cli/parsers/blameParser.js +238 -332
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts +3 -1
- package/dist/git-cli/parsers/indexParser.js +146 -221
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +103 -110
- package/dist/git-cli/parsers/logParser.js +998 -1199
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +5 -3
- package/dist/git-cli/parsers/mergeTreeParser.js +28 -72
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts +5 -4
- package/dist/git-cli/parsers/refParser.js +92 -137
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts +7 -6
- package/dist/git-cli/parsers/reflogParser.js +100 -173
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -2
- package/dist/git-cli/parsers/remoteParser.js +74 -126
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -2
- package/dist/git-cli/parsers/shortlogParser.js +44 -49
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts +3 -1
- package/dist/git-cli/parsers/signatureParser.js +82 -124
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +5 -3
- package/dist/git-cli/parsers/sshSignatureParser.js +55 -64
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +4 -2
- package/dist/git-cli/parsers/statusParser.js +148 -205
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts +3 -1
- package/dist/git-cli/parsers/treeParser.js +57 -108
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts +4 -3
- package/dist/git-cli/parsers/worktreeParser.js +76 -132
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts +25 -23
- package/dist/git-cli/providers/blame.js +404 -413
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +117 -116
- package/dist/git-cli/providers/branches.js +1132 -1468
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -2
- package/dist/git-cli/providers/commitFilesetUtils.js +36 -18
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +58 -56
- package/dist/git-cli/providers/commits.js +1084 -1423
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +129 -127
- package/dist/git-cli/providers/config.js +612 -831
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts +29 -28
- package/dist/git-cli/providers/contributors.js +246 -351
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts +97 -94
- package/dist/git-cli/providers/diff.js +638 -845
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +66 -68
- package/dist/git-cli/providers/graph.js +1400 -1848
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/maintenance.d.ts +305 -303
- package/dist/git-cli/providers/maintenance.js +1526 -2078
- package/dist/git-cli/providers/maintenance.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts +96 -94
- package/dist/git-cli/providers/operations.js +664 -724
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts +37 -35
- package/dist/git-cli/providers/patch.js +206 -307
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts +30 -28
- package/dist/git-cli/providers/pausedOperations.js +475 -506
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts +50 -48
- package/dist/git-cli/providers/refs.js +335 -479
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts +23 -21
- package/dist/git-cli/providers/remotes.js +71 -92
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +27 -25
- package/dist/git-cli/providers/revision.js +288 -304
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +31 -29
- package/dist/git-cli/providers/staging.js +140 -189
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts +44 -42
- package/dist/git-cli/providers/stash.js +288 -387
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +61 -59
- package/dist/git-cli/providers/status.js +332 -453
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts +31 -29
- package/dist/git-cli/providers/tags.js +158 -215
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +35 -33
- package/dist/git-cli/providers/worktrees.js +178 -203
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts +28 -26
- package/dist/git-cli/service.js +38 -40
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/discovery.d.ts +19 -17
- package/dist/ipc/discovery.js +104 -128
- package/dist/ipc/discovery.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts +16 -14
- package/dist/ipc/ipcServer.js +139 -160
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/agentCapabilities.d.ts +50 -37
- package/dist/plus/agents/agentCapabilities.js +138 -173
- package/dist/plus/agents/agentCapabilities.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +153 -151
- package/dist/plus/agents/providers/claudeCodeTranscript.js +605 -679
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts +237 -240
- package/dist/plus/agents/providers/gkAgentProvider.js +2162 -3334
- package/dist/plus/agents/providers/gkAgentProvider.js.map +1 -1
- package/dist/plus/agents/sanitizePrompt.d.ts +2 -0
- package/dist/plus/agents/sanitizePrompt.js +58 -91
- package/dist/plus/agents/sanitizePrompt.js.map +1 -1
- package/dist/plus/agents/stateMachine.d.ts +7 -5
- package/dist/plus/agents/stateMachine.js +135 -163
- package/dist/plus/agents/stateMachine.js.map +1 -1
- package/dist/plus/agents/types.d.ts +333 -336
- package/dist/plus/agents/types.js +48 -48
- package/dist/plus/agents/types.js.map +1 -1
- package/dist/plus/ai/constants.d.ts +3 -1
- package/dist/plus/ai/constants.js +88 -84
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts +22 -18
- package/dist/plus/ai/errors.js +158 -138
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts +11 -9
- package/dist/plus/ai/models/conversation.js +30 -26
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +29 -27
- package/dist/plus/ai/models/model.js +663 -471
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +56 -55
- package/dist/plus/ai/models/promptTemplates.js +0 -2
- package/dist/plus/ai/models/provider.d.ts +79 -77
- package/dist/plus/ai/models/provider.js +0 -2
- package/dist/plus/ai/models/results.d.ts +27 -21
- package/dist/plus/ai/models/results.js +0 -2
- package/dist/plus/ai/prompts.d.ts +4 -2
- package/dist/plus/ai/prompts.js +301 -190
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +33 -32
- package/dist/plus/ai/providers/anthropicProvider.js +484 -381
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -16
- package/dist/plus/ai/providers/azureProvider.js +53 -53
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts +23 -20
- package/dist/plus/ai/providers/context.js +0 -2
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +17 -15
- package/dist/plus/ai/providers/deepSeekProvider.js +45 -39
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/geminiProvider.js +316 -230
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +22 -20
- package/dist/plus/ai/providers/gitkrakenProvider.js +165 -260
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +16 -14
- package/dist/plus/ai/providers/huggingFaceProvider.js +45 -46
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts +22 -20
- package/dist/plus/ai/providers/mistralProvider.js +263 -195
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts +26 -24
- package/dist/plus/ai/providers/ollamaProvider.js +156 -189
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +18 -16
- package/dist/plus/ai/providers/openAICompatibleProvider.js +50 -50
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +187 -185
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +356 -475
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts +20 -19
- package/dist/plus/ai/providers/openRouterProvider.js +60 -65
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts +17 -15
- package/dist/plus/ai/providers/openaiProvider.js +35 -34
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts +4 -2
- package/dist/plus/ai/providers/responseFormatCache.js +21 -17
- package/dist/plus/ai/providers/responseFormatCache.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/xaiProvider.js +61 -46
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts +4 -2
- package/dist/plus/ai/utils/ai.utils.js +50 -77
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +7 -5
- package/dist/plus/ai/utils/results.utils.js +235 -269
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +3 -2
- package/dist/plus/ai/utils/truncation.utils.js +242 -205
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts +58 -56
- package/dist/plus/git-github/api/config.js +15 -11
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +500 -497
- package/dist/plus/git-github/api/github.js +2326 -3121
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts +5 -3
- package/dist/plus/git-github/api/github.utils.js +24 -19
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts +5 -3
- package/dist/plus/git-github/api/issueSearchQuery.js +204 -221
- package/dist/plus/git-github/api/issueSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts +6 -5
- package/dist/plus/git-github/api/pullRequestSearchQuery.js +89 -116
- package/dist/plus/git-github/api/pullRequestSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts +10 -8
- package/dist/plus/git-github/api/token.js +0 -2
- package/dist/plus/git-github/api/tokenUtils.d.ts +4 -2
- package/dist/plus/git-github/api/tokenUtils.js +14 -10
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts +94 -92
- package/dist/plus/git-github/api/types.js +0 -2
- package/dist/plus/git-github/context.d.ts +65 -63
- package/dist/plus/git-github/context.js +13 -9
- package/dist/plus/git-github/context.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +182 -182
- package/dist/plus/git-github/models.js +199 -265
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts +32 -31
- package/dist/plus/git-github/providers/github/blame.js +137 -150
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +42 -40
- package/dist/plus/git-github/providers/github/branches.js +199 -274
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts +35 -33
- package/dist/plus/git-github/providers/github/commits.js +527 -606
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts +10 -8
- package/dist/plus/git-github/providers/github/config.js +35 -45
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts +25 -24
- package/dist/plus/git-github/providers/github/contributors.js +174 -216
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts +34 -32
- package/dist/plus/git-github/providers/github/diff.js +154 -194
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +33 -31
- package/dist/plus/git-github/providers/github/graph.js +400 -452
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts +33 -31
- package/dist/plus/git-github/providers/github/refs.js +97 -131
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts +8 -6
- package/dist/plus/git-github/providers/github/remotes.js +30 -35
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +13 -11
- package/dist/plus/git-github/providers/github/revision.js +106 -129
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts +24 -22
- package/dist/plus/git-github/providers/github/status.js +49 -47
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts +21 -19
- package/dist/plus/git-github/providers/github/tags.js +78 -103
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +67 -64
- package/dist/plus/git-github/providers/githubGitProvider.js +131 -128
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts +46 -44
- package/dist/plus/git-github/providers/githubProvider.js +0 -2
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +29 -27
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +173 -208
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +126 -107
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +399 -497
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +73 -72
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +153 -232
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +61 -59
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +100 -124
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +14 -12
- package/dist/plus/integrations/authentication/manualTokenProvider.js +26 -51
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +102 -85
- package/dist/plus/integrations/authentication/models.js +55 -54
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +19 -17
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -51
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +12 -10
- package/dist/plus/integrations/collectionMetadata.js +204 -254
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/constants.d.ts +60 -34
- package/dist/plus/integrations/constants.js +157 -132
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +253 -252
- package/dist/plus/integrations/context.js +0 -2
- package/dist/plus/integrations/errors.d.ts +26 -25
- package/dist/plus/integrations/errors.js +116 -140
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +36 -40
- package/dist/plus/integrations/index.js +46 -57
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +445 -440
- package/dist/plus/integrations/integrationService.js +1054 -1324
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +33 -31
- package/dist/plus/integrations/lite.js +84 -122
- package/dist/plus/integrations/lite.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +592 -580
- package/dist/plus/integrations/manager.js +0 -2
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +420 -415
- package/dist/plus/integrations/models/gitHostIntegration.js +1180 -1293
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +200 -190
- package/dist/plus/integrations/models/integration.js +577 -722
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issueCache.d.ts +15 -13
- package/dist/plus/integrations/models/issueCache.js +9 -7
- package/dist/plus/integrations/models/issueCache.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +108 -85
- package/dist/plus/integrations/models/issueReads.js +0 -2
- package/dist/plus/integrations/models/issuesIntegration.d.ts +72 -71
- package/dist/plus/integrations/models/issuesIntegration.js +160 -186
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts +9 -7
- package/dist/plus/integrations/models/pullRequestReads.js +0 -2
- package/dist/plus/integrations/providerFilters.d.ts +8 -20
- package/dist/plus/integrations/providerFilters.js +11 -7
- package/dist/plus/integrations/providerFilters.js.map +1 -1
- package/dist/plus/integrations/providers/accounts.d.ts +7 -5
- package/dist/plus/integrations/providers/accounts.js +21 -31
- package/dist/plus/integrations/providers/accounts.js.map +1 -1
- package/dist/plus/integrations/providers/apiClients.d.ts +13 -10
- package/dist/plus/integrations/providers/apiClients.js +51 -36
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +31 -29
- package/dist/plus/integrations/providers/apiConfig.js +18 -16
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts +69 -67
- package/dist/plus/integrations/providers/azure/azure.js +452 -577
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +228 -226
- package/dist/plus/integrations/providers/azure/models.js +223 -251
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -131
- package/dist/plus/integrations/providers/azureDevOps.js +773 -931
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +50 -48
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +417 -585
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts +179 -179
- package/dist/plus/integrations/providers/bitbucket/models.js +96 -144
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +111 -109
- package/dist/plus/integrations/providers/bitbucket-server/models.js +102 -121
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +79 -79
- package/dist/plus/integrations/providers/bitbucket-server.js +205 -241
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +80 -79
- package/dist/plus/integrations/providers/bitbucket.js +390 -477
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts +5 -3
- package/dist/plus/integrations/providers/github/github.js +38 -45
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts +8 -5
- package/dist/plus/integrations/providers/github/github.utils.js +7 -4
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts +2 -3
- package/dist/plus/integrations/providers/github/models.js +2 -2
- package/dist/plus/integrations/providers/github.d.ts +174 -172
- package/dist/plus/integrations/providers/github.js +431 -523
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +67 -66
- package/dist/plus/integrations/providers/gitlab/gitlab.js +546 -757
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +45 -46
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +109 -107
- package/dist/plus/integrations/providers/gitlab/models.js +74 -89
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +115 -114
- package/dist/plus/integrations/providers/gitlab.js +440 -528
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +3 -1
- package/dist/plus/integrations/providers/issueSorts.js +66 -62
- package/dist/plus/integrations/providers/issueSorts.js.map +1 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +90 -0
- package/dist/plus/integrations/providers/jira-server.js +322 -0
- package/dist/plus/integrations/providers/jira-server.js.map +1 -0
- package/dist/plus/integrations/providers/jira.d.ts +41 -39
- package/dist/plus/integrations/providers/jira.js +378 -440
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +85 -89
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +63 -62
- package/dist/plus/integrations/providers/linear.js +315 -358
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +514 -503
- package/dist/plus/integrations/providers/models.js +816 -865
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts +35 -2
- package/dist/plus/integrations/providers/providerErrors.js +120 -81
- package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +299 -271
- package/dist/plus/integrations/providers/providersApi.js +1048 -1001
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts +21 -21
- package/dist/plus/integrations/providers/pullRequestReviews.js +64 -90
- package/dist/plus/integrations/providers/pullRequestReviews.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +35 -34
- package/dist/plus/integrations/providers/trello.js +136 -143
- package/dist/plus/integrations/providers/trello.js.map +1 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +4 -2
- package/dist/plus/integrations/providers/utils/providerPaging.js +131 -156
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -1
- package/dist/plus/integrations/providers/utils.d.ts +51 -50
- package/dist/plus/integrations/providers/utils.js +185 -296
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/broaden.d.ts +10 -8
- package/dist/plus/integrations/reads/broaden.js +320 -439
- package/dist/plus/integrations/reads/broaden.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +47 -45
- package/dist/plus/integrations/reads/context.js +0 -2
- package/dist/plus/integrations/reads/counts.d.ts +74 -72
- package/dist/plus/integrations/reads/counts.js +233 -314
- package/dist/plus/integrations/reads/counts.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +26 -24
- package/dist/plus/integrations/reads/cursors.js +80 -115
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +24 -23
- package/dist/plus/integrations/reads/drains.js +225 -298
- package/dist/plus/integrations/reads/drains.js.map +1 -1
- package/dist/plus/integrations/reads/filters.d.ts +84 -80
- package/dist/plus/integrations/reads/filters.js +326 -414
- package/dist/plus/integrations/reads/filters.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +14 -12
- package/dist/plus/integrations/reads/hierarchy.js +248 -332
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +11 -9
- package/dist/plus/integrations/reads/hierarchy.utils.js +109 -108
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts +28 -26
- package/dist/plus/integrations/reads/issueBatch.js +83 -85
- package/dist/plus/integrations/reads/issueBatch.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +42 -33
- package/dist/plus/integrations/reads/issueTracker.js +265 -386
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.d.ts +50 -47
- package/dist/plus/integrations/reads/issues.js +202 -331
- package/dist/plus/integrations/reads/issues.js.map +1 -1
- package/dist/plus/integrations/reads/ordering.d.ts +32 -30
- package/dist/plus/integrations/reads/ordering.js +47 -43
- package/dist/plus/integrations/reads/ordering.js.map +1 -1
- package/dist/plus/integrations/reads/paging.d.ts +59 -57
- package/dist/plus/integrations/reads/paging.js +244 -261
- package/dist/plus/integrations/reads/paging.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts +37 -35
- package/dist/plus/integrations/reads/pullRequests.js +95 -148
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts +15 -13
- package/dist/plus/integrations/reads/resolveRepository.js +147 -231
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts +29 -27
- package/dist/plus/integrations/reads/searchIssues.js +104 -153
- package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts +20 -18
- package/dist/plus/integrations/reads/searchPullRequests.js +91 -113
- package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/sweeps.d.ts +6 -4
- package/dist/plus/integrations/reads/sweeps.js +143 -178
- package/dist/plus/integrations/reads/sweeps.js.map +1 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts +24 -16
- package/dist/plus/integrations/reads/trackerIssue.js +52 -49
- package/dist/plus/integrations/reads/trackerIssue.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.d.ts +10 -7
- package/dist/plus/integrations/reads/warnings.js +264 -291
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +201 -199
- package/dist/plus/integrations/results.js +105 -119
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/telemetry.d.ts +7 -5
- package/dist/plus/integrations/telemetry.js +9 -9
- package/dist/plus/integrations/telemetry.js.map +1 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts +21 -0
- package/dist/plus/integrations/utils/domain.utils.js +55 -22
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +30 -6
- package/dist/plus/integrations/utils/integration.utils.js +154 -161
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts +9 -7
- package/dist/utils/array.js +110 -126
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/base64.js +2 -2
- package/dist/utils/brand.d.ts +4 -3
- package/dist/utils/brand.js +0 -2
- package/dist/utils/cancellation.d.ts +24 -24
- package/dist/utils/cancellation.js +152 -167
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts +31 -37
- package/dist/utils/charCode.js +41 -37
- package/dist/utils/charCode.js.map +1 -1
- package/dist/utils/coalescedRun.d.ts +10 -8
- package/dist/utils/coalescedRun.js +39 -41
- package/dist/utils/coalescedRun.js.map +1 -1
- package/dist/utils/color.d.ts +137 -135
- package/dist/utils/color.js +535 -660
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/counter.d.ts +5 -3
- package/dist/utils/counter.js +19 -17
- package/dist/utils/counter.js.map +1 -1
- package/dist/utils/crypto.d.ts +2 -2
- package/dist/utils/crypto.js +2 -2
- package/dist/utils/date.d.ts +10 -9
- package/dist/utils/date.js +312 -350
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.d.ts +45 -43
- package/dist/utils/debounce.js +175 -206
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts +3 -1
- package/dist/utils/decorators/debounce.js +16 -19
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts +13 -11
- package/dist/utils/decorators/gate.js +97 -124
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts +25 -24
- package/dist/utils/decorators/log.js +166 -227
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts +10 -8
- package/dist/utils/decorators/memoize.js +49 -57
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts +2 -0
- package/dist/utils/decorators/resolver.js +64 -75
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts +15 -14
- package/dist/utils/decorators/sequentialize.js +61 -80
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts +2 -0
- package/dist/utils/decorators/serializable.js +30 -39
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts +23 -21
- package/dist/utils/dedupedAsyncCache.js +63 -66
- package/dist/utils/dedupedAsyncCache.js.map +1 -1
- package/dist/utils/diff.d.ts +2 -0
- package/dist/utils/diff.js +41 -51
- package/dist/utils/diff.js.map +1 -1
- package/dist/utils/disposable.d.ts +15 -13
- package/dist/utils/disposable.js +71 -80
- package/dist/utils/disposable.js.map +1 -1
- package/dist/utils/dom.d.ts +45 -0
- package/dist/utils/dom.js +106 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/encoding.d.ts +2 -0
- package/dist/utils/encoding.js +7 -5
- package/dist/utils/encoding.js.map +1 -1
- package/dist/utils/env/browser/base64.d.ts +2 -0
- package/dist/utils/env/browser/base64.js +32 -34
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts +2 -0
- package/dist/utils/env/browser/crypto.js +17 -13
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.js +6 -2
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts +2 -0
- package/dist/utils/env/browser/hex.js +271 -29
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.js +17 -13
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts +3 -1
- package/dist/utils/env/browser/logScope.js +39 -43
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.js +211 -184
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts +3 -0
- package/dist/utils/env/browser/platform.js +11 -4
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts +2 -0
- package/dist/utils/env/node/base64.js +13 -11
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts +2 -0
- package/dist/utils/env/node/crypto.js +13 -9
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +66 -65
- package/dist/utils/env/node/exec.js +255 -267
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.js +7 -3
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts +2 -0
- package/dist/utils/env/node/hex.js +10 -6
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts +2 -2
- package/dist/utils/env/node/hrtime.js +2 -2
- package/dist/utils/env/node/logScope.d.ts +3 -1
- package/dist/utils/env/node/logScope.js +52 -42
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts +3 -0
- package/dist/utils/env/node/platform.js +11 -4
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/error.d.ts +8 -6
- package/dist/utils/error.js +16 -14
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/event.d.ts +27 -25
- package/dist/utils/event.js +141 -170
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts +15 -14
- package/dist/utils/formatter.js +96 -129
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/fs.d.ts +2 -2
- package/dist/utils/fs.js +2 -2
- package/dist/utils/function.d.ts +5 -6
- package/dist/utils/function.js +73 -90
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/fuzzy.d.ts +18 -16
- package/dist/utils/fuzzy.js +121 -127
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/gitRefs.d.ts +11 -0
- package/dist/utils/gitRefs.js +21 -0
- package/dist/utils/gitRefs.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +49 -47
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/hex.d.ts +2 -2
- package/dist/utils/hex.js +2 -2
- package/dist/utils/hostingServiceType.d.ts +8 -0
- package/dist/utils/hostingServiceType.js +0 -0
- package/dist/utils/hrtime.d.ts +4 -2
- package/dist/utils/hrtime.js +8 -5
- package/dist/utils/hrtime.js.map +1 -1
- package/dist/utils/iterable.d.ts +3 -1
- package/dist/utils/iterable.js +591 -616
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/keys/chord.d.ts +27 -25
- package/dist/utils/keys/chord.js +108 -122
- package/dist/utils/keys/chord.js.map +1 -1
- package/dist/utils/keys/keybinding.d.ts +98 -22
- package/dist/utils/keys/keybinding.js +151 -53
- package/dist/utils/keys/keybinding.js.map +1 -1
- package/dist/utils/keys/keymapDispatcher.d.ts +66 -0
- package/dist/utils/keys/keymapDispatcher.js +187 -0
- package/dist/utils/keys/keymapDispatcher.js.map +1 -0
- package/dist/utils/lazy.d.ts +14 -12
- package/dist/utils/lazy.js +35 -36
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/loggable.d.ts +3 -1
- package/dist/utils/loggable.js +6 -2
- package/dist/utils/loggable.js.map +1 -1
- package/dist/utils/logger.d.ts +48 -46
- package/dist/utils/logger.js +219 -304
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.d.ts +30 -28
- package/dist/utils/logger.scoped.js +133 -147
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts +34 -32
- package/dist/utils/lruMap.js +97 -101
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/markdown.d.ts +5 -3
- package/dist/utils/markdown.js +52 -88
- package/dist/utils/markdown.js.map +1 -1
- package/dist/utils/mru.d.ts +13 -11
- package/dist/utils/mru.js +57 -62
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.d.ts +9 -34
- package/dist/utils/object.js +132 -191
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +36 -34
- package/dist/utils/paging.js +42 -45
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.d.ts +4 -1
- package/dist/utils/path.js +129 -162
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/pausedOperation.d.ts +42 -0
- package/dist/utils/pausedOperation.js +62 -0
- package/dist/utils/pausedOperation.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/platform.js +2 -2
- package/dist/utils/plural.d.ts +21 -0
- package/dist/utils/plural.js +136 -0
- package/dist/utils/plural.js.map +1 -0
- package/dist/utils/promise.d.ts +19 -18
- package/dist/utils/promise.js +323 -360
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +331 -330
- package/dist/utils/promiseCache.js +602 -717
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/resourceUsage.d.ts +2 -0
- package/dist/utils/resourceUsage.js +0 -2
- package/dist/utils/searchTree.d.ts +51 -49
- package/dist/utils/searchTree.js +306 -396
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts +33 -32
- package/dist/utils/stopwatch.js +67 -81
- package/dist/utils/stopwatch.js.map +1 -1
- package/dist/utils/string.d.ts +17 -24
- package/dist/utils/string.js +787 -803
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts +15 -14
- package/dist/utils/subscriptionManager.js +36 -33
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts +64 -62
- package/dist/utils/trie.js +438 -580
- package/dist/utils/trie.js.map +1 -1
- package/dist/utils/types.d.ts +8 -16
- package/dist/utils/types.js +0 -2
- package/dist/utils/uri.d.ts +27 -25
- package/dist/utils/uri.js +42 -42
- package/dist/utils/uri.js.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.js +17 -23
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/version.d.ts +6 -5
- package/dist/utils/version.js +77 -104
- package/dist/utils/version.js.map +1 -1
- package/docs/integrations.md +70 -26
- package/package.json +18 -8
- package/dist/git/cache.d.ts.map +0 -1
- package/dist/git/context.d.ts.map +0 -1
- package/dist/git/errors.d.ts.map +0 -1
- package/dist/git/features.d.ts.map +0 -1
- package/dist/git/gitHealth.d.ts.map +0 -1
- package/dist/git/models/author.d.ts.map +0 -1
- package/dist/git/models/author.js.map +0 -1
- package/dist/git/models/autolink.d.ts.map +0 -1
- package/dist/git/models/autolink.js.map +0 -1
- package/dist/git/models/blame.d.ts.map +0 -1
- package/dist/git/models/blame.js.map +0 -1
- package/dist/git/models/branch.d.ts.map +0 -1
- package/dist/git/models/commit.d.ts.map +0 -1
- package/dist/git/models/contributor.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.js.map +0 -1
- package/dist/git/models/diff.d.ts.map +0 -1
- package/dist/git/models/diff.js.map +0 -1
- package/dist/git/models/file.d.ts.map +0 -1
- package/dist/git/models/file.js.map +0 -1
- package/dist/git/models/fileChange.d.ts.map +0 -1
- package/dist/git/models/fileStatus.d.ts.map +0 -1
- package/dist/git/models/graph.d.ts.map +0 -1
- package/dist/git/models/graphSearch.d.ts.map +0 -1
- package/dist/git/models/graphSearch.js.map +0 -1
- package/dist/git/models/graphSession.d.ts.map +0 -1
- package/dist/git/models/issue.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.js.map +0 -1
- package/dist/git/models/lineRange.d.ts.map +0 -1
- package/dist/git/models/lineRange.js.map +0 -1
- package/dist/git/models/log.d.ts.map +0 -1
- package/dist/git/models/log.js.map +0 -1
- package/dist/git/models/mergeConflicts.d.ts.map +0 -1
- package/dist/git/models/mergeConflicts.js.map +0 -1
- package/dist/git/models/patch.d.ts.map +0 -1
- package/dist/git/models/patch.js.map +0 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +0 -1
- package/dist/git/models/pausedOperationStatus.js.map +0 -1
- package/dist/git/models/pullRequest.d.ts.map +0 -1
- package/dist/git/models/rebase.d.ts.map +0 -1
- package/dist/git/models/rebase.js.map +0 -1
- package/dist/git/models/reference.d.ts.map +0 -1
- package/dist/git/models/reference.js.map +0 -1
- package/dist/git/models/reflog.d.ts.map +0 -1
- package/dist/git/models/remote.d.ts.map +0 -1
- package/dist/git/models/remoteProvider.d.ts.map +0 -1
- package/dist/git/models/remoteResource.d.ts.map +0 -1
- package/dist/git/models/repository.d.ts.map +0 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +0 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.js.map +0 -1
- package/dist/git/models/resourceDescriptor.d.ts.map +0 -1
- package/dist/git/models/resourceDescriptor.js.map +0 -1
- package/dist/git/models/revision.d.ts.map +0 -1
- package/dist/git/models/search.d.ts.map +0 -1
- package/dist/git/models/shortlog.d.ts.map +0 -1
- package/dist/git/models/shortlog.js.map +0 -1
- package/dist/git/models/signature.d.ts.map +0 -1
- package/dist/git/models/signature.js.map +0 -1
- package/dist/git/models/staging.d.ts.map +0 -1
- package/dist/git/models/staging.js.map +0 -1
- package/dist/git/models/stash.d.ts.map +0 -1
- package/dist/git/models/stash.js.map +0 -1
- package/dist/git/models/status.d.ts.map +0 -1
- package/dist/git/models/statusFile.d.ts.map +0 -1
- package/dist/git/models/tag.d.ts.map +0 -1
- package/dist/git/models/tree.d.ts.map +0 -1
- package/dist/git/models/tree.js.map +0 -1
- package/dist/git/models/user.d.ts.map +0 -1
- package/dist/git/models/user.js.map +0 -1
- package/dist/git/models/worktree.d.ts.map +0 -1
- package/dist/git/parsers/diffParser.d.ts.map +0 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +0 -1
- package/dist/git/providers/blame.d.ts.map +0 -1
- package/dist/git/providers/blame.js.map +0 -1
- package/dist/git/providers/branches.d.ts.map +0 -1
- package/dist/git/providers/branches.js.map +0 -1
- package/dist/git/providers/commits.d.ts.map +0 -1
- package/dist/git/providers/commits.js.map +0 -1
- package/dist/git/providers/config.d.ts.map +0 -1
- package/dist/git/providers/config.js.map +0 -1
- package/dist/git/providers/contributors.d.ts.map +0 -1
- package/dist/git/providers/contributors.js.map +0 -1
- package/dist/git/providers/diff.d.ts.map +0 -1
- package/dist/git/providers/diff.js.map +0 -1
- package/dist/git/providers/graph.d.ts.map +0 -1
- package/dist/git/providers/graph.js.map +0 -1
- package/dist/git/providers/maintenance.d.ts.map +0 -1
- package/dist/git/providers/maintenance.js.map +0 -1
- package/dist/git/providers/operations.d.ts.map +0 -1
- package/dist/git/providers/operations.js.map +0 -1
- package/dist/git/providers/patch.d.ts.map +0 -1
- package/dist/git/providers/patch.js.map +0 -1
- package/dist/git/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git/providers/pausedOperations.js.map +0 -1
- package/dist/git/providers/provider.d.ts.map +0 -1
- package/dist/git/providers/provider.js.map +0 -1
- package/dist/git/providers/refs.d.ts.map +0 -1
- package/dist/git/providers/refs.js.map +0 -1
- package/dist/git/providers/remotes.d.ts.map +0 -1
- package/dist/git/providers/remotes.js.map +0 -1
- package/dist/git/providers/revision.d.ts.map +0 -1
- package/dist/git/providers/revision.js.map +0 -1
- package/dist/git/providers/shared/remotes.d.ts.map +0 -1
- package/dist/git/providers/staging.d.ts.map +0 -1
- package/dist/git/providers/staging.js.map +0 -1
- package/dist/git/providers/stash.d.ts.map +0 -1
- package/dist/git/providers/stash.js.map +0 -1
- package/dist/git/providers/status.d.ts.map +0 -1
- package/dist/git/providers/status.js.map +0 -1
- package/dist/git/providers/tags.d.ts.map +0 -1
- package/dist/git/providers/tags.js.map +0 -1
- package/dist/git/providers/types.d.ts.map +0 -1
- package/dist/git/providers/types.js.map +0 -1
- package/dist/git/providers/worktrees.d.ts.map +0 -1
- package/dist/git/providers/worktrees.js.map +0 -1
- package/dist/git/remotes/azure-devops.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket.d.ts.map +0 -1
- package/dist/git/remotes/custom.d.ts.map +0 -1
- package/dist/git/remotes/gerrit.d.ts.map +0 -1
- package/dist/git/remotes/gitea.d.ts.map +0 -1
- package/dist/git/remotes/github.d.ts.map +0 -1
- package/dist/git/remotes/gitlab.d.ts.map +0 -1
- package/dist/git/remotes/google-source.d.ts.map +0 -1
- package/dist/git/remotes/matcher.d.ts.map +0 -1
- package/dist/git/repositoryService.d.ts.map +0 -1
- package/dist/git/run.types.d.ts.map +0 -1
- package/dist/git/run.types.js.map +0 -1
- package/dist/git/service.d.ts.map +0 -1
- package/dist/git/utils/autolink.utils.d.ts.map +0 -1
- package/dist/git/utils/blame.utils.d.ts.map +0 -1
- package/dist/git/utils/branch.utils.d.ts.map +0 -1
- package/dist/git/utils/commit.utils.d.ts.map +0 -1
- package/dist/git/utils/config.utils.d.ts.map +0 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +0 -1
- package/dist/git/utils/contributor.utils.d.ts.map +0 -1
- package/dist/git/utils/fetch.utils.d.ts.map +0 -1
- package/dist/git/utils/fileStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/graph.utils.d.ts.map +0 -1
- package/dist/git/utils/issue.utils.d.ts.map +0 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +0 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/reachability.utils.d.ts.map +0 -1
- package/dist/git/utils/rebase.utils.d.ts.map +0 -1
- package/dist/git/utils/reference.utils.d.ts.map +0 -1
- package/dist/git/utils/remote.utils.d.ts.map +0 -1
- package/dist/git/utils/repository.utils.d.ts.map +0 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +0 -1
- package/dist/git/utils/revision.utils.d.ts.map +0 -1
- package/dist/git/utils/search.utils.d.ts.map +0 -1
- package/dist/git/utils/sorting.d.ts.map +0 -1
- package/dist/git/utils/sshKey.utils.d.ts.map +0 -1
- package/dist/git/utils/status.utils.d.ts.map +0 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +0 -1
- package/dist/git/utils/tag.utils.d.ts.map +0 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +0 -1
- package/dist/git/utils/uriAuthority.d.ts.map +0 -1
- package/dist/git/utils/user.utils.d.ts.map +0 -1
- package/dist/git/utils/worktree.utils.d.ts.map +0 -1
- package/dist/git/watching/changeEvent.d.ts.map +0 -1
- package/dist/git/watching/classifyChange.d.ts.map +0 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +0 -1
- package/dist/git/watching/initWatcher.d.ts.map +0 -1
- package/dist/git/watching/provider.d.ts.map +0 -1
- package/dist/git/watching/provider.js.map +0 -1
- package/dist/git/watching/watchGroup.d.ts.map +0 -1
- package/dist/git/watching/watchService.d.ts.map +0 -1
- package/dist/git/watching/watchSession.d.ts.map +0 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +0 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.js.map +0 -1
- package/dist/git-cli/exec/exec.js.map +0 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.types.js.map +0 -1
- package/dist/git-cli/exec/features.d.ts.map +0 -1
- package/dist/git-cli/exec/features.js.map +0 -1
- package/dist/git-cli/exec/git.d.ts.map +0 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +0 -1
- package/dist/git-cli/exec/locator.d.ts.map +0 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/statusParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +0 -1
- package/dist/git-cli/providers/blame.d.ts.map +0 -1
- package/dist/git-cli/providers/branches.d.ts.map +0 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +0 -1
- package/dist/git-cli/providers/commits.d.ts.map +0 -1
- package/dist/git-cli/providers/config.d.ts.map +0 -1
- package/dist/git-cli/providers/contributors.d.ts.map +0 -1
- package/dist/git-cli/providers/diff.d.ts.map +0 -1
- package/dist/git-cli/providers/graph.d.ts.map +0 -1
- package/dist/git-cli/providers/maintenance.d.ts.map +0 -1
- package/dist/git-cli/providers/operations.d.ts.map +0 -1
- package/dist/git-cli/providers/patch.d.ts.map +0 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git-cli/providers/refs.d.ts.map +0 -1
- package/dist/git-cli/providers/remotes.d.ts.map +0 -1
- package/dist/git-cli/providers/revision.d.ts.map +0 -1
- package/dist/git-cli/providers/staging.d.ts.map +0 -1
- package/dist/git-cli/providers/stash.d.ts.map +0 -1
- package/dist/git-cli/providers/status.d.ts.map +0 -1
- package/dist/git-cli/providers/tags.d.ts.map +0 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +0 -1
- package/dist/git-cli/service.d.ts.map +0 -1
- package/dist/ipc/discovery.d.ts.map +0 -1
- package/dist/ipc/ipcServer.d.ts.map +0 -1
- package/dist/plus/agents/agentCapabilities.d.ts.map +0 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +0 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts.map +0 -1
- package/dist/plus/agents/sanitizePrompt.d.ts.map +0 -1
- package/dist/plus/agents/stateMachine.d.ts.map +0 -1
- package/dist/plus/agents/types.d.ts.map +0 -1
- package/dist/plus/ai/constants.d.ts.map +0 -1
- package/dist/plus/ai/errors.d.ts.map +0 -1
- package/dist/plus/ai/models/conversation.d.ts.map +0 -1
- package/dist/plus/ai/models/model.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.js.map +0 -1
- package/dist/plus/ai/models/provider.d.ts.map +0 -1
- package/dist/plus/ai/models/provider.js.map +0 -1
- package/dist/plus/ai/models/results.d.ts.map +0 -1
- package/dist/plus/ai/models/results.js.map +0 -1
- package/dist/plus/ai/prompts.d.ts.map +0 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.js.map +0 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +0 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts.map +0 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/results.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/config.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.js.map +0 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.js.map +0 -1
- package/dist/plus/git-github/context.d.ts.map +0 -1
- package/dist/plus/git-github/models.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +0 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/models.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +0 -1
- package/dist/plus/integrations/collectionMetadata.d.ts.map +0 -1
- package/dist/plus/integrations/constants.d.ts.map +0 -1
- package/dist/plus/integrations/context.d.ts.map +0 -1
- package/dist/plus/integrations/context.js.map +0 -1
- package/dist/plus/integrations/errors.d.ts.map +0 -1
- package/dist/plus/integrations/index.d.ts.map +0 -1
- package/dist/plus/integrations/integrationService.d.ts.map +0 -1
- package/dist/plus/integrations/lite.d.ts.map +0 -1
- package/dist/plus/integrations/manager.d.ts.map +0 -1
- package/dist/plus/integrations/manager.js.map +0 -1
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/integration.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueCache.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.js.map +0 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.js.map +0 -1
- package/dist/plus/integrations/providerFilters.d.ts.map +0 -1
- package/dist/plus/integrations/providers/accounts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiClients.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.js.map +0 -1
- package/dist/plus/integrations/providers/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jira.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts.map +0 -1
- package/dist/plus/integrations/providers/linear.d.ts.map +0 -1
- package/dist/plus/integrations/providers/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providersApi.d.ts.map +0 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts.map +0 -1
- package/dist/plus/integrations/providers/trello.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/broaden.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.js.map +0 -1
- package/dist/plus/integrations/reads/counts.d.ts.map +0 -1
- package/dist/plus/integrations/reads/cursors.d.ts.map +0 -1
- package/dist/plus/integrations/reads/drains.d.ts.map +0 -1
- package/dist/plus/integrations/reads/filters.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/ordering.d.ts.map +0 -1
- package/dist/plus/integrations/reads/paging.d.ts.map +0 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/sweeps.d.ts.map +0 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts.map +0 -1
- package/dist/plus/integrations/reads/warnings.d.ts.map +0 -1
- package/dist/plus/integrations/results.d.ts.map +0 -1
- package/dist/plus/integrations/telemetry.d.ts.map +0 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +0 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +0 -1
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/base64.d.ts.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/brand.d.ts.map +0 -1
- package/dist/utils/brand.js.map +0 -1
- package/dist/utils/cancellation.d.ts.map +0 -1
- package/dist/utils/charCode.d.ts.map +0 -1
- package/dist/utils/coalescedRun.d.ts.map +0 -1
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/counter.d.ts.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/gate.d.ts.map +0 -1
- package/dist/utils/decorators/log.d.ts.map +0 -1
- package/dist/utils/decorators/memoize.d.ts.map +0 -1
- package/dist/utils/decorators/resolver.d.ts.map +0 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +0 -1
- package/dist/utils/decorators/serializable.d.ts.map +0 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +0 -1
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/disposable.d.ts.map +0 -1
- package/dist/utils/encoding.d.ts.map +0 -1
- package/dist/utils/env/browser/base64.d.ts.map +0 -1
- package/dist/utils/env/browser/crypto.d.ts.map +0 -1
- package/dist/utils/env/browser/fs.d.ts.map +0 -1
- package/dist/utils/env/browser/hex.d.ts.map +0 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +0 -1
- package/dist/utils/env/browser/logScope.d.ts.map +0 -1
- package/dist/utils/env/browser/md5.d.ts.map +0 -1
- package/dist/utils/env/browser/platform.d.ts.map +0 -1
- package/dist/utils/env/node/base64.d.ts.map +0 -1
- package/dist/utils/env/node/crypto.d.ts.map +0 -1
- package/dist/utils/env/node/exec.d.ts.map +0 -1
- package/dist/utils/env/node/fs.d.ts.map +0 -1
- package/dist/utils/env/node/hex.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.js.map +0 -1
- package/dist/utils/env/node/logScope.d.ts.map +0 -1
- package/dist/utils/env/node/platform.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/formatter.d.ts.map +0 -1
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/function.d.ts.map +0 -1
- package/dist/utils/fuzzy.d.ts.map +0 -1
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/hrtime.d.ts.map +0 -1
- package/dist/utils/iterable.d.ts.map +0 -1
- package/dist/utils/keys/chord.d.ts.map +0 -1
- package/dist/utils/keys/keybinding.d.ts.map +0 -1
- package/dist/utils/lazy.d.ts.map +0 -1
- package/dist/utils/loggable.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.scoped.d.ts.map +0 -1
- package/dist/utils/lruMap.d.ts.map +0 -1
- package/dist/utils/markdown.d.ts.map +0 -1
- package/dist/utils/mru.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/paging.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/promise.d.ts.map +0 -1
- package/dist/utils/promiseCache.d.ts.map +0 -1
- package/dist/utils/resourceUsage.d.ts.map +0 -1
- package/dist/utils/resourceUsage.js.map +0 -1
- package/dist/utils/searchTree.d.ts.map +0 -1
- package/dist/utils/stopwatch.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/subscriptionManager.d.ts.map +0 -1
- package/dist/utils/trie.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/uri.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/src/git/cache.ts +0 -1859
- package/src/git/context.ts +0 -301
- package/src/git/errors.ts +0 -1168
- package/src/git/features.ts +0 -98
- package/src/git/gitHealth.ts +0 -522
- package/src/git/models/author.ts +0 -19
- package/src/git/models/autolink.ts +0 -59
- package/src/git/models/blame.ts +0 -46
- package/src/git/models/branch.ts +0 -237
- package/src/git/models/commit.ts +0 -673
- package/src/git/models/contributor.ts +0 -84
- package/src/git/models/defaultBranch.ts +0 -6
- package/src/git/models/diff.ts +0 -74
- package/src/git/models/file.ts +0 -29
- package/src/git/models/fileChange.ts +0 -82
- package/src/git/models/fileStatus.ts +0 -36
- package/src/git/models/graph.ts +0 -444
- package/src/git/models/graphSearch.ts +0 -53
- package/src/git/models/graphSession.ts +0 -102
- package/src/git/models/issue.ts +0 -273
- package/src/git/models/issueOrPullRequest.ts +0 -20
- package/src/git/models/lineRange.ts +0 -7
- package/src/git/models/log.ts +0 -21
- package/src/git/models/mergeConflicts.ts +0 -19
- package/src/git/models/patch.ts +0 -25
- package/src/git/models/pausedOperationStatus.ts +0 -63
- package/src/git/models/pullRequest.ts +0 -357
- package/src/git/models/rebase.ts +0 -60
- package/src/git/models/reference.ts +0 -80
- package/src/git/models/reflog.ts +0 -88
- package/src/git/models/remote.ts +0 -100
- package/src/git/models/remoteProvider.ts +0 -291
- package/src/git/models/remoteResource.ts +0 -87
- package/src/git/models/repository.ts +0 -510
- package/src/git/models/repositoryChangeEvent.ts +0 -30
- package/src/git/models/repositoryIdentities.ts +0 -99
- package/src/git/models/repositoryMetadata.ts +0 -12
- package/src/git/models/resourceDescriptor.ts +0 -28
- package/src/git/models/revision.ts +0 -12
- package/src/git/models/search.ts +0 -138
- package/src/git/models/shortlog.ts +0 -6
- package/src/git/models/signature.ts +0 -45
- package/src/git/models/staging.ts +0 -27
- package/src/git/models/stash.ts +0 -6
- package/src/git/models/status.ts +0 -246
- package/src/git/models/statusFile.ts +0 -131
- package/src/git/models/tag.ts +0 -76
- package/src/git/models/tree.ts +0 -10
- package/src/git/models/user.ts +0 -7
- package/src/git/models/worktree.ts +0 -160
- package/src/git/parsers/diffParser.ts +0 -648
- package/src/git/parsers/rebaseTodoParser.ts +0 -169
- package/src/git/providers/blame.ts +0 -40
- package/src/git/providers/branches.ts +0 -143
- package/src/git/providers/commits.ts +0 -174
- package/src/git/providers/config.ts +0 -167
- package/src/git/providers/contributors.ts +0 -34
- package/src/git/providers/diff.ts +0 -133
- package/src/git/providers/graph.ts +0 -95
- package/src/git/providers/maintenance.ts +0 -224
- package/src/git/providers/operations.ts +0 -164
- package/src/git/providers/patch.ts +0 -31
- package/src/git/providers/pausedOperations.ts +0 -23
- package/src/git/providers/provider.ts +0 -64
- package/src/git/providers/refs.ts +0 -68
- package/src/git/providers/remotes.ts +0 -33
- package/src/git/providers/revision.ts +0 -32
- package/src/git/providers/shared/remotes.ts +0 -95
- package/src/git/providers/staging.ts +0 -36
- package/src/git/providers/stash.ts +0 -51
- package/src/git/providers/status.ts +0 -48
- package/src/git/providers/tags.ts +0 -29
- package/src/git/providers/types.ts +0 -33
- package/src/git/providers/worktrees.ts +0 -37
- package/src/git/remotes/azure-devops.ts +0 -361
- package/src/git/remotes/bitbucket-server.ts +0 -189
- package/src/git/remotes/bitbucket.ts +0 -142
- package/src/git/remotes/custom.ts +0 -162
- package/src/git/remotes/gerrit.ts +0 -186
- package/src/git/remotes/gitea.ts +0 -184
- package/src/git/remotes/github.ts +0 -236
- package/src/git/remotes/gitlab.ts +0 -270
- package/src/git/remotes/google-source.ts +0 -51
- package/src/git/remotes/matcher.ts +0 -215
- package/src/git/repositoryService.ts +0 -180
- package/src/git/run.types.ts +0 -156
- package/src/git/service.ts +0 -369
- package/src/git/utils/autolink.utils.ts +0 -202
- package/src/git/utils/blame.utils.ts +0 -298
- package/src/git/utils/branch.utils.ts +0 -165
- package/src/git/utils/commit.utils.ts +0 -89
- package/src/git/utils/config.utils.ts +0 -8
- package/src/git/utils/conflictResolution.utils.ts +0 -157
- package/src/git/utils/contributor.utils.ts +0 -105
- package/src/git/utils/fetch.utils.ts +0 -48
- package/src/git/utils/fileStatus.utils.ts +0 -62
- package/src/git/utils/graph.utils.ts +0 -46
- package/src/git/utils/issue.utils.ts +0 -187
- package/src/git/utils/issueOrPullRequest.utils.ts +0 -23
- package/src/git/utils/mergeConflicts.utils.ts +0 -21
- package/src/git/utils/pausedOperationStatus.utils.ts +0 -184
- package/src/git/utils/pullRequest.utils.ts +0 -244
- package/src/git/utils/reachability.utils.ts +0 -180
- package/src/git/utils/rebase.utils.ts +0 -128
- package/src/git/utils/reference.utils.ts +0 -267
- package/src/git/utils/remote.utils.ts +0 -146
- package/src/git/utils/repository.utils.ts +0 -18
- package/src/git/utils/resourceDescriptor.utils.ts +0 -26
- package/src/git/utils/revision.utils.ts +0 -149
- package/src/git/utils/search.utils.ts +0 -624
- package/src/git/utils/sorting.ts +0 -329
- package/src/git/utils/sshKey.utils.ts +0 -30
- package/src/git/utils/status.utils.ts +0 -115
- package/src/git/utils/statusFile.utils.ts +0 -182
- package/src/git/utils/tag.utils.ts +0 -17
- package/src/git/utils/tooltip.utils.ts +0 -37
- package/src/git/utils/uriAuthority.ts +0 -34
- package/src/git/utils/user.utils.ts +0 -20
- package/src/git/utils/worktree.utils.ts +0 -21
- package/src/git/watching/changeEvent.ts +0 -95
- package/src/git/watching/classifyChange.ts +0 -104
- package/src/git/watching/gitIgnoreFilter.ts +0 -134
- package/src/git/watching/initWatcher.ts +0 -81
- package/src/git/watching/provider.ts +0 -24
- package/src/git/watching/watchGroup.ts +0 -185
- package/src/git/watching/watchService.ts +0 -430
- package/src/git/watching/watchSession.ts +0 -439
- package/src/git/watching/watcherPatterns.ts +0 -51
- package/src/git-cli/cliGitProvider.ts +0 -461
- package/src/git-cli/exec/exec.errors.ts +0 -1
- package/src/git-cli/exec/exec.ts +0 -11
- package/src/git-cli/exec/exec.types.ts +0 -8
- package/src/git-cli/exec/features.ts +0 -2
- package/src/git-cli/exec/git.ts +0 -1371
- package/src/git-cli/exec/gitQueue.ts +0 -326
- package/src/git-cli/exec/locator.ts +0 -157
- package/src/git-cli/parsers/blameParser.ts +0 -374
- package/src/git-cli/parsers/indexParser.ts +0 -192
- package/src/git-cli/parsers/logParser.ts +0 -1365
- package/src/git-cli/parsers/mergeTreeParser.ts +0 -22
- package/src/git-cli/parsers/refParser.ts +0 -110
- package/src/git-cli/parsers/reflogParser.ts +0 -153
- package/src/git-cli/parsers/remoteParser.ts +0 -95
- package/src/git-cli/parsers/shortlogParser.ts +0 -59
- package/src/git-cli/parsers/signatureParser.ts +0 -162
- package/src/git-cli/parsers/sshSignatureParser.ts +0 -85
- package/src/git-cli/parsers/statusParser.ts +0 -209
- package/src/git-cli/parsers/treeParser.ts +0 -61
- package/src/git-cli/parsers/worktreeParser.ts +0 -111
- package/src/git-cli/providers/blame.ts +0 -598
- package/src/git-cli/providers/branches.ts +0 -1931
- package/src/git-cli/providers/commitFilesetUtils.ts +0 -45
- package/src/git-cli/providers/commits.ts +0 -1856
- package/src/git-cli/providers/config.ts +0 -1025
- package/src/git-cli/providers/contributors.ts +0 -360
- package/src/git-cli/providers/diff.ts +0 -1172
- package/src/git-cli/providers/graph.ts +0 -2237
- package/src/git-cli/providers/maintenance.ts +0 -2599
- package/src/git-cli/providers/operations.ts +0 -1016
- package/src/git-cli/providers/patch.ts +0 -305
- package/src/git-cli/providers/pausedOperations.ts +0 -670
- package/src/git-cli/providers/refs.ts +0 -486
- package/src/git-cli/providers/remotes.ts +0 -115
- package/src/git-cli/providers/revision.ts +0 -383
- package/src/git-cli/providers/staging.ts +0 -210
- package/src/git-cli/providers/stash.ts +0 -577
- package/src/git-cli/providers/status.ts +0 -568
- package/src/git-cli/providers/tags.ts +0 -224
- package/src/git-cli/providers/worktrees.ts +0 -285
- package/src/git-cli/service.ts +0 -82
- package/src/ipc/discovery.ts +0 -186
- package/src/ipc/ipcServer.ts +0 -171
- package/src/plus/agents/agentCapabilities.ts +0 -286
- package/src/plus/agents/providers/claudeCodeTranscript.ts +0 -867
- package/src/plus/agents/providers/gkAgentProvider.ts +0 -4036
- package/src/plus/agents/sanitizePrompt.ts +0 -109
- package/src/plus/agents/stateMachine.ts +0 -197
- package/src/plus/agents/types.ts +0 -500
- package/src/plus/ai/constants.ts +0 -121
- package/src/plus/ai/errors.ts +0 -152
- package/src/plus/ai/models/conversation.ts +0 -35
- package/src/plus/ai/models/model.ts +0 -528
- package/src/plus/ai/models/promptTemplates.ts +0 -171
- package/src/plus/ai/models/provider.ts +0 -125
- package/src/plus/ai/models/results.ts +0 -31
- package/src/plus/ai/prompts.ts +0 -849
- package/src/plus/ai/providers/anthropicProvider.ts +0 -458
- package/src/plus/ai/providers/azureProvider.ts +0 -74
- package/src/plus/ai/providers/context.ts +0 -29
- package/src/plus/ai/providers/deepSeekProvider.ts +0 -46
- package/src/plus/ai/providers/geminiProvider.ts +0 -245
- package/src/plus/ai/providers/gitkrakenProvider.ts +0 -347
- package/src/plus/ai/providers/huggingFaceProvider.ts +0 -64
- package/src/plus/ai/providers/mistralProvider.ts +0 -243
- package/src/plus/ai/providers/ollamaProvider.ts +0 -292
- package/src/plus/ai/providers/openAICompatibleProvider.ts +0 -64
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +0 -654
- package/src/plus/ai/providers/openRouterProvider.ts +0 -101
- package/src/plus/ai/providers/openaiProvider.ts +0 -47
- package/src/plus/ai/providers/responseFormatCache.ts +0 -39
- package/src/plus/ai/providers/xaiProvider.ts +0 -54
- package/src/plus/ai/utils/ai.utils.ts +0 -95
- package/src/plus/ai/utils/results.utils.ts +0 -407
- package/src/plus/ai/utils/truncation.utils.ts +0 -296
- package/src/plus/git-github/api/config.ts +0 -91
- package/src/plus/git-github/api/github.ts +0 -5462
- package/src/plus/git-github/api/github.utils.ts +0 -36
- package/src/plus/git-github/api/issueSearchQuery.ts +0 -273
- package/src/plus/git-github/api/pullRequestSearchQuery.ts +0 -154
- package/src/plus/git-github/api/token.ts +0 -15
- package/src/plus/git-github/api/tokenUtils.ts +0 -15
- package/src/plus/git-github/api/types.ts +0 -197
- package/src/plus/git-github/context.ts +0 -107
- package/src/plus/git-github/models.ts +0 -623
- package/src/plus/git-github/providers/github/blame.ts +0 -225
- package/src/plus/git-github/providers/github/branches.ts +0 -401
- package/src/plus/git-github/providers/github/commits.ts +0 -929
- package/src/plus/git-github/providers/github/config.ts +0 -47
- package/src/plus/git-github/providers/github/contributors.ts +0 -313
- package/src/plus/git-github/providers/github/diff.ts +0 -281
- package/src/plus/git-github/providers/github/graph.ts +0 -635
- package/src/plus/git-github/providers/github/refs.ts +0 -172
- package/src/plus/git-github/providers/github/remotes.ts +0 -44
- package/src/plus/git-github/providers/github/revision.ts +0 -140
- package/src/plus/git-github/providers/github/status.ts +0 -69
- package/src/plus/git-github/providers/github/tags.ts +0 -148
- package/src/plus/git-github/providers/githubGitProvider.ts +0 -168
- package/src/plus/git-github/providers/githubProvider.ts +0 -65
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +0 -292
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +0 -656
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +0 -385
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +0 -148
- package/src/plus/integrations/authentication/manualTokenProvider.ts +0 -79
- package/src/plus/integrations/authentication/models.ts +0 -202
- package/src/plus/integrations/authentication/rejectedTokenTracker.ts +0 -56
- package/src/plus/integrations/collectionMetadata.ts +0 -325
- package/src/plus/integrations/constants.ts +0 -190
- package/src/plus/integrations/context.ts +0 -386
- package/src/plus/integrations/errors.ts +0 -188
- package/src/plus/integrations/index.ts +0 -231
- package/src/plus/integrations/integrationService.ts +0 -2003
- package/src/plus/integrations/lite.ts +0 -233
- package/src/plus/integrations/manager.ts +0 -728
- package/src/plus/integrations/models/gitHostIntegration.ts +0 -1862
- package/src/plus/integrations/models/integration.ts +0 -1005
- package/src/plus/integrations/models/issueCache.ts +0 -29
- package/src/plus/integrations/models/issueReads.ts +0 -152
- package/src/plus/integrations/models/issuesIntegration.ts +0 -248
- package/src/plus/integrations/models/pullRequestReads.ts +0 -18
- package/src/plus/integrations/providerFilters.ts +0 -36
- package/src/plus/integrations/providers/accounts.ts +0 -38
- package/src/plus/integrations/providers/apiClients.ts +0 -69
- package/src/plus/integrations/providers/apiConfig.ts +0 -71
- package/src/plus/integrations/providers/azure/azure.ts +0 -953
- package/src/plus/integrations/providers/azure/models.ts +0 -723
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1355
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +0 -904
- package/src/plus/integrations/providers/bitbucket/models.ts +0 -446
- package/src/plus/integrations/providers/bitbucket-server/models.ts +0 -283
- package/src/plus/integrations/providers/bitbucket-server.ts +0 -445
- package/src/plus/integrations/providers/bitbucket.ts +0 -793
- package/src/plus/integrations/providers/github/github.ts +0 -64
- package/src/plus/integrations/providers/github/github.utils.ts +0 -23
- package/src/plus/integrations/providers/github/models.ts +0 -29
- package/src/plus/integrations/providers/github.ts +0 -940
- package/src/plus/integrations/providers/gitlab/gitlab.ts +0 -1320
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +0 -80
- package/src/plus/integrations/providers/gitlab/models.ts +0 -271
- package/src/plus/integrations/providers/gitlab.ts +0 -841
- package/src/plus/integrations/providers/issueSorts.ts +0 -89
- package/src/plus/integrations/providers/jira.ts +0 -596
- package/src/plus/integrations/providers/jiraIssueByKey.ts +0 -155
- package/src/plus/integrations/providers/linear.ts +0 -484
- package/src/plus/integrations/providers/models.ts +0 -1833
- package/src/plus/integrations/providers/providerErrors.ts +0 -115
- package/src/plus/integrations/providers/providersApi.ts +0 -1881
- package/src/plus/integrations/providers/pullRequestReviews.ts +0 -122
- package/src/plus/integrations/providers/trello.ts +0 -208
- package/src/plus/integrations/providers/utils/providerPaging.ts +0 -212
- package/src/plus/integrations/providers/utils.ts +0 -419
- package/src/plus/integrations/reads/broaden.ts +0 -704
- package/src/plus/integrations/reads/context.ts +0 -99
- package/src/plus/integrations/reads/counts.ts +0 -610
- package/src/plus/integrations/reads/cursors.ts +0 -224
- package/src/plus/integrations/reads/drains.ts +0 -420
- package/src/plus/integrations/reads/filters.ts +0 -614
- package/src/plus/integrations/reads/hierarchy.ts +0 -486
- package/src/plus/integrations/reads/hierarchy.utils.ts +0 -155
- package/src/plus/integrations/reads/issueBatch.ts +0 -197
- package/src/plus/integrations/reads/issueTracker.ts +0 -556
- package/src/plus/integrations/reads/issues.ts +0 -600
- package/src/plus/integrations/reads/ordering.ts +0 -124
- package/src/plus/integrations/reads/paging.ts +0 -379
- package/src/plus/integrations/reads/pullRequests.ts +0 -260
- package/src/plus/integrations/reads/resolveRepository.ts +0 -275
- package/src/plus/integrations/reads/searchIssues.ts +0 -274
- package/src/plus/integrations/reads/searchPullRequests.ts +0 -235
- package/src/plus/integrations/reads/sweeps.ts +0 -266
- package/src/plus/integrations/reads/trackerIssue.ts +0 -105
- package/src/plus/integrations/reads/warnings.ts +0 -535
- package/src/plus/integrations/results.ts +0 -443
- package/src/plus/integrations/telemetry.ts +0 -29
- package/src/plus/integrations/utils/domain.utils.ts +0 -26
- package/src/plus/integrations/utils/integration.utils.ts +0 -215
- package/src/utils/array.ts +0 -194
- package/src/utils/base64.ts +0 -1
- package/src/utils/brand.ts +0 -7
- package/src/utils/cancellation.ts +0 -199
- package/src/utils/charCode.ts +0 -38
- package/src/utils/coalescedRun.ts +0 -45
- package/src/utils/color.ts +0 -817
- package/src/utils/counter.ts +0 -21
- package/src/utils/crypto.ts +0 -1
- package/src/utils/date.ts +0 -474
- package/src/utils/debounce.ts +0 -303
- package/src/utils/decorators/debounce.ts +0 -31
- package/src/utils/decorators/gate.ts +0 -167
- package/src/utils/decorators/log.ts +0 -320
- package/src/utils/decorators/memoize.ts +0 -98
- package/src/utils/decorators/resolver.ts +0 -95
- package/src/utils/decorators/sequentialize.ts +0 -118
- package/src/utils/decorators/serializable.ts +0 -43
- package/src/utils/dedupedAsyncCache.ts +0 -74
- package/src/utils/diff.ts +0 -61
- package/src/utils/disposable.ts +0 -156
- package/src/utils/encoding.ts +0 -8
- package/src/utils/env/browser/base64.ts +0 -50
- package/src/utils/env/browser/crypto.ts +0 -21
- package/src/utils/env/browser/fs.ts +0 -3
- package/src/utils/env/browser/hex.ts +0 -41
- package/src/utils/env/browser/hrtime.ts +0 -14
- package/src/utils/env/browser/logScope.ts +0 -57
- package/src/utils/env/browser/md5.ts +0 -217
- package/src/utils/env/browser/platform.ts +0 -10
- package/src/utils/env/node/base64.ts +0 -19
- package/src/utils/env/node/crypto.ts +0 -17
- package/src/utils/env/node/exec.ts +0 -488
- package/src/utils/env/node/fs.ts +0 -5
- package/src/utils/env/node/hex.ts +0 -11
- package/src/utils/env/node/hrtime.ts +0 -1
- package/src/utils/env/node/logScope.ts +0 -63
- package/src/utils/env/node/platform.ts +0 -5
- package/src/utils/error.ts +0 -18
- package/src/utils/event.ts +0 -230
- package/src/utils/formatter.ts +0 -198
- package/src/utils/fs.ts +0 -1
- package/src/utils/function.ts +0 -141
- package/src/utils/fuzzy.ts +0 -185
- package/src/utils/hash.ts +0 -60
- package/src/utils/hex.ts +0 -1
- package/src/utils/hrtime.ts +0 -8
- package/src/utils/iterable.ts +0 -797
- package/src/utils/keys/chord.ts +0 -184
- package/src/utils/keys/keybinding.ts +0 -116
- package/src/utils/lazy.ts +0 -39
- package/src/utils/loggable.ts +0 -7
- package/src/utils/logger.scoped.ts +0 -237
- package/src/utils/logger.ts +0 -403
- package/src/utils/lruMap.ts +0 -112
- package/src/utils/markdown.ts +0 -115
- package/src/utils/mru.ts +0 -68
- package/src/utils/object.ts +0 -278
- package/src/utils/paging.ts +0 -97
- package/src/utils/path.ts +0 -204
- package/src/utils/platform.ts +0 -1
- package/src/utils/promise.ts +0 -657
- package/src/utils/promiseCache.ts +0 -908
- package/src/utils/resourceUsage.ts +0 -5
- package/src/utils/searchTree.ts +0 -444
- package/src/utils/stopwatch.ts +0 -125
- package/src/utils/string.ts +0 -1003
- package/src/utils/subscriptionManager.ts +0 -40
- package/src/utils/trie.ts +0 -740
- package/src/utils/types.ts +0 -31
- package/src/utils/uri.ts +0 -118
- package/src/utils/validation.ts +0 -38
- package/src/utils/version.ts +0 -128
|
@@ -1,1856 +0,0 @@
|
|
|
1
|
-
import type { Cache } from '../../git/cache.js';
|
|
2
|
-
import type { GitServiceContext } from '../../git/context.js';
|
|
3
|
-
import type { GitBlame } from '../../git/models/blame.js';
|
|
4
|
-
import type { GitStashCommit } from '../../git/models/commit.js';
|
|
5
|
-
import { GitCommit, GitCommitIdentity } from '../../git/models/commit.js';
|
|
6
|
-
import type { GitDiffFilter, ParsedGitDiffHunks } from '../../git/models/diff.js';
|
|
7
|
-
import { GitFileChange } from '../../git/models/fileChange.js';
|
|
8
|
-
import type { GitFileStatus } from '../../git/models/fileStatus.js';
|
|
9
|
-
import type { GitLog } from '../../git/models/log.js';
|
|
10
|
-
import type { GitReflog } from '../../git/models/reflog.js';
|
|
11
|
-
import type { GitRevisionRange } from '../../git/models/revision.js';
|
|
12
|
-
import type { SearchQuery, SearchQueryFilters } from '../../git/models/search.js';
|
|
13
|
-
import type { CommitSignature, SshSignedCommit } from '../../git/models/signature.js';
|
|
14
|
-
import type { GitUser } from '../../git/models/user.js';
|
|
15
|
-
import type {
|
|
16
|
-
GitCommitReachability,
|
|
17
|
-
GitCommitsSubProvider,
|
|
18
|
-
GitLogForPathOptions,
|
|
19
|
-
GitLogOptions,
|
|
20
|
-
GitLogShasOptions,
|
|
21
|
-
GitSearchCommitsOptions,
|
|
22
|
-
IncomingActivityOptions,
|
|
23
|
-
LeftRightCommitCountResult,
|
|
24
|
-
SearchCommitsResult,
|
|
25
|
-
} from '../../git/providers/commits.js';
|
|
26
|
-
import type { DiffRange } from '../../git/providers/types.js';
|
|
27
|
-
import type { GitCommandPriority } from '../../git/run.types.js';
|
|
28
|
-
import { createUncommittedChangesCommit } from '../../git/utils/commit.utils.js';
|
|
29
|
-
import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from '../../git/utils/revision.utils.js';
|
|
30
|
-
import { parseSearchQueryGitCommand } from '../../git/utils/search.utils.js';
|
|
31
|
-
import { compareReachableRefs } from '../../git/utils/sorting.js';
|
|
32
|
-
import { isUserMatch } from '../../git/utils/user.utils.js';
|
|
33
|
-
import { chunk as chunkArray } from '../../utils/array.js';
|
|
34
|
-
import { CancellationError, isCancellationError } from '../../utils/cancellation.js';
|
|
35
|
-
import { debug, trace } from '../../utils/decorators/log.js';
|
|
36
|
-
import { createDisposable } from '../../utils/disposable.js';
|
|
37
|
-
import { filterMap, findLast, first, join, last, some } from '../../utils/iterable.js';
|
|
38
|
-
import { getScopedLogger } from '../../utils/logger.scoped.js';
|
|
39
|
-
import { isFolderGlob, normalizePath, splitPath, stripFolderGlob } from '../../utils/path.js';
|
|
40
|
-
import type { CacheController } from '../../utils/promiseCache.js';
|
|
41
|
-
import { maybeStopWatch } from '../../utils/stopwatch.js';
|
|
42
|
-
import { escapeRegex, iterateByDelimiter } from '../../utils/string.js';
|
|
43
|
-
import type { Uri } from '../../utils/uri.js';
|
|
44
|
-
import { fileUri, joinUriPath, toFsPath } from '../../utils/uri.js';
|
|
45
|
-
import type { CliGitProviderInternal } from '../cliGitProvider.js';
|
|
46
|
-
import type { GitResult, GitRunOptions } from '../exec/exec.types.js';
|
|
47
|
-
import type { Git } from '../exec/git.js';
|
|
48
|
-
import { gitConfigsLog, gitConfigsLogWithFiles, GitErrors } from '../exec/git.js';
|
|
49
|
-
import type {
|
|
50
|
-
CommitsInFileRangeLogParser,
|
|
51
|
-
CommitsLogParser,
|
|
52
|
-
CommitsWithFilesLogParser,
|
|
53
|
-
ParsedCommit,
|
|
54
|
-
} from '../parsers/logParser.js';
|
|
55
|
-
import {
|
|
56
|
-
getCommitsLogParser,
|
|
57
|
-
getShaAndDatesLogParser,
|
|
58
|
-
getShaAndFilesAndStatsLogParser,
|
|
59
|
-
getShaLogParser,
|
|
60
|
-
} from '../parsers/logParser.js';
|
|
61
|
-
import { getReflogParser, parseGitRefLog } from '../parsers/reflogParser.js';
|
|
62
|
-
import { parseSignatureOutput, signatureFormat } from '../parsers/signatureParser.js';
|
|
63
|
-
import {
|
|
64
|
-
extractCommitterFromCommitObject,
|
|
65
|
-
extractSshPublicKeyFromCommitObject,
|
|
66
|
-
} from '../parsers/sshSignatureParser.js';
|
|
67
|
-
import { createCommitFileset } from './commitFilesetUtils.js';
|
|
68
|
-
import { convertStashesToStdin } from './stash.js';
|
|
69
|
-
|
|
70
|
-
const emptyPromise: Promise<GitBlame | ParsedGitDiffHunks | GitLog | undefined> = Promise.resolve(undefined);
|
|
71
|
-
const reflogCommands = ['merge', 'pull'];
|
|
72
|
-
/** Keeps `filterUnpublishedShas` well inside Windows' ~32K command-line cap (40 hex chars + separator each). */
|
|
73
|
-
const maxShasPerRevListSpawn = 500;
|
|
74
|
-
|
|
75
|
-
export class CommitsGitSubProvider implements GitCommitsSubProvider {
|
|
76
|
-
constructor(
|
|
77
|
-
private readonly context: GitServiceContext,
|
|
78
|
-
private readonly git: Git,
|
|
79
|
-
private readonly cache: Cache,
|
|
80
|
-
private readonly provider: CliGitProviderInternal,
|
|
81
|
-
) {}
|
|
82
|
-
|
|
83
|
-
@debug()
|
|
84
|
-
async createUnreachableCommitFromTree(
|
|
85
|
-
repoPath: string,
|
|
86
|
-
tree: string,
|
|
87
|
-
parent: string,
|
|
88
|
-
message: string,
|
|
89
|
-
cancellation?: AbortSignal,
|
|
90
|
-
): Promise<string> {
|
|
91
|
-
const result = await this.git.run(
|
|
92
|
-
{ cwd: repoPath, cancellation: cancellation, errors: 'throw' },
|
|
93
|
-
'commit-tree',
|
|
94
|
-
tree,
|
|
95
|
-
'-p',
|
|
96
|
-
parent,
|
|
97
|
-
'-m',
|
|
98
|
-
message,
|
|
99
|
-
);
|
|
100
|
-
return result.stdout.trim();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@debug()
|
|
104
|
-
async getCommit(repoPath: string, rev: string, cancellation?: AbortSignal): Promise<GitCommit | undefined> {
|
|
105
|
-
if (isUncommitted(rev, true)) {
|
|
106
|
-
return createUncommittedChangesCommit(
|
|
107
|
-
repoPath,
|
|
108
|
-
rev,
|
|
109
|
-
new Date(),
|
|
110
|
-
await this.provider.config.getCurrentUser(repoPath),
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const log = await this.getLogCore(repoPath, rev, { limit: 1 }, cancellation);
|
|
115
|
-
if (log == null) return undefined;
|
|
116
|
-
|
|
117
|
-
return log.commits.get(rev) ?? first(log.commits.values());
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@debug({ exit: true })
|
|
121
|
-
getCommitCount(repoPath: string, rev: string, cancellation?: AbortSignal): Promise<number | undefined> {
|
|
122
|
-
return this.cache.commitCount.getOrCreate(
|
|
123
|
-
repoPath,
|
|
124
|
-
rev,
|
|
125
|
-
async (cacheable, signal) => {
|
|
126
|
-
// Bind the shared spawn to the aggregate `signal` (fires only when ALL current callers
|
|
127
|
-
// abort), not this-caller's `cancellation` — otherwise a superseded caller's abort would
|
|
128
|
-
// kill the shared command and reject concurrent riders that never cancelled.
|
|
129
|
-
const result = await this.git.run(
|
|
130
|
-
{ cwd: repoPath, cancellation: signal ?? cancellation, errors: 'ignore' },
|
|
131
|
-
'rev-list',
|
|
132
|
-
'--count',
|
|
133
|
-
rev,
|
|
134
|
-
'--',
|
|
135
|
-
);
|
|
136
|
-
if (result.completion.status === 'cancelled' || signal?.aborted) {
|
|
137
|
-
throw new CancellationError();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// `errors: 'ignore'` turns a failed run (unknown rev, a transient `index.lock`) into an
|
|
141
|
-
// empty stdout rather than a throw. That's indistinguishable from a real answer here, so
|
|
142
|
-
// don't let it become a cached one — this entry has a sliding hour-long TTL, and repeated
|
|
143
|
-
// access would keep a transient failure alive indefinitely. The pre-cache implementation
|
|
144
|
-
// simply retried on the next call; invalidating restores that.
|
|
145
|
-
//
|
|
146
|
-
// BOTH conditions, not either alone. `exitCode !== 0` catches "git ran and said no" (a bad
|
|
147
|
-
// rev exits 128); `status !== 'exited'` catches "git never answered" — a queue rejection or
|
|
148
|
-
// spawn failure (no exit code at all), or a swallowed `GitWarnings` match, which carries git's
|
|
149
|
-
// real code and so can slip past the exit-code test on its own.
|
|
150
|
-
if (result.completion.status !== 'exited' || result.exitCode !== 0) {
|
|
151
|
-
cacheable.invalidate();
|
|
152
|
-
return undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const data = result.stdout.trim();
|
|
156
|
-
if (!data) return undefined;
|
|
157
|
-
|
|
158
|
-
const count = parseInt(data, 10);
|
|
159
|
-
return isNaN(count) ? undefined : count;
|
|
160
|
-
},
|
|
161
|
-
{ cancellation: cancellation },
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@debug({ exit: true })
|
|
166
|
-
async hasUnpublishedCommits(
|
|
167
|
-
repoPath: string,
|
|
168
|
-
rev: string,
|
|
169
|
-
cancellation?: AbortSignal,
|
|
170
|
-
): Promise<boolean | undefined> {
|
|
171
|
-
// `<rev> --not --remotes` = commits reachable from `rev` but not from any remote-tracking ref.
|
|
172
|
-
// `--max-count=1` early-exits at the first such commit, so this is a presence probe, not a count.
|
|
173
|
-
const result = await this.git.run(
|
|
174
|
-
{ cwd: repoPath, cancellation: cancellation, errors: 'ignore' },
|
|
175
|
-
'rev-list',
|
|
176
|
-
'--max-count=1',
|
|
177
|
-
rev,
|
|
178
|
-
'--not',
|
|
179
|
-
'--remotes',
|
|
180
|
-
'--',
|
|
181
|
-
);
|
|
182
|
-
if (result.completion.status === 'cancelled' || cancellation?.aborted) {
|
|
183
|
-
throw new CancellationError();
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return result.stdout.trim().length > 0;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@debug({
|
|
190
|
-
args: (repoPath, shas) => ({ repoPath: repoPath, shas: `${shas.length} value(s)` }),
|
|
191
|
-
exit: r => `${r.size} unpublished`,
|
|
192
|
-
})
|
|
193
|
-
async filterUnpublishedShas(
|
|
194
|
-
repoPath: string,
|
|
195
|
-
shas: readonly string[],
|
|
196
|
-
options?: { priority?: GitCommandPriority },
|
|
197
|
-
cancellation?: AbortSignal,
|
|
198
|
-
): Promise<Set<string>> {
|
|
199
|
-
const unpublished = new Set<string>();
|
|
200
|
-
if (!shas.length) return unpublished;
|
|
201
|
-
|
|
202
|
-
// One walk answers every sha: `<shas…> --not --remotes` yields the commits reachable from any of them
|
|
203
|
-
// but not from any remote-tracking ref, so a sha is unpublished exactly when it appears in the output.
|
|
204
|
-
// Callers pass tips from sibling worktrees — safe from a single `cwd` because the object store and
|
|
205
|
-
// `refs/remotes` are shared across a repo's worktrees (unlike the index/working tree, which are not).
|
|
206
|
-
//
|
|
207
|
-
// NOT `--no-walk`: it "has no effect if a range is specified", and `--not --remotes` makes this a range,
|
|
208
|
-
// so it would silently walk anyway and return the whole unpublished history instead of just these tips.
|
|
209
|
-
// The walk is bounded by divergence from the remotes, not by repo size; callers skip this entirely when
|
|
210
|
-
// the repo has no remotes (where every local commit would qualify).
|
|
211
|
-
// Chunked so a repo with a very large number of worktrees can't overflow the platform's argument
|
|
212
|
-
// limit (Windows' `CreateProcess` caps the whole command line at ~32K characters).
|
|
213
|
-
// Deliberately NOT `errors: 'ignore'`: this answers for EVERY sha at once, so a swallowed failure
|
|
214
|
-
// would return an empty set the caller can't distinguish from "nothing is unpublished", publishing a
|
|
215
|
-
// confident `hasUnpushed: false` across every worktree in the batch. Letting it throw degrades the
|
|
216
|
-
// caller to "unknown", which omits the field and leaves the client's last-known value in place.
|
|
217
|
-
for (const chunk of chunkArray([...shas], maxShasPerRevListSpawn)) {
|
|
218
|
-
const result = await this.git.run(
|
|
219
|
-
{
|
|
220
|
-
cwd: repoPath,
|
|
221
|
-
cancellation: cancellation,
|
|
222
|
-
...(options?.priority != null ? { priority: options.priority } : undefined),
|
|
223
|
-
},
|
|
224
|
-
'rev-list',
|
|
225
|
-
...chunk,
|
|
226
|
-
'--not',
|
|
227
|
-
'--remotes',
|
|
228
|
-
'--',
|
|
229
|
-
);
|
|
230
|
-
// Anything but a clean exit leaves empty stdout, which this function would otherwise read as
|
|
231
|
-
// "every sha is published" — publishing a definite, wrong `hasUnpushed: false` for the whole
|
|
232
|
-
// batch. Dropping `errors: 'ignore'` was not enough on its own: a stderr matching `GitWarnings`
|
|
233
|
-
// (a repo path that briefly vanished, an unknown rev) is swallowed by the default handler and
|
|
234
|
-
// resolves rather than throwing. Rethrow so the caller degrades to "unknown".
|
|
235
|
-
if (result.completion.status !== 'exited') throw result.completion.error;
|
|
236
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
237
|
-
|
|
238
|
-
const candidates = new Set(chunk);
|
|
239
|
-
for (const line of iterateByDelimiter(result.stdout, '\n')) {
|
|
240
|
-
const sha = line.trim();
|
|
241
|
-
// The walk emits ancestors too; keep only the tips we were asked about.
|
|
242
|
-
if (sha.length && candidates.has(sha)) {
|
|
243
|
-
unpublished.add(sha);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
return unpublished;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
@debug({ exit: true })
|
|
252
|
-
async getCommitDates(
|
|
253
|
-
repoPath: string,
|
|
254
|
-
rev: string,
|
|
255
|
-
cancellation?: AbortSignal,
|
|
256
|
-
): Promise<{ authorDate: Date; committerDate: Date } | undefined> {
|
|
257
|
-
const parser = getShaAndDatesLogParser();
|
|
258
|
-
const result = await this.git.run(
|
|
259
|
-
{
|
|
260
|
-
cwd: repoPath,
|
|
261
|
-
cancellation: cancellation,
|
|
262
|
-
errors: 'ignore',
|
|
263
|
-
// Why: full SHAs identify immutable commits (5-min TTL is safe). Non-SHA refs rely on
|
|
264
|
-
// gitResults being cleared on 'head'/'heads'/'remotes' events; the 60s TTL is the
|
|
265
|
-
// failsafe for watcher latency / web (no fs watcher).
|
|
266
|
-
caching: {
|
|
267
|
-
cache: this.cache.gitResults,
|
|
268
|
-
options: { accessTTL: isSha(rev) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
'log',
|
|
272
|
-
'-1',
|
|
273
|
-
...parser.arguments,
|
|
274
|
-
rev,
|
|
275
|
-
);
|
|
276
|
-
if (result.completion.status === 'cancelled' || cancellation?.aborted) return undefined;
|
|
277
|
-
|
|
278
|
-
for (const entry of parser.parse(result.stdout)) {
|
|
279
|
-
const authorSeconds = Number(entry.authorDate);
|
|
280
|
-
const committerSeconds = Number(entry.committerDate);
|
|
281
|
-
if (!Number.isFinite(authorSeconds) || !Number.isFinite(committerSeconds)) return undefined;
|
|
282
|
-
return {
|
|
283
|
-
authorDate: new Date(authorSeconds * 1000),
|
|
284
|
-
committerDate: new Date(committerSeconds * 1000),
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
return undefined;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
@debug()
|
|
291
|
-
async getCommitFiles(repoPath: string, rev: string, cancellation?: AbortSignal): Promise<GitFileChange[]> {
|
|
292
|
-
const parser = getShaAndFilesAndStatsLogParser();
|
|
293
|
-
const result = await this.git.run(
|
|
294
|
-
{ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog },
|
|
295
|
-
'log',
|
|
296
|
-
...parser.arguments,
|
|
297
|
-
'-n1',
|
|
298
|
-
rev && !isUncommittedStaged(rev) ? rev : undefined,
|
|
299
|
-
'--',
|
|
300
|
-
);
|
|
301
|
-
|
|
302
|
-
const repoUri = fileUri(normalizePath(repoPath));
|
|
303
|
-
const files = first(parser.parse(result.stdout))?.files.map(
|
|
304
|
-
f =>
|
|
305
|
-
new GitFileChange(
|
|
306
|
-
repoPath,
|
|
307
|
-
f.path,
|
|
308
|
-
f.status as GitFileStatus,
|
|
309
|
-
joinUriPath(repoUri, normalizePath(f.path)),
|
|
310
|
-
f.originalPath,
|
|
311
|
-
f.originalPath != null ? joinUriPath(repoUri, normalizePath(f.originalPath)) : undefined,
|
|
312
|
-
undefined,
|
|
313
|
-
{ additions: f.additions, deletions: f.deletions, changes: 0 },
|
|
314
|
-
undefined,
|
|
315
|
-
undefined,
|
|
316
|
-
f.mode,
|
|
317
|
-
f.oid ? { oid: f.oid, previousOid: f.previousOid } : undefined,
|
|
318
|
-
),
|
|
319
|
-
);
|
|
320
|
-
|
|
321
|
-
return files ?? [];
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
@debug()
|
|
325
|
-
async getCommitForFile(
|
|
326
|
-
repoPath: string,
|
|
327
|
-
pathOrUri: string | Uri,
|
|
328
|
-
rev?: string | undefined,
|
|
329
|
-
options?: { firstIfNotFound?: boolean },
|
|
330
|
-
cancellation?: AbortSignal,
|
|
331
|
-
): Promise<GitCommit | undefined> {
|
|
332
|
-
const scope = getScopedLogger();
|
|
333
|
-
|
|
334
|
-
const [relativePath, root] = splitPath(toFsPath(pathOrUri), repoPath);
|
|
335
|
-
|
|
336
|
-
try {
|
|
337
|
-
const log = await this.getLogForPath(root, relativePath, rev, { limit: 1 }, cancellation);
|
|
338
|
-
if (log == null) return undefined;
|
|
339
|
-
|
|
340
|
-
let commit;
|
|
341
|
-
if (rev) {
|
|
342
|
-
commit = log.commits.get(rev);
|
|
343
|
-
if (commit == null && !options?.firstIfNotFound) {
|
|
344
|
-
// If the ref isn't a valid sha we will never find it, so let it fall through so we return the first
|
|
345
|
-
if (isSha(rev) || isUncommitted(rev)) return undefined;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
return commit ?? first(log.commits.values());
|
|
350
|
-
} catch (ex) {
|
|
351
|
-
scope?.error(ex);
|
|
352
|
-
if (isCancellationError(ex)) throw ex;
|
|
353
|
-
|
|
354
|
-
return undefined;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
@debug()
|
|
359
|
-
getCommitReachability(
|
|
360
|
-
repoPath: string,
|
|
361
|
-
rev: string,
|
|
362
|
-
cancellation?: AbortSignal,
|
|
363
|
-
): Promise<GitCommitReachability | undefined> {
|
|
364
|
-
if (repoPath == null || isUncommitted(rev)) return Promise.resolve(undefined);
|
|
365
|
-
|
|
366
|
-
const scope = getScopedLogger();
|
|
367
|
-
|
|
368
|
-
const getCore = async (cacheable?: CacheController) => {
|
|
369
|
-
try {
|
|
370
|
-
// Use for-each-ref with %(HEAD) to mark current branch with *
|
|
371
|
-
const result = await this.git.run(
|
|
372
|
-
{ cwd: repoPath, cancellation: cancellation, errors: 'ignore' },
|
|
373
|
-
'for-each-ref',
|
|
374
|
-
'--contains',
|
|
375
|
-
rev,
|
|
376
|
-
'--format=%(HEAD)%(refname)',
|
|
377
|
-
'--sort=-version:refname',
|
|
378
|
-
'--sort=-committerdate',
|
|
379
|
-
'--sort=-HEAD',
|
|
380
|
-
'refs/heads/',
|
|
381
|
-
'refs/remotes/',
|
|
382
|
-
'refs/tags/',
|
|
383
|
-
);
|
|
384
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
385
|
-
|
|
386
|
-
const refs: GitCommitReachability['refs'] = [];
|
|
387
|
-
|
|
388
|
-
// Parse branches from refs/heads/ and refs/remotes/
|
|
389
|
-
if (result?.stdout) {
|
|
390
|
-
const lines = result.stdout.split('\n');
|
|
391
|
-
|
|
392
|
-
for (let line of lines) {
|
|
393
|
-
line = line.trim();
|
|
394
|
-
if (!line) continue;
|
|
395
|
-
|
|
396
|
-
// %(HEAD) outputs '*' for current branch, ' ' for others
|
|
397
|
-
const isCurrent = line.startsWith('*');
|
|
398
|
-
const refname = isCurrent ? line.substring(1) : line; // Skip the HEAD marker
|
|
399
|
-
|
|
400
|
-
// Skip HEADs
|
|
401
|
-
if (refname.endsWith('/HEAD')) continue;
|
|
402
|
-
|
|
403
|
-
if (refname.startsWith('refs/heads/')) {
|
|
404
|
-
// Remove 'refs/heads/'
|
|
405
|
-
const name = refname.substring(11);
|
|
406
|
-
refs.push({
|
|
407
|
-
refType: 'branch',
|
|
408
|
-
name: name,
|
|
409
|
-
remote: false,
|
|
410
|
-
current: isCurrent,
|
|
411
|
-
});
|
|
412
|
-
} else if (refname.startsWith('refs/remotes/')) {
|
|
413
|
-
// Remove 'refs/remotes/'
|
|
414
|
-
refs.push({ refType: 'branch', name: refname.substring(13), remote: true });
|
|
415
|
-
} else if (refname.startsWith('refs/tags/')) {
|
|
416
|
-
// Remove 'refs/tags/'
|
|
417
|
-
refs.push({ refType: 'tag', name: refname.substring(10) });
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// git already returns sorted by -HEAD, -committerdate, -version:refname;
|
|
423
|
-
// compareReachableRefs refines by current-first / local-before-remote / tag-version.
|
|
424
|
-
refs.sort(compareReachableRefs);
|
|
425
|
-
|
|
426
|
-
return { refs: refs };
|
|
427
|
-
} catch (ex) {
|
|
428
|
-
cacheable?.invalidate();
|
|
429
|
-
if (isCancellationError(ex)) throw ex;
|
|
430
|
-
|
|
431
|
-
debugger;
|
|
432
|
-
scope?.error(ex);
|
|
433
|
-
|
|
434
|
-
return undefined;
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
return this.cache.reachability.getOrCreate(repoPath, rev, getCore);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
@debug()
|
|
442
|
-
async getIncomingActivity(
|
|
443
|
-
repoPath: string,
|
|
444
|
-
options?: IncomingActivityOptions,
|
|
445
|
-
cancellation?: AbortSignal,
|
|
446
|
-
): Promise<GitReflog | undefined> {
|
|
447
|
-
const scope = getScopedLogger();
|
|
448
|
-
|
|
449
|
-
const cfg = this.context.config;
|
|
450
|
-
const parser = getReflogParser();
|
|
451
|
-
const args = ['--walk-reflogs', ...parser.arguments, '--date=iso8601'];
|
|
452
|
-
|
|
453
|
-
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
454
|
-
if (ordering) {
|
|
455
|
-
args.push(`--${ordering}-order`);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
if (options?.all) {
|
|
459
|
-
args.push('--all');
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
// Pass a much larger limit to reflog, because we aggregate the data and we won't know how many lines we'll need
|
|
463
|
-
const limit = (options?.limit ?? cfg?.commits.maxItems ?? 0) * 100;
|
|
464
|
-
if (limit) {
|
|
465
|
-
args.push(`-n${limit}`);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
if (options?.skip) {
|
|
469
|
-
args.push(`--skip=${options.skip}`);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
try {
|
|
473
|
-
const result = await this.git.run(
|
|
474
|
-
{ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog, priority: 'background' },
|
|
475
|
-
'log',
|
|
476
|
-
...args,
|
|
477
|
-
);
|
|
478
|
-
|
|
479
|
-
const reflog = parseGitRefLog(parser, result.stdout, repoPath, reflogCommands, limit, limit * 100);
|
|
480
|
-
if (reflog?.hasMore) {
|
|
481
|
-
reflog.more = this.getReflogMoreFn(reflog, options);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
return reflog;
|
|
485
|
-
} catch (ex) {
|
|
486
|
-
scope?.error(ex);
|
|
487
|
-
if (isCancellationError(ex)) throw ex;
|
|
488
|
-
|
|
489
|
-
return undefined;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
private getReflogMoreFn(
|
|
494
|
-
reflog: GitReflog,
|
|
495
|
-
options?: IncomingActivityOptions,
|
|
496
|
-
): (limit: number) => Promise<GitReflog> {
|
|
497
|
-
return async (limit: number | undefined) => {
|
|
498
|
-
limit = limit ?? 0;
|
|
499
|
-
|
|
500
|
-
const moreLog = await this.getIncomingActivity(reflog.repoPath, {
|
|
501
|
-
...options,
|
|
502
|
-
limit: limit,
|
|
503
|
-
skip: reflog.total,
|
|
504
|
-
});
|
|
505
|
-
if (moreLog == null) {
|
|
506
|
-
// If we can't find any more, assume we have everything
|
|
507
|
-
return { ...reflog, hasMore: false, more: undefined };
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
const mergedLog: GitReflog = {
|
|
511
|
-
repoPath: reflog.repoPath,
|
|
512
|
-
records: [...reflog.records, ...moreLog.records],
|
|
513
|
-
count: reflog.count + moreLog.count,
|
|
514
|
-
total: reflog.total + moreLog.total,
|
|
515
|
-
limit: (reflog.limit ?? 0) + limit,
|
|
516
|
-
hasMore: moreLog.hasMore,
|
|
517
|
-
};
|
|
518
|
-
if (mergedLog.hasMore) {
|
|
519
|
-
mergedLog.more = this.getReflogMoreFn(mergedLog, options);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
return mergedLog;
|
|
523
|
-
};
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
@debug({ exit: true })
|
|
527
|
-
getInitialCommitSha(repoPath: string, cancellation?: AbortSignal): Promise<string | undefined> {
|
|
528
|
-
// Initial commit SHA is shared across all worktrees
|
|
529
|
-
return this.cache.getInitialCommitSha(repoPath, async commonPath => {
|
|
530
|
-
try {
|
|
531
|
-
const result = await this.git.run(
|
|
532
|
-
{ cwd: commonPath, cancellation: cancellation, errors: 'ignore' },
|
|
533
|
-
'rev-list',
|
|
534
|
-
`--max-parents=0`,
|
|
535
|
-
'HEAD',
|
|
536
|
-
'--',
|
|
537
|
-
);
|
|
538
|
-
if (result.completion.status === 'cancelled' || cancellation?.aborted) {
|
|
539
|
-
throw new CancellationError();
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
return result.stdout.trim().split('\n')?.[0];
|
|
543
|
-
} catch (ex) {
|
|
544
|
-
if (isCancellationError(ex)) throw ex;
|
|
545
|
-
|
|
546
|
-
return undefined;
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
@debug()
|
|
552
|
-
async getLeftRightCommitCount(
|
|
553
|
-
repoPath: string,
|
|
554
|
-
range: GitRevisionRange,
|
|
555
|
-
options?: { authors?: GitUser[]; excludeMerges?: boolean },
|
|
556
|
-
cancellation?: AbortSignal,
|
|
557
|
-
): Promise<LeftRightCommitCountResult | undefined> {
|
|
558
|
-
const authors = options?.authors?.length
|
|
559
|
-
? options.authors.map(a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`)
|
|
560
|
-
: [];
|
|
561
|
-
|
|
562
|
-
const run = async (): Promise<LeftRightCommitCountResult | undefined> => {
|
|
563
|
-
const result = await this.git.run(
|
|
564
|
-
{ cwd: repoPath, cancellation: cancellation, errors: 'ignore' },
|
|
565
|
-
'rev-list',
|
|
566
|
-
'--left-right',
|
|
567
|
-
'--count',
|
|
568
|
-
...authors,
|
|
569
|
-
options?.excludeMerges ? '--no-merges' : undefined,
|
|
570
|
-
range,
|
|
571
|
-
'--',
|
|
572
|
-
);
|
|
573
|
-
if (result.completion.status === 'cancelled' || cancellation?.aborted) {
|
|
574
|
-
throw new CancellationError();
|
|
575
|
-
}
|
|
576
|
-
if (!result.stdout) return undefined;
|
|
577
|
-
|
|
578
|
-
const parts = result.stdout.split('\t');
|
|
579
|
-
if (parts.length !== 2) return undefined;
|
|
580
|
-
|
|
581
|
-
const [left, right] = parts;
|
|
582
|
-
const counts = {
|
|
583
|
-
left: parseInt(left, 10),
|
|
584
|
-
right: parseInt(right, 10),
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
if (isNaN(counts.left) || isNaN(counts.right)) return undefined;
|
|
588
|
-
|
|
589
|
-
return counts;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
// Author-filtered calls are one-off (e.g. "who made these commits") with low re-hit
|
|
593
|
-
// rate; skip the cache to protect its capacity for the hot no-author merge-target path.
|
|
594
|
-
if (authors.length > 0) return run();
|
|
595
|
-
|
|
596
|
-
// Cache key: range + excludeMerges. RepositoryChange events affecting branches/remotes
|
|
597
|
-
// invalidate this cache via clearCaches('branches').
|
|
598
|
-
const cacheKey = `${range}\x1f${options?.excludeMerges ? 'no-merges' : ''}`;
|
|
599
|
-
return this.cache.leftRightCommitCount.getOrCreate(repoPath, cacheKey, run);
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
@debug()
|
|
603
|
-
async getLog(
|
|
604
|
-
repoPath: string,
|
|
605
|
-
rev?: string | undefined,
|
|
606
|
-
options?: GitLogOptions,
|
|
607
|
-
cancellation?: AbortSignal,
|
|
608
|
-
): Promise<GitLog | undefined> {
|
|
609
|
-
return this.getLogCore(repoPath, rev, options, cancellation);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
@trace({ args: (repoPath, rev) => ({ repoPath: repoPath, rev: rev }), exit: true })
|
|
613
|
-
private async getLogCore(
|
|
614
|
-
repoPath: string,
|
|
615
|
-
rev?: string | undefined,
|
|
616
|
-
options?: GitLogOptions & {
|
|
617
|
-
path?: { pathspec: string; filters?: GitDiffFilter[]; range?: DiffRange; renames?: boolean };
|
|
618
|
-
},
|
|
619
|
-
cancellation?: AbortSignal,
|
|
620
|
-
additionalArgs?: string[],
|
|
621
|
-
): Promise<GitLog | undefined> {
|
|
622
|
-
const scope = getScopedLogger();
|
|
623
|
-
|
|
624
|
-
try {
|
|
625
|
-
const currentUserPromise = this.provider.config.getCurrentUser(repoPath);
|
|
626
|
-
|
|
627
|
-
const cfg = this.context.config;
|
|
628
|
-
const limit = options?.limit ?? cfg?.commits.maxItems ?? 0;
|
|
629
|
-
const isSingleCommit = limit === 1;
|
|
630
|
-
|
|
631
|
-
const cfgIncludeFiles = options?.includeFiles ?? cfg?.commits.includeFileDetails ?? true;
|
|
632
|
-
const includeFiles = cfgIncludeFiles || isSingleCommit || Boolean(options?.path?.pathspec);
|
|
633
|
-
|
|
634
|
-
const parser = getCommitsLogParser(includeFiles, Boolean(options?.path?.pathspec && options?.path?.range));
|
|
635
|
-
const args = ['log', ...parser.arguments];
|
|
636
|
-
|
|
637
|
-
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
638
|
-
args.push(`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`, '--use-mailmap');
|
|
639
|
-
|
|
640
|
-
if (options?.all) {
|
|
641
|
-
args.push('--all');
|
|
642
|
-
if (options?.path?.pathspec) {
|
|
643
|
-
args.push('--single-worktree');
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
const merges = options?.merges ?? true;
|
|
648
|
-
if (merges) {
|
|
649
|
-
// If we are are asking for a specific ref, ensure we return the merge commit files
|
|
650
|
-
if (isSingleCommit) {
|
|
651
|
-
args.push('-m');
|
|
652
|
-
}
|
|
653
|
-
args.push(merges === 'first-parent' ? '--first-parent' : '--no-min-parents');
|
|
654
|
-
} else {
|
|
655
|
-
args.push('--no-merges');
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
659
|
-
if (ordering) {
|
|
660
|
-
args.push(`--${ordering}-order`);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
if (options?.authors?.length) {
|
|
664
|
-
args.push(
|
|
665
|
-
...options.authors.map(
|
|
666
|
-
a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`,
|
|
667
|
-
),
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
let overrideHasMore;
|
|
672
|
-
|
|
673
|
-
if (options?.since) {
|
|
674
|
-
overrideHasMore = true;
|
|
675
|
-
args.push(`--since="${options.since}"`);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
if (options?.until) {
|
|
679
|
-
overrideHasMore = true;
|
|
680
|
-
args.push(`--until="${options.until}"`);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
if (additionalArgs?.length) {
|
|
684
|
-
args.push(...additionalArgs);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
if (limit > 0) {
|
|
688
|
-
overrideHasMore = isSingleCommit ? false : undefined;
|
|
689
|
-
// Add 1 to the limit so we can check if there are more commits
|
|
690
|
-
args.push(`-n${isSingleCommit ? 1 : limit + 1}`);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
let stashes: ReadonlyMap<string, GitStashCommit> | undefined;
|
|
694
|
-
|
|
695
|
-
if (!isSingleCommit && options?.stashes) {
|
|
696
|
-
stashes =
|
|
697
|
-
typeof options.stashes === 'boolean'
|
|
698
|
-
? (await this.provider.stash?.getStash(repoPath, { reachableFrom: rev }, cancellation))?.stashes
|
|
699
|
-
: options.stashes;
|
|
700
|
-
if (stashes?.size) {
|
|
701
|
-
rev ??= 'HEAD';
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
if (rev && !isUncommittedStaged(rev)) {
|
|
706
|
-
args.push(rev);
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
let pathspec: string | undefined;
|
|
710
|
-
let pathspecRange: `${number},${number}` | undefined;
|
|
711
|
-
|
|
712
|
-
if (options?.path?.pathspec) {
|
|
713
|
-
pathspec = options.path.pathspec;
|
|
714
|
-
const { filters, range, renames } = options.path;
|
|
715
|
-
|
|
716
|
-
if (filters?.length) {
|
|
717
|
-
args.push(`--diff-filter=${filters.join('')}`);
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
if (range != null) {
|
|
721
|
-
// Git doesn't allow rename detection (`--follow`) if a range is used
|
|
722
|
-
|
|
723
|
-
const [start, end] = getGitStartEnd(range);
|
|
724
|
-
pathspecRange = `${start},${end}`;
|
|
725
|
-
args.push(`-L ${pathspecRange}:${pathspec}`, '--');
|
|
726
|
-
} else {
|
|
727
|
-
if (renames !== false) {
|
|
728
|
-
args.push('--follow');
|
|
729
|
-
}
|
|
730
|
-
args.push('--', pathspec);
|
|
731
|
-
}
|
|
732
|
-
} else {
|
|
733
|
-
args.push('--');
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
const currentUser = await currentUserPromise.catch(() => undefined);
|
|
737
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
738
|
-
|
|
739
|
-
const cmdOpts: GitRunOptions = {
|
|
740
|
-
cwd: repoPath,
|
|
741
|
-
cancellation: cancellation,
|
|
742
|
-
configs: gitConfigsLogWithFiles,
|
|
743
|
-
// Single-commit log serves user-initiated reads (commit details, hover, etc.).
|
|
744
|
-
// Mirrors getCommitDates: full SHAs are immutable so a 5-min TTL is safe; non-SHA refs
|
|
745
|
-
// rely on gitResults being cleared on head/heads/remotes events (60s is the failsafe
|
|
746
|
-
// for watcher latency / web with no fs watcher).
|
|
747
|
-
...(isSingleCommit && rev
|
|
748
|
-
? {
|
|
749
|
-
caching: {
|
|
750
|
-
cache: this.cache.gitResults,
|
|
751
|
-
options: { accessTTL: isSha(rev) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
752
|
-
},
|
|
753
|
-
}
|
|
754
|
-
: undefined),
|
|
755
|
-
};
|
|
756
|
-
let { commits, count } = await parseCommits(
|
|
757
|
-
parser,
|
|
758
|
-
isSingleCommit ? this.git.run(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args),
|
|
759
|
-
repoPath,
|
|
760
|
-
pathspec,
|
|
761
|
-
limit,
|
|
762
|
-
undefined,
|
|
763
|
-
currentUser,
|
|
764
|
-
);
|
|
765
|
-
|
|
766
|
-
// If we didn't find any history from the working tree, check to see if the file was renamed
|
|
767
|
-
if (rev == null && pathspec && !commits.size) {
|
|
768
|
-
const status = await this.provider.status?.getStatusForFile?.(
|
|
769
|
-
repoPath,
|
|
770
|
-
pathspec,
|
|
771
|
-
undefined,
|
|
772
|
-
cancellation,
|
|
773
|
-
);
|
|
774
|
-
if (status?.originalPath != null) {
|
|
775
|
-
pathspec = status.originalPath;
|
|
776
|
-
|
|
777
|
-
if (pathspecRange) {
|
|
778
|
-
const index = args.findIndex(a => a.startsWith('-L '));
|
|
779
|
-
args.splice(index, 1, `-L ${pathspecRange}:${pathspec}`);
|
|
780
|
-
} else {
|
|
781
|
-
args.splice(args.length - 1, 1, pathspec);
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
({ commits, count } = await parseCommits(
|
|
785
|
-
parser,
|
|
786
|
-
isSingleCommit ? this.git.run(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args),
|
|
787
|
-
repoPath,
|
|
788
|
-
pathspec,
|
|
789
|
-
limit,
|
|
790
|
-
undefined,
|
|
791
|
-
currentUser,
|
|
792
|
-
));
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
// Merge stashes in-memory rather than via `git log --stdin <stash>` — git would
|
|
797
|
-
// walk each stash's parent chains and pull in pre-rebase ancestors that aren't
|
|
798
|
-
// reachable from <rev>. Slot each stash directly above its first parent; stashes
|
|
799
|
-
// whose parent isn't in the result (rebased away, or below the current limit) are
|
|
800
|
-
// dropped — the Stashes view still surfaces them, and they reappear here if the
|
|
801
|
-
// parent loads via "Load more".
|
|
802
|
-
if (stashes?.size) {
|
|
803
|
-
// `stashes` arrives in `git stash list` order (newest @{0} first), so per-parent
|
|
804
|
-
// groups naturally land newest-first without an explicit sort
|
|
805
|
-
const stashesByParent = new Map<string, GitStashCommit[]>();
|
|
806
|
-
for (const stash of stashes.values()) {
|
|
807
|
-
const parentSha = stash.parents[0];
|
|
808
|
-
if (parentSha == null || !commits.has(parentSha)) continue;
|
|
809
|
-
|
|
810
|
-
const group = stashesByParent.get(parentSha);
|
|
811
|
-
if (group != null) {
|
|
812
|
-
group.push(stash);
|
|
813
|
-
} else {
|
|
814
|
-
stashesByParent.set(parentSha, [stash]);
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
if (stashesByParent.size) {
|
|
819
|
-
const cap = limit > 0 ? limit + 1 : Number.POSITIVE_INFINITY;
|
|
820
|
-
const merged = new Map<string, GitCommit>();
|
|
821
|
-
outer: for (const c of commits.values()) {
|
|
822
|
-
const group = stashesByParent.get(c.sha);
|
|
823
|
-
if (group != null) {
|
|
824
|
-
for (const s of group) {
|
|
825
|
-
if (merged.size >= cap) break outer;
|
|
826
|
-
|
|
827
|
-
merged.set(s.sha, s);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
if (merged.size >= cap) break;
|
|
831
|
-
|
|
832
|
-
merged.set(c.sha, c);
|
|
833
|
-
}
|
|
834
|
-
commits = merged;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
const log: GitLog = {
|
|
839
|
-
repoPath: repoPath,
|
|
840
|
-
commits: commits,
|
|
841
|
-
sha: isRevisionRange(rev) ? undefined : rev,
|
|
842
|
-
count: commits.size,
|
|
843
|
-
limit: limit,
|
|
844
|
-
hasMore: overrideHasMore ?? (limit > 0 && count > limit),
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
if (!isSingleCommit) {
|
|
848
|
-
log.query = (limit: number | undefined) =>
|
|
849
|
-
this.getLogCore(repoPath, rev, { ...options, limit: limit }, undefined, additionalArgs);
|
|
850
|
-
if (log.hasMore) {
|
|
851
|
-
log.more = this.getLogCoreMoreFn(log, rev, options);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
return log;
|
|
856
|
-
} catch (ex) {
|
|
857
|
-
if (isCancellationError(ex)) throw ex;
|
|
858
|
-
|
|
859
|
-
// Check if this is a "bad object" error due to a submodule's internal SHA
|
|
860
|
-
const pathspec = options?.path?.pathspec;
|
|
861
|
-
if (rev && pathspec && ex instanceof Error && GitErrors.badObject.test(ex.message)) {
|
|
862
|
-
const tree = await this.provider.revision.getTreeEntryForRevision(repoPath, pathspec, 'HEAD');
|
|
863
|
-
if (tree?.type === 'commit') {
|
|
864
|
-
// It's a submodule - retry without the rev and without rename tracking
|
|
865
|
-
return this.getLogCore(
|
|
866
|
-
repoPath,
|
|
867
|
-
undefined,
|
|
868
|
-
{ ...options, path: { ...options.path, pathspec: pathspec, renames: false } },
|
|
869
|
-
cancellation,
|
|
870
|
-
additionalArgs,
|
|
871
|
-
);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
scope?.error(ex);
|
|
876
|
-
debugger;
|
|
877
|
-
|
|
878
|
-
return undefined;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
private getLogCoreMoreFn(
|
|
883
|
-
log: GitLog,
|
|
884
|
-
rev: string | undefined,
|
|
885
|
-
options?: GitLogOptions & {
|
|
886
|
-
path?: { pathspec: string; filters?: GitDiffFilter[]; range?: DiffRange; renames?: boolean };
|
|
887
|
-
},
|
|
888
|
-
): (limit: number | { until: string } | undefined) => Promise<GitLog> {
|
|
889
|
-
return async (limit: number | { until: string } | undefined) => {
|
|
890
|
-
const moreUntil = limit != null && typeof limit === 'object' ? limit.until : undefined;
|
|
891
|
-
let moreLimit = typeof limit === 'number' ? limit : undefined;
|
|
892
|
-
|
|
893
|
-
if (moreUntil && some(log.commits.values(), c => c.ref === moreUntil)) {
|
|
894
|
-
return log;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
moreLimit = moreLimit ?? 0;
|
|
898
|
-
|
|
899
|
-
// If the log is for a range, then just get everything prior + more
|
|
900
|
-
if (isRevisionRange(log.sha)) {
|
|
901
|
-
const moreLog = await this.getLogCore(log.repoPath, rev, {
|
|
902
|
-
...options,
|
|
903
|
-
limit: moreLimit === 0 ? 0 : (options?.limit ?? 0) + moreLimit,
|
|
904
|
-
});
|
|
905
|
-
// If we can't find any more, assume we have everything
|
|
906
|
-
if (moreLog == null) return { ...log, hasMore: false, more: undefined };
|
|
907
|
-
|
|
908
|
-
return moreLog;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
// Stashes are not part of the normal commit history, so we need to find the last non-stash commit for the cursor
|
|
912
|
-
const lastCommit = findLast(log.commits.values(), c => !GitCommit.isStash(c)) ?? last(log.commits.values());
|
|
913
|
-
const sha = lastCommit?.ref;
|
|
914
|
-
|
|
915
|
-
// Check to make sure the filename hasn't changed and if it has use the previous
|
|
916
|
-
const lastCommitFile = lastCommit?.anyFiles?.[0];
|
|
917
|
-
if (options?.path?.pathspec && lastCommitFile != null) {
|
|
918
|
-
const path = lastCommitFile.originalPath ?? lastCommitFile.path;
|
|
919
|
-
if (path !== options.path.pathspec) {
|
|
920
|
-
options = { ...options, path: { ...options.path, pathspec: path } };
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
// If we were asked for all refs, use the last commit timestamp (plus a second) as a cursor
|
|
925
|
-
let timestamp: number | undefined;
|
|
926
|
-
if (options?.all) {
|
|
927
|
-
const date = lastCommit?.committer.date;
|
|
928
|
-
// Git only allows 1-second precision, so round up to the nearest second
|
|
929
|
-
timestamp = date != null ? Math.ceil(date.getTime() / 1000) + 1 : undefined;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
let moreLogCount;
|
|
933
|
-
let queryLimit = moreUntil == null ? moreLimit : 0;
|
|
934
|
-
do {
|
|
935
|
-
const moreLog = await this.getLogCore(
|
|
936
|
-
log.repoPath,
|
|
937
|
-
timestamp ? rev : moreUntil == null ? `${sha}^` : `${moreUntil}^..${sha}^`,
|
|
938
|
-
{
|
|
939
|
-
...options,
|
|
940
|
-
limit: queryLimit,
|
|
941
|
-
...(timestamp ? { until: timestamp } : undefined),
|
|
942
|
-
},
|
|
943
|
-
undefined,
|
|
944
|
-
timestamp ? ['--boundary'] : undefined,
|
|
945
|
-
);
|
|
946
|
-
// If we can't find any more, assume we have everything
|
|
947
|
-
if (moreLog == null) return { ...log, hasMore: false, more: undefined };
|
|
948
|
-
|
|
949
|
-
const currentCount = log.commits.size;
|
|
950
|
-
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
951
|
-
|
|
952
|
-
if (currentCount === commits.size && queryLimit !== 0) {
|
|
953
|
-
// If we didn't find any new commits, we must have them all so return that we have everything
|
|
954
|
-
if (moreLogCount === moreLog.commits.size) {
|
|
955
|
-
return { ...log, hasMore: false, more: undefined };
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
moreLogCount = moreLog.commits.size;
|
|
959
|
-
queryLimit = queryLimit * 2;
|
|
960
|
-
continue;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
if (timestamp != null && sha != null && !moreLog.commits.has(sha)) {
|
|
964
|
-
debugger;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
const mergedLog: GitLog = {
|
|
968
|
-
repoPath: log.repoPath,
|
|
969
|
-
commits: commits,
|
|
970
|
-
sha: log.sha,
|
|
971
|
-
count: commits.size,
|
|
972
|
-
limit: moreUntil == null ? (log.limit ?? 0) + moreLimit : undefined,
|
|
973
|
-
hasMore: moreUntil == null ? moreLog.hasMore : true,
|
|
974
|
-
// The oldest commit SHA of the previous page — the graph webview compares this
|
|
975
|
-
// against its last displayed row to determine the merge point for appending new rows
|
|
976
|
-
startingCursor: sha,
|
|
977
|
-
endingCursor: moreLog.endingCursor,
|
|
978
|
-
pagedCommits: () => {
|
|
979
|
-
// Remove any duplicates
|
|
980
|
-
for (const sha of log.commits.keys()) {
|
|
981
|
-
moreLog.commits.delete(sha);
|
|
982
|
-
}
|
|
983
|
-
return moreLog.commits;
|
|
984
|
-
},
|
|
985
|
-
// oxlint-disable-next-line no-loop-func
|
|
986
|
-
query: (limit: number | undefined) =>
|
|
987
|
-
this.getLogCore(log.repoPath, rev, { ...options, limit: limit }),
|
|
988
|
-
};
|
|
989
|
-
if (mergedLog.hasMore) {
|
|
990
|
-
mergedLog.more = this.getLogCoreMoreFn(mergedLog, rev, options);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
return mergedLog;
|
|
994
|
-
} while (true);
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
@debug()
|
|
999
|
-
async getLogForPath(
|
|
1000
|
-
repoPath: string | undefined,
|
|
1001
|
-
pathOrUri: string | Uri,
|
|
1002
|
-
rev?: string | undefined,
|
|
1003
|
-
options?: GitLogForPathOptions,
|
|
1004
|
-
cancellation?: AbortSignal,
|
|
1005
|
-
): Promise<GitLog | undefined> {
|
|
1006
|
-
if (repoPath == null) return undefined;
|
|
1007
|
-
|
|
1008
|
-
const scope = getScopedLogger();
|
|
1009
|
-
|
|
1010
|
-
let relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
1011
|
-
|
|
1012
|
-
if (repoPath != null && repoPath === relativePath) {
|
|
1013
|
-
throw new Error(`Path cannot match the repository path; path=${relativePath}`);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
const cfg = this.context.config;
|
|
1017
|
-
options = {
|
|
1018
|
-
...options,
|
|
1019
|
-
all: options?.all ?? cfg?.fileHistory?.showAllBranches,
|
|
1020
|
-
limit: options?.limit ?? cfg?.commits.maxItems ?? 0,
|
|
1021
|
-
merges: options?.merges ?? cfg?.fileHistory?.showMergeCommits,
|
|
1022
|
-
ordering: options?.ordering ?? cfg?.commits.ordering ?? undefined,
|
|
1023
|
-
renames: options?.renames ?? cfg?.fileHistory?.followRenames,
|
|
1024
|
-
similarityThreshold: options?.similarityThreshold ?? cfg?.commits.similarityThreshold,
|
|
1025
|
-
};
|
|
1026
|
-
|
|
1027
|
-
if (isFolderGlob(relativePath)) {
|
|
1028
|
-
relativePath = stripFolderGlob(relativePath);
|
|
1029
|
-
options.isFolder = true;
|
|
1030
|
-
} else if (options.isFolder == null) {
|
|
1031
|
-
const tree = await this.provider.revision.getTreeEntryForRevision(repoPath, relativePath, rev || 'HEAD');
|
|
1032
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1033
|
-
|
|
1034
|
-
if (tree?.type === 'commit') {
|
|
1035
|
-
// It's a submodule — line ranges and rename tracking don't apply, and the rev may reference
|
|
1036
|
-
// the submodule's internal SHA which isn't valid in the parent repo
|
|
1037
|
-
options.range = undefined;
|
|
1038
|
-
options.renames = false;
|
|
1039
|
-
// rev = undefined;
|
|
1040
|
-
} else {
|
|
1041
|
-
options.isFolder = tree?.type === 'tree';
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
// Build cache key — only for non-folder, non-filtered queries
|
|
1046
|
-
let cacheKey: string | undefined;
|
|
1047
|
-
if (
|
|
1048
|
-
!options.isFolder &&
|
|
1049
|
-
options.authors == null &&
|
|
1050
|
-
options.cursor == null &&
|
|
1051
|
-
options.filters == null &&
|
|
1052
|
-
options.range == null &&
|
|
1053
|
-
options.since == null &&
|
|
1054
|
-
options.until == null
|
|
1055
|
-
) {
|
|
1056
|
-
let suffix = 'log';
|
|
1057
|
-
if (rev != null) {
|
|
1058
|
-
suffix += `:${rev}`;
|
|
1059
|
-
}
|
|
1060
|
-
if (options.all) {
|
|
1061
|
-
suffix += ':all';
|
|
1062
|
-
}
|
|
1063
|
-
if (options.limit) {
|
|
1064
|
-
suffix += `:n${options.limit}`;
|
|
1065
|
-
}
|
|
1066
|
-
if (options.merges) {
|
|
1067
|
-
suffix += `:merges=${options.merges}`;
|
|
1068
|
-
}
|
|
1069
|
-
if (options.ordering) {
|
|
1070
|
-
suffix += `:ordering=${options.ordering}`;
|
|
1071
|
-
}
|
|
1072
|
-
if (options.renames) {
|
|
1073
|
-
suffix += ':follow';
|
|
1074
|
-
}
|
|
1075
|
-
cacheKey = `${normalizePath(relativePath)}:${suffix}`;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
if (cacheKey != null) {
|
|
1079
|
-
// Check for exact cache hit
|
|
1080
|
-
const cached = this.cache.fileLog.get(repoPath, cacheKey);
|
|
1081
|
-
if (cached != null) {
|
|
1082
|
-
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
1083
|
-
return cached;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
// Subset optimization: if requesting partial log, check if whole-file log is cached
|
|
1087
|
-
if (rev != null || (options.limit != null && options.limit !== 0)) {
|
|
1088
|
-
const baseKey = `${normalizePath(relativePath)}:log${options.renames ? ':follow' : ''}`;
|
|
1089
|
-
const baseLog = this.cache.fileLog.get(repoPath, baseKey);
|
|
1090
|
-
if (baseLog != null) {
|
|
1091
|
-
if (rev == null) {
|
|
1092
|
-
scope?.trace(`Cache hit: ~'${cacheKey}'`);
|
|
1093
|
-
return baseLog;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
scope?.trace(`Cache ?: '${cacheKey}'`);
|
|
1097
|
-
const log = await baseLog;
|
|
1098
|
-
if (log != null && !log.hasMore && log.commits.has(rev)) {
|
|
1099
|
-
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
1100
|
-
|
|
1101
|
-
// Create a copy of the log starting at the requested commit
|
|
1102
|
-
let skip = true;
|
|
1103
|
-
let i = 0;
|
|
1104
|
-
const limit = options.limit;
|
|
1105
|
-
const commits = new Map(
|
|
1106
|
-
filterMap<[string, GitCommit], [string, GitCommit]>(log.commits.entries(), ([sha, c]) => {
|
|
1107
|
-
if (skip) {
|
|
1108
|
-
if (sha !== rev) return undefined;
|
|
1109
|
-
|
|
1110
|
-
skip = false;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
i++;
|
|
1114
|
-
if (limit != null && i > limit) {
|
|
1115
|
-
return undefined;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
return [sha, c];
|
|
1119
|
-
}),
|
|
1120
|
-
);
|
|
1121
|
-
|
|
1122
|
-
const optsCopy = { ...options };
|
|
1123
|
-
return {
|
|
1124
|
-
...log,
|
|
1125
|
-
limit: optsCopy.limit,
|
|
1126
|
-
count: commits.size,
|
|
1127
|
-
commits: commits,
|
|
1128
|
-
query: (limit: number | undefined) =>
|
|
1129
|
-
this.getLogForPath(repoPath, pathOrUri, rev, {
|
|
1130
|
-
...optsCopy,
|
|
1131
|
-
limit: limit,
|
|
1132
|
-
}),
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
scope?.trace(`Cache miss: '${cacheKey}'`);
|
|
1139
|
-
|
|
1140
|
-
return this.cache.fileLog.getOrCreate(
|
|
1141
|
-
repoPath,
|
|
1142
|
-
cacheKey,
|
|
1143
|
-
(_cacheable, signal) => this.getLogForPathCore(repoPath, relativePath, rev, options, signal),
|
|
1144
|
-
{ cancellation: cancellation },
|
|
1145
|
-
);
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
return this.getLogForPathCore(repoPath, relativePath, rev, options, cancellation);
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
private async getLogForPathCore(
|
|
1152
|
-
repoPath: string,
|
|
1153
|
-
path: string,
|
|
1154
|
-
rev: string | undefined,
|
|
1155
|
-
options: GitLogForPathOptions,
|
|
1156
|
-
cancellation?: AbortSignal,
|
|
1157
|
-
): Promise<GitLog | undefined> {
|
|
1158
|
-
const scope = getScopedLogger();
|
|
1159
|
-
|
|
1160
|
-
const tracked = await this.provider.isTrackedWithDetails(path, repoPath, rev);
|
|
1161
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1162
|
-
|
|
1163
|
-
if (tracked == null) {
|
|
1164
|
-
scope?.debug(`Skipping log; '${path}' is not tracked`);
|
|
1165
|
-
return emptyPromise as Promise<GitLog>;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
const relativePath = tracked.path;
|
|
1169
|
-
const root = repoPath;
|
|
1170
|
-
|
|
1171
|
-
const log = await this.getLogCore(
|
|
1172
|
-
root,
|
|
1173
|
-
rev,
|
|
1174
|
-
{
|
|
1175
|
-
all: options.all,
|
|
1176
|
-
authors: options.authors,
|
|
1177
|
-
cursor: options.cursor,
|
|
1178
|
-
limit: options.limit,
|
|
1179
|
-
merges: options.merges,
|
|
1180
|
-
ordering: options.ordering,
|
|
1181
|
-
since: options.since,
|
|
1182
|
-
until: options.until,
|
|
1183
|
-
path: {
|
|
1184
|
-
pathspec: relativePath,
|
|
1185
|
-
filters: options.filters,
|
|
1186
|
-
range: options.range,
|
|
1187
|
-
renames: options.renames,
|
|
1188
|
-
},
|
|
1189
|
-
},
|
|
1190
|
-
cancellation,
|
|
1191
|
-
);
|
|
1192
|
-
|
|
1193
|
-
return log;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
@debug()
|
|
1197
|
-
async getLogShas(
|
|
1198
|
-
repoPath: string,
|
|
1199
|
-
rev?: string | undefined,
|
|
1200
|
-
options?: GitLogShasOptions,
|
|
1201
|
-
cancellation?: AbortSignal,
|
|
1202
|
-
): Promise<Iterable<string>> {
|
|
1203
|
-
const scope = getScopedLogger();
|
|
1204
|
-
|
|
1205
|
-
const cfg = this.context.config;
|
|
1206
|
-
options ??= {};
|
|
1207
|
-
options.limit ??= cfg?.commits.maxItems ?? 0;
|
|
1208
|
-
options.ordering ??= cfg?.commits.ordering ?? undefined;
|
|
1209
|
-
options.similarityThreshold ??= cfg?.commits.similarityThreshold;
|
|
1210
|
-
options.merges ??= true;
|
|
1211
|
-
|
|
1212
|
-
const getCore = async (): Promise<string[]> => {
|
|
1213
|
-
try {
|
|
1214
|
-
const parser = getShaLogParser();
|
|
1215
|
-
const args = [...parser.arguments];
|
|
1216
|
-
|
|
1217
|
-
if (options.all) {
|
|
1218
|
-
args.push(`--all`);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
if (options.ordering) {
|
|
1222
|
-
args.push(`--${options.ordering}-order`);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
if (options.limit) {
|
|
1226
|
-
args.push(`-n${options.limit}`);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
if (options.since) {
|
|
1230
|
-
args.push(`--since="${options.since}"`);
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
if (options.merges) {
|
|
1234
|
-
args.push(options.merges === 'first-parent' ? '--first-parent' : '--no-min-parents');
|
|
1235
|
-
} else {
|
|
1236
|
-
args.push('--no-merges');
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
if (options.reverse) {
|
|
1240
|
-
args.push('--reverse');
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
if (options.authors?.length) {
|
|
1244
|
-
if (!args.includes('--use-mailmap')) {
|
|
1245
|
-
args.push('--use-mailmap');
|
|
1246
|
-
}
|
|
1247
|
-
args.push(
|
|
1248
|
-
...options.authors.map(
|
|
1249
|
-
a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`,
|
|
1250
|
-
),
|
|
1251
|
-
);
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
const pathspec =
|
|
1255
|
-
options.pathOrUri != null ? this.provider.getRelativePath(options.pathOrUri, repoPath) : undefined;
|
|
1256
|
-
if (pathspec) {
|
|
1257
|
-
const similarityThreshold = options.similarityThreshold;
|
|
1258
|
-
args.push(`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
if (rev && !isUncommittedStaged(rev)) {
|
|
1262
|
-
args.push(rev);
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
args.push('--');
|
|
1266
|
-
|
|
1267
|
-
if (pathspec) {
|
|
1268
|
-
args.push(pathspec);
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
const result = await this.git.run(
|
|
1272
|
-
{ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog },
|
|
1273
|
-
'log',
|
|
1274
|
-
...args,
|
|
1275
|
-
);
|
|
1276
|
-
return [...parser.parse(result.stdout)];
|
|
1277
|
-
} catch (ex) {
|
|
1278
|
-
scope?.error(ex);
|
|
1279
|
-
if (isCancellationError(ex)) throw ex;
|
|
1280
|
-
|
|
1281
|
-
debugger;
|
|
1282
|
-
|
|
1283
|
-
return [];
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
|
-
// Cache simple queries (no pathspec, no authors) as these are on hot paths (e.g. getting unpublished commits)
|
|
1288
|
-
const cacheable = !options.pathOrUri && !options.authors?.length && !options.reverse && !options.all;
|
|
1289
|
-
|
|
1290
|
-
if (cacheable) {
|
|
1291
|
-
return this.cache.logShas.getOrCreate(
|
|
1292
|
-
repoPath,
|
|
1293
|
-
`${rev ?? ''}:${options.ordering ?? ''}:${options.limit}:${options.merges}:${options.since ?? ''}`,
|
|
1294
|
-
() => getCore(),
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
return getCore();
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
@debug()
|
|
1302
|
-
async getOldestUnpushedShaForPath(
|
|
1303
|
-
repoPath: string,
|
|
1304
|
-
pathOrUri: string | Uri,
|
|
1305
|
-
cancellation?: AbortSignal,
|
|
1306
|
-
): Promise<string | undefined> {
|
|
1307
|
-
const scope = getScopedLogger();
|
|
1308
|
-
|
|
1309
|
-
try {
|
|
1310
|
-
const relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
1311
|
-
|
|
1312
|
-
const parser = getShaLogParser();
|
|
1313
|
-
|
|
1314
|
-
const result = await this.git.run(
|
|
1315
|
-
{ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog },
|
|
1316
|
-
'log',
|
|
1317
|
-
...parser.arguments,
|
|
1318
|
-
'--follow',
|
|
1319
|
-
'--reverse',
|
|
1320
|
-
'@{u}..',
|
|
1321
|
-
'--',
|
|
1322
|
-
relativePath,
|
|
1323
|
-
);
|
|
1324
|
-
return first(parser.parse(result.stdout));
|
|
1325
|
-
} catch (ex) {
|
|
1326
|
-
scope?.error(ex);
|
|
1327
|
-
if (isCancellationError(ex)) throw ex;
|
|
1328
|
-
|
|
1329
|
-
debugger;
|
|
1330
|
-
|
|
1331
|
-
return undefined;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
@debug()
|
|
1336
|
-
async hasCommitBeenPushed(repoPath: string, rev: string, cancellation?: AbortSignal): Promise<boolean> {
|
|
1337
|
-
if (repoPath == null) return false;
|
|
1338
|
-
|
|
1339
|
-
return this.isAncestorOf(repoPath, rev, '@{u}', cancellation);
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
@debug()
|
|
1343
|
-
async isAncestorOf(repoPath: string, rev1: string, rev2: string, cancellation?: AbortSignal): Promise<boolean> {
|
|
1344
|
-
if (repoPath == null) return false;
|
|
1345
|
-
|
|
1346
|
-
const result = await this.git.run(
|
|
1347
|
-
{ cwd: repoPath, cancellation: cancellation, errors: 'ignore' },
|
|
1348
|
-
'merge-base',
|
|
1349
|
-
'--is-ancestor',
|
|
1350
|
-
rev1,
|
|
1351
|
-
rev2,
|
|
1352
|
-
);
|
|
1353
|
-
// A cancelled check has no answer. `completion` now keeps that distinct from a real "is an ancestor"
|
|
1354
|
-
// result — the missing `exitCode` alone already makes the check below `false` — but callers branch on
|
|
1355
|
-
// `isCancellationError`, so this still has to throw rather than quietly answer "no".
|
|
1356
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1357
|
-
return result.exitCode === 0;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
@debug({
|
|
1361
|
-
args: (repoPath, s) => ({
|
|
1362
|
-
repoPath: repoPath,
|
|
1363
|
-
search: `[${s.matchAll ? 'A' : ''}${s.matchCase ? 'C' : ''}${s.matchRegex ? 'R' : ''}${
|
|
1364
|
-
s.matchWholeWord ? 'W' : ''
|
|
1365
|
-
}]: ${s.query.length > 500 ? `${s.query.substring(0, 500)}...` : s.query}`,
|
|
1366
|
-
}),
|
|
1367
|
-
})
|
|
1368
|
-
async searchCommits(
|
|
1369
|
-
repoPath: string,
|
|
1370
|
-
search: SearchQuery,
|
|
1371
|
-
options?: GitSearchCommitsOptions,
|
|
1372
|
-
cancellation?: AbortSignal,
|
|
1373
|
-
): Promise<SearchCommitsResult> {
|
|
1374
|
-
const scope = getScopedLogger();
|
|
1375
|
-
|
|
1376
|
-
search = { matchAll: false, matchCase: false, matchRegex: true, matchWholeWord: false, ...search };
|
|
1377
|
-
|
|
1378
|
-
// Pre-process natural language search queries via the host-provided hook
|
|
1379
|
-
if (
|
|
1380
|
-
search.naturalLanguage &&
|
|
1381
|
-
(typeof search.naturalLanguage !== 'object' || !search.naturalLanguage.processedQuery)
|
|
1382
|
-
) {
|
|
1383
|
-
search = (await this.context.searchQuery?.preprocessQuery?.(search, options?.source)) ?? search;
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
// The conversion failed — `search.query` is still the raw English sentence, not a query; running
|
|
1387
|
-
// it as an ERE would produce a regex error about text the user never wrote.
|
|
1388
|
-
if (typeof search.naturalLanguage === 'object' && search.naturalLanguage.error) {
|
|
1389
|
-
return { search: search, log: undefined };
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
try {
|
|
1393
|
-
const cfg = this.context.config;
|
|
1394
|
-
const currentUser = await this.provider.config.getCurrentUser(repoPath);
|
|
1395
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1396
|
-
|
|
1397
|
-
const parser = getCommitsLogParser(true);
|
|
1398
|
-
|
|
1399
|
-
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
1400
|
-
const args = [
|
|
1401
|
-
'log',
|
|
1402
|
-
...parser.arguments,
|
|
1403
|
-
`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`,
|
|
1404
|
-
'--use-mailmap',
|
|
1405
|
-
];
|
|
1406
|
-
|
|
1407
|
-
const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser);
|
|
1408
|
-
// Stash commits have 2-3 parents, so `--merges` matches them; excluded in parseCommits.
|
|
1409
|
-
// Derived from the args git actually runs rather than `filters.type`, since a multi-value
|
|
1410
|
-
// `type:` query (e.g. `type:merge type:tip`) leaves `--merges` in the args while
|
|
1411
|
-
// `filters.type` reflects only the last value parsed
|
|
1412
|
-
const mergesOnly = searchArgs.includes('--merges');
|
|
1413
|
-
|
|
1414
|
-
let stashes: Map<string, GitStashCommit> | undefined;
|
|
1415
|
-
let stdin: string | undefined;
|
|
1416
|
-
|
|
1417
|
-
let resolvedShas: Set<string> | undefined;
|
|
1418
|
-
if (shas?.size) {
|
|
1419
|
-
resolvedShas = await this.provider.revision.resolveShas(repoPath, shas, cancellation);
|
|
1420
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1421
|
-
// Short SHA(s) matched no commit: return empty (empty stdin to `--no-walk --stdin`
|
|
1422
|
-
// would return HEAD, so we must not fall through to git).
|
|
1423
|
-
if (!resolvedShas.size) {
|
|
1424
|
-
return {
|
|
1425
|
-
search: search,
|
|
1426
|
-
log: {
|
|
1427
|
-
repoPath: repoPath,
|
|
1428
|
-
commits: new Map(),
|
|
1429
|
-
sha: undefined,
|
|
1430
|
-
searchFilters: filters,
|
|
1431
|
-
count: 0,
|
|
1432
|
-
limit: options?.limit ?? cfg?.search?.maxItems ?? 0,
|
|
1433
|
-
hasMore: false,
|
|
1434
|
-
},
|
|
1435
|
-
};
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
if (resolvedShas?.size) {
|
|
1440
|
-
stdin = join(resolvedShas, '\n');
|
|
1441
|
-
args.push('--no-walk');
|
|
1442
|
-
} else if (!filters.refs) {
|
|
1443
|
-
// Don't include stashes when using ref: filter, as they would add unrelated commits
|
|
1444
|
-
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
1445
|
-
const converted = convertStashesToStdin(
|
|
1446
|
-
await this.provider.stash?.getStash(repoPath, undefined, cancellation),
|
|
1447
|
-
);
|
|
1448
|
-
stashes = converted.stashes;
|
|
1449
|
-
// `--all` already surfaces refs/stash's tip on its own, so when merges-only there's no need
|
|
1450
|
-
// to walk the rest of the stash stack via stdin -- parseCommits still excludes any stash
|
|
1451
|
-
// sha that slips through via refs/stash
|
|
1452
|
-
stdin = mergesOnly ? undefined : converted.stdin;
|
|
1453
|
-
} else if (mergesOnly) {
|
|
1454
|
-
// `ref:` skips walking stashes into the results (they're unrelated to the ref), but a
|
|
1455
|
-
// stash's tip can still leak in via `--merges` if the ref reaches refs/stash -- fetch
|
|
1456
|
-
// stashes here purely so parseCommits can exclude them, without widening the walk via
|
|
1457
|
-
// stdin
|
|
1458
|
-
stashes = convertStashesToStdin(
|
|
1459
|
-
await this.provider.stash?.getStash(repoPath, undefined, cancellation),
|
|
1460
|
-
).stashes;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
if (stdin) {
|
|
1464
|
-
args.push('--stdin');
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
const limit = options?.limit ?? cfg?.search?.maxItems ?? 0;
|
|
1468
|
-
if (limit && !shas?.size) {
|
|
1469
|
-
args.push(`-n${limit + 1}`);
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
1473
|
-
if (ordering) {
|
|
1474
|
-
args.push(`--${ordering}-order`);
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
if (options?.skip) {
|
|
1478
|
-
args.push(`--skip=${options.skip}`);
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
// Add the search args, but skip any shas (as they are already included in the stdin)
|
|
1482
|
-
for (const arg of searchArgs) {
|
|
1483
|
-
if (shas?.has(arg) || args.includes(arg)) continue;
|
|
1484
|
-
|
|
1485
|
-
args.push(arg);
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
const pathspec = files?.join(' ');
|
|
1489
|
-
const { commits, count, countStashChildCommits } = await parseCommits(
|
|
1490
|
-
parser,
|
|
1491
|
-
this.git.stream(
|
|
1492
|
-
{
|
|
1493
|
-
cwd: repoPath,
|
|
1494
|
-
cancellation: cancellation,
|
|
1495
|
-
configs: ['-C', repoPath, ...gitConfigsLog],
|
|
1496
|
-
stdin: stdin,
|
|
1497
|
-
},
|
|
1498
|
-
...args,
|
|
1499
|
-
'--',
|
|
1500
|
-
...files,
|
|
1501
|
-
),
|
|
1502
|
-
repoPath,
|
|
1503
|
-
pathspec,
|
|
1504
|
-
limit,
|
|
1505
|
-
stashes,
|
|
1506
|
-
currentUser,
|
|
1507
|
-
filters,
|
|
1508
|
-
mergesOnly,
|
|
1509
|
-
);
|
|
1510
|
-
|
|
1511
|
-
const log: GitLog = {
|
|
1512
|
-
repoPath: repoPath,
|
|
1513
|
-
commits: commits,
|
|
1514
|
-
sha: undefined,
|
|
1515
|
-
searchFilters: filters,
|
|
1516
|
-
count: commits.size,
|
|
1517
|
-
limit: limit,
|
|
1518
|
-
hasMore: count - countStashChildCommits > commits.size,
|
|
1519
|
-
query: (limit: number | undefined) =>
|
|
1520
|
-
this.searchCommits(repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
1521
|
-
};
|
|
1522
|
-
|
|
1523
|
-
if (log.hasMore) {
|
|
1524
|
-
const searchCommitsCore = (log: GitLog): ((limit: number | undefined) => Promise<GitLog>) => {
|
|
1525
|
-
return async (limit: number | undefined) => {
|
|
1526
|
-
limit = limit ?? 0;
|
|
1527
|
-
|
|
1528
|
-
const moreLog = (
|
|
1529
|
-
await this.searchCommits(log.repoPath, search, {
|
|
1530
|
-
...options,
|
|
1531
|
-
limit: limit,
|
|
1532
|
-
skip: log.count,
|
|
1533
|
-
})
|
|
1534
|
-
).log;
|
|
1535
|
-
// If we can't find any more, assume we have everything
|
|
1536
|
-
if (moreLog == null) return { ...log, hasMore: false, more: undefined };
|
|
1537
|
-
|
|
1538
|
-
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
1539
|
-
|
|
1540
|
-
const mergedLog: GitLog = {
|
|
1541
|
-
repoPath: log.repoPath,
|
|
1542
|
-
commits: commits,
|
|
1543
|
-
sha: log.sha,
|
|
1544
|
-
searchFilters: filters,
|
|
1545
|
-
count: commits.size,
|
|
1546
|
-
limit: (log.limit ?? 0) + limit,
|
|
1547
|
-
hasMore: moreLog.hasMore,
|
|
1548
|
-
query: (limit: number | undefined) =>
|
|
1549
|
-
this.searchCommits(log.repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
1550
|
-
};
|
|
1551
|
-
if (mergedLog.hasMore) {
|
|
1552
|
-
mergedLog.more = searchCommitsCore(mergedLog);
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
return mergedLog;
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
|
|
1559
|
-
log.more = searchCommitsCore(log);
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
return { search: search, log: log };
|
|
1563
|
-
} catch (ex) {
|
|
1564
|
-
scope?.error(ex);
|
|
1565
|
-
if (isCancellationError(ex)) throw ex;
|
|
1566
|
-
|
|
1567
|
-
return { search: search, log: undefined };
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
@debug()
|
|
1572
|
-
async getCommitSignature(repoPath: string, sha: string): Promise<CommitSignature | undefined> {
|
|
1573
|
-
const scope = getScopedLogger();
|
|
1574
|
-
|
|
1575
|
-
try {
|
|
1576
|
-
const result = await this.git.run(
|
|
1577
|
-
{
|
|
1578
|
-
cwd: repoPath,
|
|
1579
|
-
errors: 'ignore',
|
|
1580
|
-
caching: {
|
|
1581
|
-
cache: this.cache.gitResults,
|
|
1582
|
-
options: { accessTTL: isSha(sha) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
1583
|
-
},
|
|
1584
|
-
configs: gitConfigsLog,
|
|
1585
|
-
},
|
|
1586
|
-
'log',
|
|
1587
|
-
`--format=${signatureFormat}`,
|
|
1588
|
-
'-1',
|
|
1589
|
-
sha,
|
|
1590
|
-
);
|
|
1591
|
-
|
|
1592
|
-
if (!result.stdout) return undefined;
|
|
1593
|
-
|
|
1594
|
-
return parseSignatureOutput(result.stdout);
|
|
1595
|
-
} catch (ex) {
|
|
1596
|
-
scope?.error(ex);
|
|
1597
|
-
return undefined;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
@debug()
|
|
1602
|
-
async isCommitSigned(repoPath: string, sha: string): Promise<boolean> {
|
|
1603
|
-
const scope = getScopedLogger();
|
|
1604
|
-
|
|
1605
|
-
try {
|
|
1606
|
-
const result = await this.git.run(
|
|
1607
|
-
{
|
|
1608
|
-
cwd: repoPath,
|
|
1609
|
-
errors: 'ignore',
|
|
1610
|
-
caching: {
|
|
1611
|
-
cache: this.cache.gitResults,
|
|
1612
|
-
options: { accessTTL: isSha(sha) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
1613
|
-
},
|
|
1614
|
-
},
|
|
1615
|
-
'cat-file',
|
|
1616
|
-
'commit',
|
|
1617
|
-
sha,
|
|
1618
|
-
);
|
|
1619
|
-
return /^gpgsig(-sha256)? /m.test(result.stdout);
|
|
1620
|
-
} catch (ex) {
|
|
1621
|
-
scope?.error(ex);
|
|
1622
|
-
return false;
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
@debug()
|
|
1627
|
-
async getCommitsSshSigners(repoPath: string, shas: string[]): Promise<Map<string, SshSignedCommit>> {
|
|
1628
|
-
const scope = getScopedLogger();
|
|
1629
|
-
|
|
1630
|
-
const result = new Map<string, SshSignedCommit>();
|
|
1631
|
-
if (shas.length === 0) return result;
|
|
1632
|
-
|
|
1633
|
-
try {
|
|
1634
|
-
// Read every commit object in a single `cat-file --batch` process (the SHAs are piped to stdin) rather than
|
|
1635
|
-
// spawning one `git` per commit — the embedded SSH signature and committer identity are then parsed from
|
|
1636
|
-
// each raw object, avoiding a separate (and far heavier) `git log` pass to enumerate identities.
|
|
1637
|
-
const data = await this.git.run<Buffer>(
|
|
1638
|
-
{ cwd: repoPath, errors: 'ignore', stdin: `${shas.join('\n')}\n`, encoding: 'buffer' },
|
|
1639
|
-
'cat-file',
|
|
1640
|
-
'--batch',
|
|
1641
|
-
);
|
|
1642
|
-
parseCatFileBatchForSshSigners(data.stdout, new Set(shas), result);
|
|
1643
|
-
} catch (ex) {
|
|
1644
|
-
scope?.error(ex);
|
|
1645
|
-
}
|
|
1646
|
-
return result;
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
/**
|
|
1651
|
-
* Parses `git cat-file --batch` output, extracting the embedded SSH public key (if any) from each requested commit
|
|
1652
|
-
* object. Each record is `<sha> <type> <size>` LF `<content>` LF (or `<sha> missing` LF), and the object's bytes are
|
|
1653
|
-
* consumed using the header's `<size>` rather than scanned line-by-line — so a commit/tag body line that happens to
|
|
1654
|
-
* look like an object header can never be misread as a boundary. Operates on the raw `Buffer` because `<size>` counts
|
|
1655
|
-
* bytes, not decoded characters.
|
|
1656
|
-
*
|
|
1657
|
-
* Exported for unit testing.
|
|
1658
|
-
*/
|
|
1659
|
-
export function parseCatFileBatchForSshSigners(
|
|
1660
|
-
stdout: Buffer,
|
|
1661
|
-
requestedShas: Set<string>,
|
|
1662
|
-
out: Map<string, SshSignedCommit>,
|
|
1663
|
-
): void {
|
|
1664
|
-
const headerRegex = /^([0-9a-f]{40,64}) (commit|tag|blob|missing)(?: (\d+))?$/;
|
|
1665
|
-
|
|
1666
|
-
let offset = 0;
|
|
1667
|
-
while (offset < stdout.length) {
|
|
1668
|
-
const newline = stdout.indexOf(0x0a, offset);
|
|
1669
|
-
if (newline === -1) break;
|
|
1670
|
-
|
|
1671
|
-
const match = headerRegex.exec(stdout.toString('utf8', offset, newline));
|
|
1672
|
-
offset = newline + 1;
|
|
1673
|
-
// A missing object (or an unrecognizable header) has no content body following its header line.
|
|
1674
|
-
if (match == null || match[2] === 'missing') continue;
|
|
1675
|
-
|
|
1676
|
-
const sha = match[1];
|
|
1677
|
-
const object = stdout.toString('utf8', offset, offset + Number(match[3]));
|
|
1678
|
-
offset += Number(match[3]) + 1; // consume the object's bytes and the trailing newline that separates records
|
|
1679
|
-
|
|
1680
|
-
if (!requestedShas.has(sha)) continue;
|
|
1681
|
-
|
|
1682
|
-
const key = extractSshPublicKeyFromCommitObject(object);
|
|
1683
|
-
if (key == null) continue;
|
|
1684
|
-
|
|
1685
|
-
const committer = extractCommitterFromCommitObject(object);
|
|
1686
|
-
out.set(sha, { key: key, name: committer?.name, email: committer?.email });
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
function toCommit(c: ParsedCommit, repoPath: string, pathspec: string | undefined, currentUser: GitUser | undefined) {
|
|
1691
|
-
const message = c.message.trim();
|
|
1692
|
-
const index = message.indexOf('\n');
|
|
1693
|
-
|
|
1694
|
-
const isCurrentAuthor = isUserMatch(currentUser, c.author, c.authorEmail) || undefined;
|
|
1695
|
-
const isCurrentCommitter = isUserMatch(currentUser, c.committer, c.committerEmail) || undefined;
|
|
1696
|
-
|
|
1697
|
-
return new GitCommit(
|
|
1698
|
-
repoPath,
|
|
1699
|
-
c.sha,
|
|
1700
|
-
new GitCommitIdentity(
|
|
1701
|
-
c.author,
|
|
1702
|
-
c.authorEmail,
|
|
1703
|
-
new Date(Number(c.authorDate) * 1000),
|
|
1704
|
-
undefined,
|
|
1705
|
-
isCurrentAuthor,
|
|
1706
|
-
),
|
|
1707
|
-
new GitCommitIdentity(
|
|
1708
|
-
c.committer,
|
|
1709
|
-
c.committerEmail,
|
|
1710
|
-
new Date(Number(c.committerDate) * 1000),
|
|
1711
|
-
undefined,
|
|
1712
|
-
isCurrentCommitter,
|
|
1713
|
-
),
|
|
1714
|
-
index !== -1 ? message.substring(0, index) : message,
|
|
1715
|
-
c.parents?.split(' ') ?? [],
|
|
1716
|
-
message,
|
|
1717
|
-
createCommitFileset(c, repoPath, pathspec),
|
|
1718
|
-
c.stats,
|
|
1719
|
-
undefined,
|
|
1720
|
-
c.tips?.split(' '),
|
|
1721
|
-
);
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
function getGitStartEnd(range: DiffRange): [number, number] {
|
|
1725
|
-
// Library DiffRange is always 1-based, startLine <= endLine
|
|
1726
|
-
return [range.startLine, range.endLine];
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
async function parseCommits(
|
|
1730
|
-
parser: CommitsLogParser | CommitsWithFilesLogParser | CommitsInFileRangeLogParser,
|
|
1731
|
-
resultOrStream: Promise<GitResult> | AsyncGenerator<string>,
|
|
1732
|
-
repoPath: string,
|
|
1733
|
-
pathspec: string | undefined,
|
|
1734
|
-
limit: number | undefined,
|
|
1735
|
-
stashes: Map<string, GitStashCommit> | undefined,
|
|
1736
|
-
currentUser: GitUser | undefined,
|
|
1737
|
-
searchFilters?: SearchQueryFilters,
|
|
1738
|
-
// Stash commits have 2-3 parents, so `--merges` matches them; excluded below. Passed in by the
|
|
1739
|
-
// caller (derived from the args git actually runs) rather than re-derived from `searchFilters.type`
|
|
1740
|
-
// here, since a multi-value `type:` query (e.g. `type:merge type:tip`) leaves `--merges` in the
|
|
1741
|
-
// args while `searchFilters.type` reflects only the last value parsed
|
|
1742
|
-
mergesOnly: boolean = false,
|
|
1743
|
-
): Promise<{ commits: Map<string, GitCommit>; count: number; countStashChildCommits: number }> {
|
|
1744
|
-
let count = 0;
|
|
1745
|
-
let countStashChildCommits = 0;
|
|
1746
|
-
const commits = new Map<string, GitCommit>();
|
|
1747
|
-
|
|
1748
|
-
const tipsOnly = searchFilters?.type === 'tip';
|
|
1749
|
-
|
|
1750
|
-
if (resultOrStream instanceof Promise) {
|
|
1751
|
-
const scope = getScopedLogger();
|
|
1752
|
-
const result = await resultOrStream;
|
|
1753
|
-
|
|
1754
|
-
using sw = maybeStopWatch(scope, { log: { onlyExit: true, level: 'debug' } });
|
|
1755
|
-
|
|
1756
|
-
if (stashes?.size) {
|
|
1757
|
-
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1758
|
-
const stashesOnly = searchFilters?.type === 'stash';
|
|
1759
|
-
|
|
1760
|
-
for (const c of parser.parse(result.stdout)) {
|
|
1761
|
-
if (stashesOnly && !stashes?.has(c.sha)) continue;
|
|
1762
|
-
if (mergesOnly && stashes?.has(c.sha)) continue;
|
|
1763
|
-
if (tipsOnly && !c.tips) continue;
|
|
1764
|
-
|
|
1765
|
-
count++;
|
|
1766
|
-
if (limit && count > limit) break;
|
|
1767
|
-
|
|
1768
|
-
const stash = stashes?.get(c.sha);
|
|
1769
|
-
if (stash != null) {
|
|
1770
|
-
if (commits.has(stash.sha)) {
|
|
1771
|
-
countStashChildCommits++;
|
|
1772
|
-
} else if (allowFilteredFiles) {
|
|
1773
|
-
commits.set(
|
|
1774
|
-
stash.sha,
|
|
1775
|
-
stash.with({
|
|
1776
|
-
fileset: {
|
|
1777
|
-
...createCommitFileset(c, repoPath, pathspec),
|
|
1778
|
-
// Add the full stash files back into the fileset
|
|
1779
|
-
files: stash.fileset?.files,
|
|
1780
|
-
},
|
|
1781
|
-
}),
|
|
1782
|
-
);
|
|
1783
|
-
} else {
|
|
1784
|
-
commits.set(stash.sha, stash);
|
|
1785
|
-
}
|
|
1786
|
-
continue;
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1790
|
-
}
|
|
1791
|
-
} else {
|
|
1792
|
-
for (const c of parser.parse(result.stdout)) {
|
|
1793
|
-
if (tipsOnly && !c.tips) continue;
|
|
1794
|
-
|
|
1795
|
-
count++;
|
|
1796
|
-
if (limit && count > limit) break;
|
|
1797
|
-
|
|
1798
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
sw?.stop({ suffix: ` created ${count} commits` });
|
|
1803
|
-
|
|
1804
|
-
return { commits: commits, count: count, countStashChildCommits: countStashChildCommits };
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
using _streamDisposer = createDisposable(() => void resultOrStream.return?.(undefined));
|
|
1808
|
-
|
|
1809
|
-
if (stashes?.size) {
|
|
1810
|
-
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1811
|
-
const stashesOnly = searchFilters?.type === 'stash';
|
|
1812
|
-
|
|
1813
|
-
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1814
|
-
if (stashesOnly && !stashes?.has(c.sha)) continue;
|
|
1815
|
-
if (mergesOnly && stashes?.has(c.sha)) continue;
|
|
1816
|
-
if (tipsOnly && !c.tips) continue;
|
|
1817
|
-
|
|
1818
|
-
count++;
|
|
1819
|
-
if (limit && count > limit) break;
|
|
1820
|
-
|
|
1821
|
-
const stash = stashes?.get(c.sha);
|
|
1822
|
-
if (stash != null) {
|
|
1823
|
-
if (commits.has(stash.sha)) {
|
|
1824
|
-
countStashChildCommits++;
|
|
1825
|
-
} else if (allowFilteredFiles) {
|
|
1826
|
-
commits.set(
|
|
1827
|
-
stash.sha,
|
|
1828
|
-
stash.with({
|
|
1829
|
-
fileset: {
|
|
1830
|
-
...createCommitFileset(c, repoPath, pathspec),
|
|
1831
|
-
// Add the full stash files back into the fileset
|
|
1832
|
-
files: stash.fileset?.files,
|
|
1833
|
-
},
|
|
1834
|
-
}),
|
|
1835
|
-
);
|
|
1836
|
-
} else {
|
|
1837
|
-
commits.set(stash.sha, stash);
|
|
1838
|
-
}
|
|
1839
|
-
continue;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1843
|
-
}
|
|
1844
|
-
} else {
|
|
1845
|
-
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1846
|
-
if (tipsOnly && !c.tips) continue;
|
|
1847
|
-
|
|
1848
|
-
count++;
|
|
1849
|
-
if (limit && count > limit) break;
|
|
1850
|
-
|
|
1851
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
return { commits: commits, count: count, countStashChildCommits: countStashChildCommits };
|
|
1856
|
-
}
|