@gitkraken/core-gitlens 0.1.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 +16 -0
- package/LICENSE +30 -0
- package/LICENSE.plus +40 -0
- package/README.md +54 -0
- package/dist/git/cache.d.ts +140 -0
- package/dist/git/cache.d.ts.map +1 -0
- package/dist/git/cache.js +765 -0
- package/dist/git/cache.js.map +1 -0
- package/dist/git/context.d.ts +238 -0
- package/dist/git/context.d.ts.map +1 -0
- package/dist/git/context.js +11 -0
- package/dist/git/context.js.map +1 -0
- package/dist/git/errors.d.ts +419 -0
- package/dist/git/errors.d.ts.map +1 -0
- package/dist/git/errors.js +681 -0
- package/dist/git/errors.js.map +1 -0
- package/dist/git/exec.types.d.ts +66 -0
- package/dist/git/exec.types.d.ts.map +1 -0
- package/dist/git/exec.types.js +2 -0
- package/dist/git/exec.types.js.map +1 -0
- package/dist/git/features.d.ts +8 -0
- package/dist/git/features.d.ts.map +1 -0
- package/dist/git/features.js +18 -0
- package/dist/git/features.js.map +1 -0
- package/dist/git/models/author.d.ts +17 -0
- package/dist/git/models/author.d.ts.map +1 -0
- package/dist/git/models/author.js +2 -0
- package/dist/git/models/author.js.map +1 -0
- package/dist/git/models/autolink.d.ts +51 -0
- package/dist/git/models/autolink.d.ts.map +1 -0
- package/dist/git/models/autolink.js +2 -0
- package/dist/git/models/autolink.js.map +1 -0
- package/dist/git/models/blame.d.ts +41 -0
- package/dist/git/models/blame.d.ts.map +1 -0
- package/dist/git/models/blame.js +2 -0
- package/dist/git/models/blame.js.map +1 -0
- package/dist/git/models/branch.d.ts +85 -0
- package/dist/git/models/branch.d.ts.map +1 -0
- package/dist/git/models/branch.js +174 -0
- package/dist/git/models/branch.js.map +1 -0
- package/dist/git/models/commit.d.ts +163 -0
- package/dist/git/models/commit.d.ts.map +1 -0
- package/dist/git/models/commit.js +496 -0
- package/dist/git/models/commit.js.map +1 -0
- package/dist/git/models/contributor.d.ts +40 -0
- package/dist/git/models/contributor.d.ts.map +1 -0
- package/dist/git/models/contributor.js +67 -0
- package/dist/git/models/contributor.js.map +1 -0
- package/dist/git/models/defaultBranch.d.ts +6 -0
- package/dist/git/models/defaultBranch.d.ts.map +1 -0
- package/dist/git/models/defaultBranch.js +2 -0
- package/dist/git/models/defaultBranch.js.map +1 -0
- package/dist/git/models/diff.d.ts +73 -0
- package/dist/git/models/diff.d.ts.map +1 -0
- package/dist/git/models/diff.js +2 -0
- package/dist/git/models/diff.js.map +1 -0
- package/dist/git/models/file.d.ts +23 -0
- package/dist/git/models/file.d.ts.map +1 -0
- package/dist/git/models/file.js +2 -0
- package/dist/git/models/file.js.map +1 -0
- package/dist/git/models/fileChange.d.ts +50 -0
- package/dist/git/models/fileChange.d.ts.map +1 -0
- package/dist/git/models/fileChange.js +69 -0
- package/dist/git/models/fileChange.js.map +1 -0
- package/dist/git/models/fileStatus.d.ts +33 -0
- package/dist/git/models/fileStatus.d.ts.map +1 -0
- package/dist/git/models/fileStatus.js +29 -0
- package/dist/git/models/fileStatus.js.map +1 -0
- package/dist/git/models/graph.d.ts +171 -0
- package/dist/git/models/graph.d.ts.map +1 -0
- package/dist/git/models/graph.js +2 -0
- package/dist/git/models/graph.js.map +1 -0
- package/dist/git/models/graphSearch.d.ts +48 -0
- package/dist/git/models/graphSearch.d.ts.map +1 -0
- package/dist/git/models/graphSearch.js +2 -0
- package/dist/git/models/graphSearch.js.map +1 -0
- package/dist/git/models/issue.d.ts +69 -0
- package/dist/git/models/issue.d.ts.map +1 -0
- package/dist/git/models/issue.js +68 -0
- package/dist/git/models/issue.js.map +1 -0
- package/dist/git/models/issueOrPullRequest.d.ts +19 -0
- package/dist/git/models/issueOrPullRequest.d.ts.map +1 -0
- package/dist/git/models/issueOrPullRequest.js +2 -0
- package/dist/git/models/issueOrPullRequest.js.map +1 -0
- package/dist/git/models/lineRange.d.ts +8 -0
- package/dist/git/models/lineRange.d.ts.map +1 -0
- package/dist/git/models/lineRange.js +2 -0
- package/dist/git/models/lineRange.js.map +1 -0
- package/dist/git/models/log.d.ts +19 -0
- package/dist/git/models/log.d.ts.map +1 -0
- package/dist/git/models/log.js +2 -0
- package/dist/git/models/log.js.map +1 -0
- package/dist/git/models/mergeConflicts.d.ts +23 -0
- package/dist/git/models/mergeConflicts.d.ts.map +1 -0
- package/dist/git/models/mergeConflicts.js +2 -0
- package/dist/git/models/mergeConflicts.js.map +1 -0
- package/dist/git/models/patch.d.ts +22 -0
- package/dist/git/models/patch.d.ts.map +1 -0
- package/dist/git/models/patch.js +2 -0
- package/dist/git/models/patch.js.map +1 -0
- package/dist/git/models/pausedOperationStatus.d.ts +52 -0
- package/dist/git/models/pausedOperationStatus.d.ts.map +1 -0
- package/dist/git/models/pausedOperationStatus.js +2 -0
- package/dist/git/models/pausedOperationStatus.js.map +1 -0
- package/dist/git/models/pullRequest.d.ts +125 -0
- package/dist/git/models/pullRequest.d.ts.map +1 -0
- package/dist/git/models/pullRequest.js +127 -0
- package/dist/git/models/pullRequest.js.map +1 -0
- package/dist/git/models/rebase.d.ts +51 -0
- package/dist/git/models/rebase.d.ts.map +1 -0
- package/dist/git/models/rebase.js +2 -0
- package/dist/git/models/rebase.js.map +1 -0
- package/dist/git/models/reference.d.ts +48 -0
- package/dist/git/models/reference.d.ts.map +1 -0
- package/dist/git/models/reference.js +2 -0
- package/dist/git/models/reference.js.map +1 -0
- package/dist/git/models/reflog.d.ts +33 -0
- package/dist/git/models/reflog.d.ts.map +1 -0
- package/dist/git/models/reflog.js +85 -0
- package/dist/git/models/reflog.js.map +1 -0
- package/dist/git/models/remote.d.ts +37 -0
- package/dist/git/models/remote.d.ts.map +1 -0
- package/dist/git/models/remote.js +98 -0
- package/dist/git/models/remote.js.map +1 -0
- package/dist/git/models/remoteProvider.d.ts +112 -0
- package/dist/git/models/remoteProvider.d.ts.map +1 -0
- package/dist/git/models/remoteProvider.js +154 -0
- package/dist/git/models/remoteProvider.js.map +1 -0
- package/dist/git/models/remoteResource.d.ts +78 -0
- package/dist/git/models/remoteResource.d.ts.map +1 -0
- package/dist/git/models/remoteResource.js +13 -0
- package/dist/git/models/remoteResource.js.map +1 -0
- package/dist/git/models/repository.d.ts +106 -0
- package/dist/git/models/repository.d.ts.map +1 -0
- package/dist/git/models/repository.js +324 -0
- package/dist/git/models/repository.js.map +1 -0
- package/dist/git/models/repositoryChangeEvent.d.ts +17 -0
- package/dist/git/models/repositoryChangeEvent.d.ts.map +1 -0
- package/dist/git/models/repositoryChangeEvent.js +26 -0
- package/dist/git/models/repositoryChangeEvent.js.map +1 -0
- package/dist/git/models/repositoryIdentities.d.ts +72 -0
- package/dist/git/models/repositoryIdentities.d.ts.map +1 -0
- package/dist/git/models/repositoryIdentities.js +7 -0
- package/dist/git/models/repositoryIdentities.js.map +1 -0
- package/dist/git/models/repositoryMetadata.d.ts +12 -0
- package/dist/git/models/repositoryMetadata.d.ts.map +1 -0
- package/dist/git/models/repositoryMetadata.js +2 -0
- package/dist/git/models/repositoryMetadata.js.map +1 -0
- package/dist/git/models/resourceDescriptor.d.ts +12 -0
- package/dist/git/models/resourceDescriptor.d.ts.map +1 -0
- package/dist/git/models/resourceDescriptor.js +2 -0
- package/dist/git/models/resourceDescriptor.js.map +1 -0
- package/dist/git/models/revision.d.ts +7 -0
- package/dist/git/models/revision.d.ts.map +1 -0
- package/dist/git/models/revision.js +6 -0
- package/dist/git/models/revision.js.map +1 -0
- package/dist/git/models/search.d.ts +66 -0
- package/dist/git/models/search.d.ts.map +1 -0
- package/dist/git/models/search.js +48 -0
- package/dist/git/models/search.js.map +1 -0
- package/dist/git/models/shortlog.d.ts +6 -0
- package/dist/git/models/shortlog.d.ts.map +1 -0
- package/dist/git/models/shortlog.js +2 -0
- package/dist/git/models/shortlog.js.map +1 -0
- package/dist/git/models/signature.d.ts +26 -0
- package/dist/git/models/signature.d.ts.map +1 -0
- package/dist/git/models/signature.js +2 -0
- package/dist/git/models/signature.js.map +1 -0
- package/dist/git/models/staging.d.ts +24 -0
- package/dist/git/models/staging.d.ts.map +1 -0
- package/dist/git/models/staging.js +2 -0
- package/dist/git/models/staging.js.map +1 -0
- package/dist/git/models/stash.d.ts +6 -0
- package/dist/git/models/stash.d.ts.map +1 -0
- package/dist/git/models/stash.js +2 -0
- package/dist/git/models/stash.js.map +1 -0
- package/dist/git/models/status.d.ts +55 -0
- package/dist/git/models/status.d.ts.map +1 -0
- package/dist/git/models/status.js +208 -0
- package/dist/git/models/status.js.map +1 -0
- package/dist/git/models/statusFile.d.ts +28 -0
- package/dist/git/models/statusFile.d.ts.map +1 -0
- package/dist/git/models/statusFile.js +114 -0
- package/dist/git/models/statusFile.js.map +1 -0
- package/dist/git/models/tag.d.ts +26 -0
- package/dist/git/models/tag.d.ts.map +1 -0
- package/dist/git/models/tag.js +73 -0
- package/dist/git/models/tag.js.map +1 -0
- package/dist/git/models/tree.d.ts +10 -0
- package/dist/git/models/tree.d.ts.map +1 -0
- package/dist/git/models/tree.js +2 -0
- package/dist/git/models/tree.js.map +1 -0
- package/dist/git/models/user.d.ts +7 -0
- package/dist/git/models/user.d.ts.map +1 -0
- package/dist/git/models/user.js +2 -0
- package/dist/git/models/user.js.map +1 -0
- package/dist/git/models/worktree.d.ts +51 -0
- package/dist/git/models/worktree.d.ts.map +1 -0
- package/dist/git/models/worktree.js +136 -0
- package/dist/git/models/worktree.js.map +1 -0
- package/dist/git/parsers/diffParser.d.ts +45 -0
- package/dist/git/parsers/diffParser.d.ts.map +1 -0
- package/dist/git/parsers/diffParser.js +628 -0
- package/dist/git/parsers/diffParser.js.map +1 -0
- package/dist/git/parsers/rebaseTodoParser.d.ts +15 -0
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +1 -0
- package/dist/git/parsers/rebaseTodoParser.js +215 -0
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -0
- package/dist/git/providers/blame.d.ts +15 -0
- package/dist/git/providers/blame.d.ts.map +1 -0
- package/dist/git/providers/blame.js +2 -0
- package/dist/git/providers/blame.js.map +1 -0
- package/dist/git/providers/branches.d.ts +80 -0
- package/dist/git/providers/branches.d.ts.map +1 -0
- package/dist/git/providers/branches.js +2 -0
- package/dist/git/providers/branches.js.map +1 -0
- package/dist/git/providers/commits.d.ts +102 -0
- package/dist/git/providers/commits.d.ts.map +1 -0
- package/dist/git/providers/commits.js +2 -0
- package/dist/git/providers/commits.js.map +1 -0
- package/dist/git/providers/config.d.ts +64 -0
- package/dist/git/providers/config.d.ts.map +1 -0
- package/dist/git/providers/config.js +2 -0
- package/dist/git/providers/config.js.map +1 -0
- package/dist/git/providers/contributors.d.ts +26 -0
- package/dist/git/providers/contributors.d.ts.map +1 -0
- package/dist/git/providers/contributors.js +2 -0
- package/dist/git/providers/contributors.js.map +1 -0
- package/dist/git/providers/diff.d.ts +73 -0
- package/dist/git/providers/diff.d.ts.map +1 -0
- package/dist/git/providers/diff.js +2 -0
- package/dist/git/providers/diff.js.map +1 -0
- package/dist/git/providers/graph.d.ts +20 -0
- package/dist/git/providers/graph.d.ts.map +1 -0
- package/dist/git/providers/graph.js +2 -0
- package/dist/git/providers/graph.js.map +1 -0
- package/dist/git/providers/operations.d.ts +65 -0
- package/dist/git/providers/operations.d.ts.map +1 -0
- package/dist/git/providers/operations.js +2 -0
- package/dist/git/providers/operations.js.map +1 -0
- package/dist/git/providers/patch.d.ts +27 -0
- package/dist/git/providers/patch.d.ts.map +1 -0
- package/dist/git/providers/patch.js +2 -0
- package/dist/git/providers/patch.js.map +1 -0
- package/dist/git/providers/pausedOperations.d.ts +11 -0
- package/dist/git/providers/pausedOperations.d.ts.map +1 -0
- package/dist/git/providers/pausedOperations.js +2 -0
- package/dist/git/providers/pausedOperations.js.map +1 -0
- package/dist/git/providers/provider.d.ts +57 -0
- package/dist/git/providers/provider.d.ts.map +1 -0
- package/dist/git/providers/provider.js +2 -0
- package/dist/git/providers/provider.js.map +1 -0
- package/dist/git/providers/refs.d.ts +22 -0
- package/dist/git/providers/refs.d.ts.map +1 -0
- package/dist/git/providers/refs.js +2 -0
- package/dist/git/providers/refs.js.map +1 -0
- package/dist/git/providers/remotes.d.ts +25 -0
- package/dist/git/providers/remotes.d.ts.map +1 -0
- package/dist/git/providers/remotes.js +2 -0
- package/dist/git/providers/remotes.js.map +1 -0
- package/dist/git/providers/revision.d.ts +28 -0
- package/dist/git/providers/revision.d.ts.map +1 -0
- package/dist/git/providers/revision.js +2 -0
- package/dist/git/providers/revision.js.map +1 -0
- package/dist/git/providers/shared/remotes.d.ts +25 -0
- package/dist/git/providers/shared/remotes.d.ts.map +1 -0
- package/dist/git/providers/shared/remotes.js +79 -0
- package/dist/git/providers/shared/remotes.js.map +1 -0
- package/dist/git/providers/staging.d.ts +22 -0
- package/dist/git/providers/staging.d.ts.map +1 -0
- package/dist/git/providers/staging.js +2 -0
- package/dist/git/providers/staging.js.map +1 -0
- package/dist/git/providers/stash.d.ts +41 -0
- package/dist/git/providers/stash.d.ts.map +1 -0
- package/dist/git/providers/stash.js +2 -0
- package/dist/git/providers/stash.js.map +1 -0
- package/dist/git/providers/status.d.ts +30 -0
- package/dist/git/providers/status.d.ts.map +1 -0
- package/dist/git/providers/status.js +2 -0
- package/dist/git/providers/status.js.map +1 -0
- package/dist/git/providers/tags.d.ts +18 -0
- package/dist/git/providers/tags.d.ts.map +1 -0
- package/dist/git/providers/tags.js +2 -0
- package/dist/git/providers/tags.js.map +1 -0
- package/dist/git/providers/types.d.ts +28 -0
- package/dist/git/providers/types.d.ts.map +1 -0
- package/dist/git/providers/types.js +2 -0
- package/dist/git/providers/types.js.map +1 -0
- package/dist/git/providers/worktrees.d.ts +23 -0
- package/dist/git/providers/worktrees.d.ts.map +1 -0
- package/dist/git/providers/worktrees.js +2 -0
- package/dist/git/providers/worktrees.js.map +1 -0
- package/dist/git/remotes/azure-devops.d.ts +43 -0
- package/dist/git/remotes/azure-devops.d.ts.map +1 -0
- package/dist/git/remotes/azure-devops.js +248 -0
- package/dist/git/remotes/azure-devops.js.map +1 -0
- package/dist/git/remotes/bitbucket-server.d.ts +32 -0
- package/dist/git/remotes/bitbucket-server.d.ts.map +1 -0
- package/dist/git/remotes/bitbucket-server.js +145 -0
- package/dist/git/remotes/bitbucket-server.js.map +1 -0
- package/dist/git/remotes/bitbucket.d.ts +29 -0
- package/dist/git/remotes/bitbucket.d.ts.map +1 -0
- package/dist/git/remotes/bitbucket.js +114 -0
- package/dist/git/remotes/bitbucket.js.map +1 -0
- package/dist/git/remotes/custom.d.ts +26 -0
- package/dist/git/remotes/custom.d.ts.map +1 -0
- package/dist/git/remotes/custom.js +111 -0
- package/dist/git/remotes/custom.js.map +1 -0
- package/dist/git/remotes/gerrit.d.ts +31 -0
- package/dist/git/remotes/gerrit.d.ts.map +1 -0
- package/dist/git/remotes/gerrit.js +146 -0
- package/dist/git/remotes/gerrit.js.map +1 -0
- package/dist/git/remotes/gitea.d.ts +30 -0
- package/dist/git/remotes/gitea.d.ts.map +1 -0
- package/dist/git/remotes/gitea.js +148 -0
- package/dist/git/remotes/gitea.js.map +1 -0
- package/dist/git/remotes/github.d.ts +41 -0
- package/dist/git/remotes/github.d.ts.map +1 -0
- package/dist/git/remotes/github.js +198 -0
- package/dist/git/remotes/github.js.map +1 -0
- package/dist/git/remotes/gitlab.d.ts +35 -0
- package/dist/git/remotes/gitlab.d.ts.map +1 -0
- package/dist/git/remotes/gitlab.js +232 -0
- package/dist/git/remotes/gitlab.js.map +1 -0
- package/dist/git/remotes/google-source.d.ts +17 -0
- package/dist/git/remotes/google-source.d.ts.map +1 -0
- package/dist/git/remotes/google-source.js +32 -0
- package/dist/git/remotes/google-source.js.map +1 -0
- package/dist/git/remotes/matcher.d.ts +35 -0
- package/dist/git/remotes/matcher.d.ts.map +1 -0
- package/dist/git/remotes/matcher.js +140 -0
- package/dist/git/remotes/matcher.js.map +1 -0
- package/dist/git/repositoryService.d.ts +127 -0
- package/dist/git/repositoryService.d.ts.map +1 -0
- package/dist/git/repositoryService.js +54 -0
- package/dist/git/repositoryService.js.map +1 -0
- package/dist/git/service.d.ts +112 -0
- package/dist/git/service.d.ts.map +1 -0
- package/dist/git/service.js +303 -0
- package/dist/git/service.js.map +1 -0
- package/dist/git/utils/autolink.utils.d.ts +13 -0
- package/dist/git/utils/autolink.utils.d.ts.map +1 -0
- package/dist/git/utils/autolink.utils.js +147 -0
- package/dist/git/utils/autolink.utils.js.map +1 -0
- package/dist/git/utils/blame.utils.d.ts +47 -0
- package/dist/git/utils/blame.utils.d.ts.map +1 -0
- package/dist/git/utils/blame.utils.js +239 -0
- package/dist/git/utils/blame.utils.js.map +1 -0
- package/dist/git/utils/branch.utils.d.ts +22 -0
- package/dist/git/utils/branch.utils.d.ts.map +1 -0
- package/dist/git/utils/branch.utils.js +122 -0
- package/dist/git/utils/branch.utils.js.map +1 -0
- package/dist/git/utils/commit.utils.d.ts +26 -0
- package/dist/git/utils/commit.utils.d.ts.map +1 -0
- package/dist/git/utils/commit.utils.js +54 -0
- package/dist/git/utils/commit.utils.js.map +1 -0
- package/dist/git/utils/contributor.utils.d.ts +15 -0
- package/dist/git/utils/contributor.utils.d.ts.map +1 -0
- package/dist/git/utils/contributor.utils.js +55 -0
- package/dist/git/utils/contributor.utils.js.map +1 -0
- package/dist/git/utils/fetch.utils.d.ts +20 -0
- package/dist/git/utils/fetch.utils.d.ts.map +1 -0
- package/dist/git/utils/fetch.utils.js +47 -0
- package/dist/git/utils/fetch.utils.js.map +1 -0
- package/dist/git/utils/fileStatus.utils.d.ts +24 -0
- package/dist/git/utils/fileStatus.utils.d.ts.map +1 -0
- package/dist/git/utils/fileStatus.utils.js +45 -0
- package/dist/git/utils/fileStatus.utils.js.map +1 -0
- package/dist/git/utils/issue.utils.d.ts +4 -0
- package/dist/git/utils/issue.utils.d.ts.map +1 -0
- package/dist/git/utils/issue.utils.js +76 -0
- package/dist/git/utils/issue.utils.js.map +1 -0
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -0
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +1 -0
- package/dist/git/utils/issueOrPullRequest.utils.js +22 -0
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -0
- package/dist/git/utils/mergeConflicts.utils.d.ts +3 -0
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +1 -0
- package/dist/git/utils/mergeConflicts.utils.js +19 -0
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -0
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +58 -0
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +1 -0
- package/dist/git/utils/pausedOperationStatus.utils.js +133 -0
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -0
- package/dist/git/utils/pullRequest.utils.d.ts +12 -0
- package/dist/git/utils/pullRequest.utils.d.ts.map +1 -0
- package/dist/git/utils/pullRequest.utils.js +124 -0
- package/dist/git/utils/pullRequest.utils.js.map +1 -0
- package/dist/git/utils/rebase.utils.d.ts +19 -0
- package/dist/git/utils/rebase.utils.d.ts.map +1 -0
- package/dist/git/utils/rebase.utils.js +93 -0
- package/dist/git/utils/rebase.utils.js.map +1 -0
- package/dist/git/utils/reference.utils.d.ts +56 -0
- package/dist/git/utils/reference.utils.d.ts.map +1 -0
- package/dist/git/utils/reference.utils.js +191 -0
- package/dist/git/utils/reference.utils.js.map +1 -0
- package/dist/git/utils/remote.utils.d.ts +17 -0
- package/dist/git/utils/remote.utils.d.ts.map +1 -0
- package/dist/git/utils/remote.utils.js +124 -0
- package/dist/git/utils/remote.utils.js.map +1 -0
- package/dist/git/utils/repository.utils.d.ts +5 -0
- package/dist/git/utils/repository.utils.d.ts.map +1 -0
- package/dist/git/utils/repository.utils.js +15 -0
- package/dist/git/utils/repository.utils.js.map +1 -0
- package/dist/git/utils/resourceDescriptor.utils.d.ts +4 -0
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +1 -0
- package/dist/git/utils/resourceDescriptor.utils.js +17 -0
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -0
- package/dist/git/utils/revision.utils.d.ts +36 -0
- package/dist/git/utils/revision.utils.d.ts.map +1 -0
- package/dist/git/utils/revision.utils.js +114 -0
- package/dist/git/utils/revision.utils.js.map +1 -0
- package/dist/git/utils/search.utils.d.ts +15 -0
- package/dist/git/utils/search.utils.d.ts.map +1 -0
- package/dist/git/utils/search.utils.js +422 -0
- package/dist/git/utils/search.utils.js.map +1 -0
- package/dist/git/utils/sorting.d.ts +34 -0
- package/dist/git/utils/sorting.d.ts.map +1 -0
- package/dist/git/utils/sorting.js +203 -0
- package/dist/git/utils/sorting.js.map +1 -0
- package/dist/git/utils/status.utils.d.ts +20 -0
- package/dist/git/utils/status.utils.d.ts.map +1 -0
- package/dist/git/utils/status.utils.js +82 -0
- package/dist/git/utils/status.utils.js.map +1 -0
- package/dist/git/utils/statusFile.utils.d.ts +8 -0
- package/dist/git/utils/statusFile.utils.d.ts.map +1 -0
- package/dist/git/utils/statusFile.utils.js +76 -0
- package/dist/git/utils/statusFile.utils.js.map +1 -0
- package/dist/git/utils/tag.utils.d.ts +7 -0
- package/dist/git/utils/tag.utils.d.ts.map +1 -0
- package/dist/git/utils/tag.utils.js +13 -0
- package/dist/git/utils/tag.utils.js.map +1 -0
- package/dist/git/utils/tooltip.utils.d.ts +14 -0
- package/dist/git/utils/tooltip.utils.d.ts.map +1 -0
- package/dist/git/utils/tooltip.utils.js +29 -0
- package/dist/git/utils/tooltip.utils.js.map +1 -0
- package/dist/git/utils/uriAuthority.d.ts +16 -0
- package/dist/git/utils/uriAuthority.d.ts.map +1 -0
- package/dist/git/utils/uriAuthority.js +20 -0
- package/dist/git/utils/uriAuthority.js.map +1 -0
- package/dist/git/utils/user.utils.d.ts +3 -0
- package/dist/git/utils/user.utils.d.ts.map +1 -0
- package/dist/git/utils/user.utils.js +12 -0
- package/dist/git/utils/user.utils.js.map +1 -0
- package/dist/git/utils/worktree.utils.d.ts +7 -0
- package/dist/git/utils/worktree.utils.d.ts.map +1 -0
- package/dist/git/utils/worktree.utils.js +15 -0
- package/dist/git/utils/worktree.utils.js.map +1 -0
- package/dist/git/watching/changeEvent.d.ts +47 -0
- package/dist/git/watching/changeEvent.d.ts.map +1 -0
- package/dist/git/watching/changeEvent.js +69 -0
- package/dist/git/watching/changeEvent.js.map +1 -0
- package/dist/git/watching/classifyChange.d.ts +16 -0
- package/dist/git/watching/classifyChange.d.ts.map +1 -0
- package/dist/git/watching/classifyChange.js +61 -0
- package/dist/git/watching/classifyChange.js.map +1 -0
- package/dist/git/watching/gitIgnoreFilter.d.ts +58 -0
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +1 -0
- package/dist/git/watching/gitIgnoreFilter.js +109 -0
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -0
- package/dist/git/watching/initWatcher.d.ts +33 -0
- package/dist/git/watching/initWatcher.d.ts.map +1 -0
- package/dist/git/watching/initWatcher.js +59 -0
- package/dist/git/watching/initWatcher.js.map +1 -0
- package/dist/git/watching/provider.d.ts +23 -0
- package/dist/git/watching/provider.d.ts.map +1 -0
- package/dist/git/watching/provider.js +2 -0
- package/dist/git/watching/provider.js.map +1 -0
- package/dist/git/watching/watchGroup.d.ts +54 -0
- package/dist/git/watching/watchGroup.d.ts.map +1 -0
- package/dist/git/watching/watchGroup.js +139 -0
- package/dist/git/watching/watchGroup.js.map +1 -0
- package/dist/git/watching/watchService.d.ts +79 -0
- package/dist/git/watching/watchService.d.ts.map +1 -0
- package/dist/git/watching/watchService.js +282 -0
- package/dist/git/watching/watchService.js.map +1 -0
- package/dist/git/watching/watchSession.d.ts +118 -0
- package/dist/git/watching/watchSession.d.ts.map +1 -0
- package/dist/git/watching/watchSession.js +274 -0
- package/dist/git/watching/watchSession.js.map +1 -0
- package/dist/git/watching/watcherPatterns.d.ts +21 -0
- package/dist/git/watching/watcherPatterns.d.ts.map +1 -0
- package/dist/git/watching/watcherPatterns.js +36 -0
- package/dist/git/watching/watcherPatterns.js.map +1 -0
- package/dist/git-cli/cliGitProvider.d.ts +133 -0
- package/dist/git-cli/cliGitProvider.d.ts.map +1 -0
- package/dist/git-cli/cliGitProvider.js +273 -0
- package/dist/git-cli/cliGitProvider.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +4 -0
- package/dist/git-cli/exec/exec.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.errors.d.ts +2 -0
- package/dist/git-cli/exec/exec.errors.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.errors.js +2 -0
- package/dist/git-cli/exec/exec.errors.js.map +1 -0
- package/dist/git-cli/exec/exec.js +3 -0
- package/dist/git-cli/exec/exec.js.map +1 -0
- package/dist/git-cli/exec/exec.types.d.ts +2 -0
- package/dist/git-cli/exec/exec.types.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.types.js +2 -0
- package/dist/git-cli/exec/exec.types.js.map +1 -0
- package/dist/git-cli/exec/features.d.ts +3 -0
- package/dist/git-cli/exec/features.d.ts.map +1 -0
- package/dist/git-cli/exec/features.js +2 -0
- package/dist/git-cli/exec/features.js.map +1 -0
- package/dist/git-cli/exec/git.d.ts +228 -0
- package/dist/git-cli/exec/git.d.ts.map +1 -0
- package/dist/git-cli/exec/git.js +823 -0
- package/dist/git-cli/exec/git.js.map +1 -0
- package/dist/git-cli/exec/gitQueue.d.ts +68 -0
- package/dist/git-cli/exec/gitQueue.d.ts.map +1 -0
- package/dist/git-cli/exec/gitQueue.js +207 -0
- package/dist/git-cli/exec/gitQueue.js.map +1 -0
- package/dist/git-cli/exec/locator.d.ts +14 -0
- package/dist/git-cli/exec/locator.d.ts.map +1 -0
- package/dist/git-cli/exec/locator.js +133 -0
- package/dist/git-cli/exec/locator.js.map +1 -0
- package/dist/git-cli/parsers/blameParser.d.ts +30 -0
- package/dist/git-cli/parsers/blameParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/blameParser.js +339 -0
- package/dist/git-cli/parsers/blameParser.js.map +1 -0
- package/dist/git-cli/parsers/indexParser.d.ts +4 -0
- package/dist/git-cli/parsers/indexParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/indexParser.js +226 -0
- package/dist/git-cli/parsers/indexParser.js.map +1 -0
- package/dist/git-cli/parsers/logParser.d.ts +178 -0
- package/dist/git-cli/parsers/logParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/logParser.js +1166 -0
- package/dist/git-cli/parsers/logParser.js.map +1 -0
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +7 -0
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/mergeTreeParser.js +74 -0
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -0
- package/dist/git-cli/parsers/refParser.d.ts +34 -0
- package/dist/git-cli/parsers/refParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/refParser.js +148 -0
- package/dist/git-cli/parsers/refParser.js.map +1 -0
- package/dist/git-cli/parsers/reflogParser.d.ts +12 -0
- package/dist/git-cli/parsers/reflogParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/reflogParser.js +181 -0
- package/dist/git-cli/parsers/reflogParser.js.map +1 -0
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -0
- package/dist/git-cli/parsers/remoteParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/remoteParser.js +128 -0
- package/dist/git-cli/parsers/remoteParser.js.map +1 -0
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -0
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/shortlogParser.js +51 -0
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -0
- package/dist/git-cli/parsers/signatureParser.d.ts +21 -0
- package/dist/git-cli/parsers/signatureParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/signatureParser.js +139 -0
- package/dist/git-cli/parsers/signatureParser.js.map +1 -0
- package/dist/git-cli/parsers/statusParser.d.ts +4 -0
- package/dist/git-cli/parsers/statusParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/statusParser.js +216 -0
- package/dist/git-cli/parsers/statusParser.js.map +1 -0
- package/dist/git-cli/parsers/treeParser.d.ts +3 -0
- package/dist/git-cli/parsers/treeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/treeParser.js +110 -0
- package/dist/git-cli/parsers/treeParser.js.map +1 -0
- package/dist/git-cli/parsers/worktreeParser.d.ts +5 -0
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/worktreeParser.js +136 -0
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -0
- package/dist/git-cli/providers/blame.d.ts +26 -0
- package/dist/git-cli/providers/blame.d.ts.map +1 -0
- package/dist/git-cli/providers/blame.js +426 -0
- package/dist/git-cli/providers/blame.js.map +1 -0
- package/dist/git-cli/providers/branches.d.ts +87 -0
- package/dist/git-cli/providers/branches.d.ts.map +1 -0
- package/dist/git-cli/providers/branches.js +1153 -0
- package/dist/git-cli/providers/branches.js.map +1 -0
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -0
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +1 -0
- package/dist/git-cli/providers/commitFilesetUtils.js +20 -0
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -0
- package/dist/git-cli/providers/commits.d.ts +49 -0
- package/dist/git-cli/providers/commits.d.ts.map +1 -0
- package/dist/git-cli/providers/commits.js +1151 -0
- package/dist/git-cli/providers/commits.js.map +1 -0
- package/dist/git-cli/providers/config.d.ts +74 -0
- package/dist/git-cli/providers/config.d.ts.map +1 -0
- package/dist/git-cli/providers/config.js +588 -0
- package/dist/git-cli/providers/config.js.map +1 -0
- package/dist/git-cli/providers/contributors.d.ts +31 -0
- package/dist/git-cli/providers/contributors.d.ts.map +1 -0
- package/dist/git-cli/providers/contributors.js +350 -0
- package/dist/git-cli/providers/contributors.js.map +1 -0
- package/dist/git-cli/providers/diff.d.ts +99 -0
- package/dist/git-cli/providers/diff.d.ts.map +1 -0
- package/dist/git-cli/providers/diff.js +786 -0
- package/dist/git-cli/providers/diff.js.map +1 -0
- package/dist/git-cli/providers/graph.d.ts +31 -0
- package/dist/git-cli/providers/graph.d.ts.map +1 -0
- package/dist/git-cli/providers/graph.js +703 -0
- package/dist/git-cli/providers/graph.js.map +1 -0
- package/dist/git-cli/providers/operations.d.ts +75 -0
- package/dist/git-cli/providers/operations.d.ts.map +1 -0
- package/dist/git-cli/providers/operations.js +564 -0
- package/dist/git-cli/providers/operations.js.map +1 -0
- package/dist/git-cli/providers/patch.d.ts +38 -0
- package/dist/git-cli/providers/patch.d.ts.map +1 -0
- package/dist/git-cli/providers/patch.js +324 -0
- package/dist/git-cli/providers/patch.js.map +1 -0
- package/dist/git-cli/providers/pausedOperations.d.ts +22 -0
- package/dist/git-cli/providers/pausedOperations.d.ts.map +1 -0
- package/dist/git-cli/providers/pausedOperations.js +411 -0
- package/dist/git-cli/providers/pausedOperations.js.map +1 -0
- package/dist/git-cli/providers/refs.d.ts +32 -0
- package/dist/git-cli/providers/refs.d.ts.map +1 -0
- package/dist/git-cli/providers/refs.js +149 -0
- package/dist/git-cli/providers/refs.js.map +1 -0
- package/dist/git-cli/providers/remotes.d.ts +24 -0
- package/dist/git-cli/providers/remotes.d.ts.map +1 -0
- package/dist/git-cli/providers/remotes.js +94 -0
- package/dist/git-cli/providers/remotes.js.map +1 -0
- package/dist/git-cli/providers/revision.d.ts +27 -0
- package/dist/git-cli/providers/revision.d.ts.map +1 -0
- package/dist/git-cli/providers/revision.js +269 -0
- package/dist/git-cli/providers/revision.js.map +1 -0
- package/dist/git-cli/providers/staging.d.ts +24 -0
- package/dist/git-cli/providers/staging.d.ts.map +1 -0
- package/dist/git-cli/providers/staging.js +138 -0
- package/dist/git-cli/providers/staging.js.map +1 -0
- package/dist/git-cli/providers/stash.d.ts +55 -0
- package/dist/git-cli/providers/stash.d.ts.map +1 -0
- package/dist/git-cli/providers/stash.js +430 -0
- package/dist/git-cli/providers/stash.js.map +1 -0
- package/dist/git-cli/providers/status.d.ts +38 -0
- package/dist/git-cli/providers/status.d.ts.map +1 -0
- package/dist/git-cli/providers/status.js +352 -0
- package/dist/git-cli/providers/status.js.map +1 -0
- package/dist/git-cli/providers/tags.d.ts +29 -0
- package/dist/git-cli/providers/tags.d.ts.map +1 -0
- package/dist/git-cli/providers/tags.js +190 -0
- package/dist/git-cli/providers/tags.js.map +1 -0
- package/dist/git-cli/providers/worktrees.d.ts +33 -0
- package/dist/git-cli/providers/worktrees.d.ts.map +1 -0
- package/dist/git-cli/providers/worktrees.js +175 -0
- package/dist/git-cli/providers/worktrees.js.map +1 -0
- package/dist/git-cli/service.d.ts +52 -0
- package/dist/git-cli/service.d.ts.map +1 -0
- package/dist/git-cli/service.js +35 -0
- package/dist/git-cli/service.js.map +1 -0
- package/dist/plus/ai/constants.d.ts +21 -0
- package/dist/plus/ai/constants.d.ts.map +1 -0
- package/dist/plus/ai/constants.js +99 -0
- package/dist/plus/ai/constants.js.map +1 -0
- package/dist/plus/ai/errors.d.ts +25 -0
- package/dist/plus/ai/errors.d.ts.map +1 -0
- package/dist/plus/ai/errors.js +76 -0
- package/dist/plus/ai/errors.js.map +1 -0
- package/dist/plus/ai/models/conversation.d.ts +12 -0
- package/dist/plus/ai/models/conversation.d.ts.map +1 -0
- package/dist/plus/ai/models/conversation.js +27 -0
- package/dist/plus/ai/models/conversation.js.map +1 -0
- package/dist/plus/ai/models/model.d.ts +34 -0
- package/dist/plus/ai/models/model.d.ts.map +1 -0
- package/dist/plus/ai/models/model.js +379 -0
- package/dist/plus/ai/models/model.js.map +1 -0
- package/dist/plus/ai/models/promptTemplates.d.ts +74 -0
- package/dist/plus/ai/models/promptTemplates.d.ts.map +1 -0
- package/dist/plus/ai/models/promptTemplates.js +2 -0
- package/dist/plus/ai/models/promptTemplates.js.map +1 -0
- package/dist/plus/ai/models/provider.d.ts +46 -0
- package/dist/plus/ai/models/provider.d.ts.map +1 -0
- package/dist/plus/ai/models/provider.js +2 -0
- package/dist/plus/ai/models/provider.js.map +1 -0
- package/dist/plus/ai/models/results.d.ts +5 -0
- package/dist/plus/ai/models/results.d.ts.map +1 -0
- package/dist/plus/ai/models/results.js +2 -0
- package/dist/plus/ai/models/results.js.map +1 -0
- package/dist/plus/ai/prompts.d.ts +13 -0
- package/dist/plus/ai/prompts.d.ts.map +1 -0
- package/dist/plus/ai/prompts.js +517 -0
- package/dist/plus/ai/prompts.js.map +1 -0
- package/dist/plus/ai/providers/anthropicProvider.d.ts +21 -0
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/anthropicProvider.js +257 -0
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -0
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -0
- package/dist/plus/ai/providers/azureProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/azureProvider.js +54 -0
- package/dist/plus/ai/providers/azureProvider.js.map +1 -0
- package/dist/plus/ai/providers/context.d.ts +23 -0
- package/dist/plus/ai/providers/context.d.ts.map +1 -0
- package/dist/plus/ai/providers/context.js +2 -0
- package/dist/plus/ai/providers/context.js.map +1 -0
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +15 -0
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/deepSeekProvider.js +35 -0
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -0
- package/dist/plus/ai/providers/geminiProvider.d.ts +15 -0
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/geminiProvider.js +195 -0
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -0
- package/dist/plus/ai/providers/githubModelsProvider.d.ts +19 -0
- package/dist/plus/ai/providers/githubModelsProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/githubModelsProvider.js +51 -0
- package/dist/plus/ai/providers/githubModelsProvider.js.map +1 -0
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +18 -0
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/gitkrakenProvider.js +151 -0
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -0
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +15 -0
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/huggingFaceProvider.js +39 -0
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -0
- package/dist/plus/ai/providers/mistralProvider.d.ts +20 -0
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/mistralProvider.js +118 -0
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -0
- package/dist/plus/ai/providers/ollamaProvider.d.ts +25 -0
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/ollamaProvider.js +155 -0
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +17 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.js +47 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +39 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +218 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -0
- package/dist/plus/ai/providers/openRouterProvider.d.ts +17 -0
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openRouterProvider.js +57 -0
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -0
- package/dist/plus/ai/providers/openaiProvider.d.ts +16 -0
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openaiProvider.js +34 -0
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -0
- package/dist/plus/ai/providers/xaiProvider.d.ts +15 -0
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/xaiProvider.js +27 -0
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -0
- package/dist/plus/ai/utils/ai.utils.d.ts +18 -0
- package/dist/plus/ai/utils/ai.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/ai.utils.js +70 -0
- package/dist/plus/ai/utils/ai.utils.js.map +1 -0
- package/dist/plus/ai/utils/results.utils.d.ts +9 -0
- package/dist/plus/ai/utils/results.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/results.utils.js +44 -0
- package/dist/plus/ai/utils/results.utils.js.map +1 -0
- package/dist/plus/ai/utils/truncation.utils.d.ts +13 -0
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/truncation.utils.js +228 -0
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -0
- package/dist/plus/git-github/api/config.d.ts +66 -0
- package/dist/plus/git-github/api/config.d.ts.map +1 -0
- package/dist/plus/git-github/api/config.js +2 -0
- package/dist/plus/git-github/api/config.js.map +1 -0
- package/dist/plus/git-github/api/github.d.ts +178 -0
- package/dist/plus/git-github/api/github.d.ts.map +1 -0
- package/dist/plus/git-github/api/github.js +2360 -0
- package/dist/plus/git-github/api/github.js.map +1 -0
- package/dist/plus/git-github/api/github.utils.d.ts +9 -0
- package/dist/plus/git-github/api/github.utils.d.ts.map +1 -0
- package/dist/plus/git-github/api/github.utils.js +22 -0
- package/dist/plus/git-github/api/github.utils.js.map +1 -0
- package/dist/plus/git-github/api/token.d.ts +16 -0
- package/dist/plus/git-github/api/token.d.ts.map +1 -0
- package/dist/plus/git-github/api/token.js +2 -0
- package/dist/plus/git-github/api/token.js.map +1 -0
- package/dist/plus/git-github/api/tokenUtils.d.ts +7 -0
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +1 -0
- package/dist/plus/git-github/api/tokenUtils.js +13 -0
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -0
- package/dist/plus/git-github/api/types.d.ts +100 -0
- package/dist/plus/git-github/api/types.d.ts.map +1 -0
- package/dist/plus/git-github/api/types.js +2 -0
- package/dist/plus/git-github/api/types.js.map +1 -0
- package/dist/plus/git-github/context.d.ts +102 -0
- package/dist/plus/git-github/context.d.ts.map +1 -0
- package/dist/plus/git-github/context.js +12 -0
- package/dist/plus/git-github/context.js.map +1 -0
- package/dist/plus/git-github/models.d.ts +204 -0
- package/dist/plus/git-github/models.d.ts.map +1 -0
- package/dist/plus/git-github/models.js +229 -0
- package/dist/plus/git-github/models.js.map +1 -0
- package/dist/plus/git-github/providers/github/blame.d.ts +34 -0
- package/dist/plus/git-github/providers/github/blame.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/blame.js +155 -0
- package/dist/plus/git-github/providers/github/blame.js.map +1 -0
- package/dist/plus/git-github/providers/github/branches.d.ts +38 -0
- package/dist/plus/git-github/providers/github/branches.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/branches.js +234 -0
- package/dist/plus/git-github/providers/github/branches.js.map +1 -0
- package/dist/plus/git-github/providers/github/commits.d.ts +36 -0
- package/dist/plus/git-github/providers/github/commits.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/commits.js +560 -0
- package/dist/plus/git-github/providers/github/commits.js.map +1 -0
- package/dist/plus/git-github/providers/github/config.d.ts +11 -0
- package/dist/plus/git-github/providers/github/config.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/config.js +47 -0
- package/dist/plus/git-github/providers/github/config.js.map +1 -0
- package/dist/plus/git-github/providers/github/contributors.d.ts +27 -0
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/contributors.js +218 -0
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -0
- package/dist/plus/git-github/providers/github/diff.d.ts +33 -0
- package/dist/plus/git-github/providers/github/diff.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/diff.js +184 -0
- package/dist/plus/git-github/providers/github/diff.js.map +1 -0
- package/dist/plus/git-github/providers/github/graph.d.ts +25 -0
- package/dist/plus/git-github/providers/github/graph.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/graph.js +372 -0
- package/dist/plus/git-github/providers/github/graph.js.map +1 -0
- package/dist/plus/git-github/providers/github/refs.d.ts +26 -0
- package/dist/plus/git-github/providers/github/refs.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/refs.js +108 -0
- package/dist/plus/git-github/providers/github/refs.js.map +1 -0
- package/dist/plus/git-github/providers/github/remotes.d.ts +9 -0
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/remotes.js +37 -0
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -0
- package/dist/plus/git-github/providers/github/revision.d.ts +14 -0
- package/dist/plus/git-github/providers/github/revision.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/revision.js +132 -0
- package/dist/plus/git-github/providers/github/revision.js.map +1 -0
- package/dist/plus/git-github/providers/github/status.d.ts +21 -0
- package/dist/plus/git-github/providers/github/status.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/status.js +49 -0
- package/dist/plus/git-github/providers/github/status.js.map +1 -0
- package/dist/plus/git-github/providers/github/tags.d.ts +22 -0
- package/dist/plus/git-github/providers/github/tags.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/tags.js +104 -0
- package/dist/plus/git-github/providers/github/tags.js.map +1 -0
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +85 -0
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +1 -0
- package/dist/plus/git-github/providers/githubGitProvider.js +130 -0
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -0
- package/dist/plus/git-github/providers/githubProvider.d.ts +55 -0
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +1 -0
- package/dist/plus/git-github/providers/githubProvider.js +2 -0
- package/dist/plus/git-github/providers/githubProvider.js.map +1 -0
- package/dist/utils/array.d.ts +27 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/array.js +142 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/base64.d.ts +2 -0
- package/dist/utils/base64.d.ts.map +1 -0
- package/dist/utils/base64.js +2 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/brand.d.ts +11 -0
- package/dist/utils/brand.d.ts.map +1 -0
- package/dist/utils/brand.js +2 -0
- package/dist/utils/brand.js.map +1 -0
- package/dist/utils/cancellation.d.ts +54 -0
- package/dist/utils/cancellation.d.ts.map +1 -0
- package/dist/utils/cancellation.js +133 -0
- package/dist/utils/cancellation.js.map +1 -0
- package/dist/utils/charCode.d.ts +39 -0
- package/dist/utils/charCode.d.ts.map +1 -0
- package/dist/utils/charCode.js +39 -0
- package/dist/utils/charCode.js.map +1 -0
- package/dist/utils/color.d.ts +177 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/color.js +693 -0
- package/dist/utils/color.js.map +1 -0
- package/dist/utils/counter.d.ts +7 -0
- package/dist/utils/counter.d.ts.map +1 -0
- package/dist/utils/counter.js +19 -0
- package/dist/utils/counter.js.map +1 -0
- package/dist/utils/crypto.d.ts +2 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/crypto.js +2 -0
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/date.d.ts +20 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +313 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/debounce.d.ts +108 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/debounce.js +209 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/decorators/debounce.d.ts +3 -0
- package/dist/utils/decorators/debounce.d.ts.map +1 -0
- package/dist/utils/decorators/debounce.js +21 -0
- package/dist/utils/decorators/debounce.js.map +1 -0
- package/dist/utils/decorators/gate.d.ts +15 -0
- package/dist/utils/decorators/gate.d.ts.map +1 -0
- package/dist/utils/decorators/gate.js +129 -0
- package/dist/utils/decorators/gate.js.map +1 -0
- package/dist/utils/decorators/log.d.ts +46 -0
- package/dist/utils/decorators/log.d.ts.map +1 -0
- package/dist/utils/decorators/log.js +238 -0
- package/dist/utils/decorators/log.js.map +1 -0
- package/dist/utils/decorators/memoize.d.ts +17 -0
- package/dist/utils/decorators/memoize.d.ts.map +1 -0
- package/dist/utils/decorators/memoize.js +63 -0
- package/dist/utils/decorators/memoize.js.map +1 -0
- package/dist/utils/decorators/resolver.d.ts +12 -0
- package/dist/utils/decorators/resolver.d.ts.map +1 -0
- package/dist/utils/decorators/resolver.js +85 -0
- package/dist/utils/decorators/resolver.js.map +1 -0
- package/dist/utils/decorators/sequentialize.d.ts +29 -0
- package/dist/utils/decorators/sequentialize.d.ts.map +1 -0
- package/dist/utils/decorators/sequentialize.js +81 -0
- package/dist/utils/decorators/sequentialize.js.map +1 -0
- package/dist/utils/decorators/serializable.d.ts +13 -0
- package/dist/utils/decorators/serializable.d.ts.map +1 -0
- package/dist/utils/decorators/serializable.js +42 -0
- package/dist/utils/decorators/serializable.js.map +1 -0
- package/dist/utils/disposable.d.ts +40 -0
- package/dist/utils/disposable.d.ts.map +1 -0
- package/dist/utils/disposable.js +87 -0
- package/dist/utils/disposable.js.map +1 -0
- package/dist/utils/encoding.d.ts +3 -0
- package/dist/utils/encoding.d.ts.map +1 -0
- package/dist/utils/encoding.js +7 -0
- package/dist/utils/encoding.js.map +1 -0
- package/dist/utils/env/browser/base64.d.ts +9 -0
- package/dist/utils/env/browser/base64.d.ts.map +1 -0
- package/dist/utils/env/browser/base64.js +42 -0
- package/dist/utils/env/browser/base64.js.map +1 -0
- package/dist/utils/env/browser/crypto.d.ts +5 -0
- package/dist/utils/env/browser/crypto.d.ts.map +1 -0
- package/dist/utils/env/browser/crypto.js +18 -0
- package/dist/utils/env/browser/crypto.js.map +1 -0
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.d.ts.map +1 -0
- package/dist/utils/env/browser/fs.js +4 -0
- package/dist/utils/env/browser/fs.js.map +1 -0
- package/dist/utils/env/browser/hex.d.ts +4 -0
- package/dist/utils/env/browser/hex.d.ts.map +1 -0
- package/dist/utils/env/browser/hex.js +38 -0
- package/dist/utils/env/browser/hex.js.map +1 -0
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.d.ts.map +1 -0
- package/dist/utils/env/browser/hrtime.js +15 -0
- package/dist/utils/env/browser/hrtime.js.map +1 -0
- package/dist/utils/env/browser/logScope.d.ts +25 -0
- package/dist/utils/env/browser/logScope.d.ts.map +1 -0
- package/dist/utils/env/browser/logScope.js +53 -0
- package/dist/utils/env/browser/logScope.js.map +1 -0
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.d.ts.map +1 -0
- package/dist/utils/env/browser/md5.js +199 -0
- package/dist/utils/env/browser/md5.js.map +1 -0
- package/dist/utils/env/browser/platform.d.ts +4 -0
- package/dist/utils/env/browser/platform.d.ts.map +1 -0
- package/dist/utils/env/browser/platform.js +6 -0
- package/dist/utils/env/browser/platform.js.map +1 -0
- package/dist/utils/env/node/base64.d.ts +9 -0
- package/dist/utils/env/node/base64.d.ts.map +1 -0
- package/dist/utils/env/node/base64.js +14 -0
- package/dist/utils/env/node/base64.js.map +1 -0
- package/dist/utils/env/node/crypto.d.ts +5 -0
- package/dist/utils/env/node/crypto.d.ts.map +1 -0
- package/dist/utils/env/node/crypto.js +14 -0
- package/dist/utils/env/node/crypto.js.map +1 -0
- package/dist/utils/env/node/exec.d.ts +89 -0
- package/dist/utils/env/node/exec.d.ts.map +1 -0
- package/dist/utils/env/node/exec.js +277 -0
- package/dist/utils/env/node/exec.js.map +1 -0
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.d.ts.map +1 -0
- package/dist/utils/env/node/fs.js +5 -0
- package/dist/utils/env/node/fs.js.map +1 -0
- package/dist/utils/env/node/hex.d.ts +4 -0
- package/dist/utils/env/node/hex.d.ts.map +1 -0
- package/dist/utils/env/node/hex.js +10 -0
- package/dist/utils/env/node/hex.js.map +1 -0
- package/dist/utils/env/node/hrtime.d.ts +2 -0
- package/dist/utils/env/node/hrtime.d.ts.map +1 -0
- package/dist/utils/env/node/hrtime.js +2 -0
- package/dist/utils/env/node/hrtime.js.map +1 -0
- package/dist/utils/env/node/logScope.d.ts +34 -0
- package/dist/utils/env/node/logScope.d.ts.map +1 -0
- package/dist/utils/env/node/logScope.js +52 -0
- package/dist/utils/env/node/logScope.js.map +1 -0
- package/dist/utils/env/node/platform.d.ts +4 -0
- package/dist/utils/env/node/platform.d.ts.map +1 -0
- package/dist/utils/env/node/platform.js +5 -0
- package/dist/utils/env/node/platform.js.map +1 -0
- package/dist/utils/error.d.ts +18 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +19 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/event.d.ts +59 -0
- package/dist/utils/event.d.ts.map +1 -0
- package/dist/utils/event.js +183 -0
- package/dist/utils/event.js.map +1 -0
- package/dist/utils/formatter.d.ts +21 -0
- package/dist/utils/formatter.d.ts.map +1 -0
- package/dist/utils/formatter.js +139 -0
- package/dist/utils/formatter.js.map +1 -0
- package/dist/utils/fs.d.ts +2 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +2 -0
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/function.d.ts +24 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/function.js +103 -0
- package/dist/utils/function.js.map +1 -0
- package/dist/utils/fuzzy.d.ts +68 -0
- package/dist/utils/fuzzy.d.ts.map +1 -0
- package/dist/utils/fuzzy.js +134 -0
- package/dist/utils/fuzzy.js.map +1 -0
- package/dist/utils/hash.d.ts +32 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +53 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/hex.d.ts +2 -0
- package/dist/utils/hex.d.ts.map +1 -0
- package/dist/utils/hex.js +2 -0
- package/dist/utils/hex.js.map +1 -0
- package/dist/utils/hrtime.d.ts +4 -0
- package/dist/utils/hrtime.d.ts.map +1 -0
- package/dist/utils/hrtime.js +7 -0
- package/dist/utils/hrtime.js.map +1 -0
- package/dist/utils/iterable.d.ts +65 -0
- package/dist/utils/iterable.d.ts.map +1 -0
- package/dist/utils/iterable.js +635 -0
- package/dist/utils/iterable.js.map +1 -0
- package/dist/utils/lazy.d.ts +18 -0
- package/dist/utils/lazy.d.ts.map +1 -0
- package/dist/utils/lazy.js +40 -0
- package/dist/utils/lazy.js.map +1 -0
- package/dist/utils/loggable.d.ts +5 -0
- package/dist/utils/loggable.d.ts.map +1 -0
- package/dist/utils/loggable.js +4 -0
- package/dist/utils/loggable.js.map +1 -0
- package/dist/utils/logger.d.ts +63 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +316 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/logger.scoped.d.ts +56 -0
- package/dist/utils/logger.scoped.d.ts.map +1 -0
- package/dist/utils/logger.scoped.js +166 -0
- package/dist/utils/logger.scoped.js.map +1 -0
- package/dist/utils/markdown.d.ts +9 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.js +100 -0
- package/dist/utils/markdown.js.map +1 -0
- package/dist/utils/mru.d.ts +14 -0
- package/dist/utils/mru.d.ts.map +1 -0
- package/dist/utils/mru.js +63 -0
- package/dist/utils/mru.js.map +1 -0
- package/dist/utils/object.d.ts +62 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.js +151 -0
- package/dist/utils/object.js.map +1 -0
- package/dist/utils/paging.d.ts +19 -0
- package/dist/utils/paging.d.ts.map +1 -0
- package/dist/utils/paging.js +32 -0
- package/dist/utils/paging.js.map +1 -0
- package/dist/utils/path.d.ts +17 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +156 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +2 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/promise.d.ts +61 -0
- package/dist/utils/promise.d.ts.map +1 -0
- package/dist/utils/promise.js +337 -0
- package/dist/utils/promise.js.map +1 -0
- package/dist/utils/promiseCache.d.ts +337 -0
- package/dist/utils/promiseCache.d.ts.map +1 -0
- package/dist/utils/promiseCache.js +634 -0
- package/dist/utils/promiseCache.js.map +1 -0
- package/dist/utils/searchTree.d.ts +58 -0
- package/dist/utils/searchTree.d.ts.map +1 -0
- package/dist/utils/searchTree.js +394 -0
- package/dist/utils/searchTree.js.map +1 -0
- package/dist/utils/stopwatch.d.ts +41 -0
- package/dist/utils/stopwatch.d.ts.map +1 -0
- package/dist/utils/stopwatch.js +83 -0
- package/dist/utils/stopwatch.js.map +1 -0
- package/dist/utils/string.d.ts +91 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/string.js +803 -0
- package/dist/utils/string.js.map +1 -0
- package/dist/utils/subscriptionManager.d.ts +18 -0
- package/dist/utils/subscriptionManager.d.ts.map +1 -0
- package/dist/utils/subscriptionManager.js +34 -0
- package/dist/utils/subscriptionManager.js.map +1 -0
- package/dist/utils/trie.d.ts +76 -0
- package/dist/utils/trie.d.ts.map +1 -0
- package/dist/utils/trie.js +584 -0
- package/dist/utils/trie.js.map +1 -0
- package/dist/utils/types.d.ts +21 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/uri.d.ts +69 -0
- package/dist/utils/uri.d.ts.map +1 -0
- package/dist/utils/uri.js +66 -0
- package/dist/utils/uri.js.map +1 -0
- package/dist/utils/validation.d.ts +14 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +26 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils/version.d.ts +15 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +66 -0
- package/dist/utils/version.js.map +1 -0
- package/package.json +161 -0
- package/src/git/cache.ts +1152 -0
- package/src/git/context.ts +248 -0
- package/src/git/errors.ts +1121 -0
- package/src/git/exec.types.ts +78 -0
- package/src/git/features.ts +45 -0
- package/src/git/models/author.ts +19 -0
- package/src/git/models/autolink.ts +59 -0
- package/src/git/models/blame.ts +46 -0
- package/src/git/models/branch.ts +236 -0
- package/src/git/models/commit.ts +688 -0
- package/src/git/models/contributor.ts +84 -0
- package/src/git/models/defaultBranch.ts +6 -0
- package/src/git/models/diff.ts +74 -0
- package/src/git/models/file.ts +29 -0
- package/src/git/models/fileChange.ts +82 -0
- package/src/git/models/fileStatus.ts +35 -0
- package/src/git/models/graph.ts +184 -0
- package/src/git/models/graphSearch.ts +53 -0
- package/src/git/models/issue.ts +88 -0
- package/src/git/models/issueOrPullRequest.ts +20 -0
- package/src/git/models/lineRange.ts +7 -0
- package/src/git/models/log.ts +21 -0
- package/src/git/models/mergeConflicts.ts +18 -0
- package/src/git/models/patch.ts +25 -0
- package/src/git/models/pausedOperationStatus.ts +63 -0
- package/src/git/models/pullRequest.ts +161 -0
- package/src/git/models/rebase.ts +60 -0
- package/src/git/models/reference.ts +47 -0
- package/src/git/models/reflog.ts +88 -0
- package/src/git/models/remote.ts +99 -0
- package/src/git/models/remoteProvider.ts +290 -0
- package/src/git/models/remoteResource.ts +87 -0
- package/src/git/models/repository.ts +417 -0
- package/src/git/models/repositoryChangeEvent.ts +30 -0
- package/src/git/models/repositoryIdentities.ts +99 -0
- package/src/git/models/repositoryMetadata.ts +12 -0
- package/src/git/models/resourceDescriptor.ts +11 -0
- package/src/git/models/revision.ts +12 -0
- package/src/git/models/search.ts +123 -0
- package/src/git/models/shortlog.ts +6 -0
- package/src/git/models/signature.ts +29 -0
- package/src/git/models/staging.ts +27 -0
- package/src/git/models/stash.ts +6 -0
- package/src/git/models/status.ts +246 -0
- package/src/git/models/statusFile.ts +116 -0
- package/src/git/models/tag.ts +71 -0
- package/src/git/models/tree.ts +10 -0
- package/src/git/models/user.ts +7 -0
- package/src/git/models/worktree.ts +152 -0
- package/src/git/parsers/diffParser.ts +660 -0
- package/src/git/parsers/rebaseTodoParser.ts +169 -0
- package/src/git/providers/blame.ts +40 -0
- package/src/git/providers/branches.ts +111 -0
- package/src/git/providers/commits.ts +147 -0
- package/src/git/providers/config.ts +104 -0
- package/src/git/providers/contributors.ts +34 -0
- package/src/git/providers/diff.ts +127 -0
- package/src/git/providers/graph.ts +30 -0
- package/src/git/providers/operations.ts +82 -0
- package/src/git/providers/patch.ts +31 -0
- package/src/git/providers/pausedOperations.ts +10 -0
- package/src/git/providers/provider.ts +62 -0
- package/src/git/providers/refs.ts +39 -0
- package/src/git/providers/remotes.ts +33 -0
- package/src/git/providers/revision.ts +28 -0
- package/src/git/providers/shared/remotes.ts +95 -0
- package/src/git/providers/staging.ts +22 -0
- package/src/git/providers/stash.ts +51 -0
- package/src/git/providers/status.ts +42 -0
- package/src/git/providers/tags.ts +28 -0
- package/src/git/providers/types.ts +33 -0
- package/src/git/providers/worktrees.ts +23 -0
- package/src/git/remotes/azure-devops.ts +309 -0
- package/src/git/remotes/bitbucket-server.ts +191 -0
- package/src/git/remotes/bitbucket.ts +144 -0
- package/src/git/remotes/custom.ts +139 -0
- package/src/git/remotes/gerrit.ts +188 -0
- package/src/git/remotes/gitea.ts +186 -0
- package/src/git/remotes/github.ts +238 -0
- package/src/git/remotes/gitlab.ts +272 -0
- package/src/git/remotes/google-source.ts +51 -0
- package/src/git/remotes/matcher.ts +215 -0
- package/src/git/repositoryService.ts +179 -0
- package/src/git/service.ts +365 -0
- package/src/git/utils/autolink.utils.ts +201 -0
- package/src/git/utils/blame.utils.ts +296 -0
- package/src/git/utils/branch.utils.ts +154 -0
- package/src/git/utils/commit.utils.ts +89 -0
- package/src/git/utils/contributor.utils.ts +81 -0
- package/src/git/utils/fetch.utils.ts +48 -0
- package/src/git/utils/fileStatus.utils.ts +49 -0
- package/src/git/utils/issue.utils.ts +81 -0
- package/src/git/utils/issueOrPullRequest.utils.ts +23 -0
- package/src/git/utils/mergeConflicts.utils.ts +21 -0
- package/src/git/utils/pausedOperationStatus.utils.ts +156 -0
- package/src/git/utils/pullRequest.utils.ts +149 -0
- package/src/git/utils/rebase.utils.ts +128 -0
- package/src/git/utils/reference.utils.ts +267 -0
- package/src/git/utils/remote.utils.ts +140 -0
- package/src/git/utils/repository.utils.ts +18 -0
- package/src/git/utils/resourceDescriptor.utils.ts +26 -0
- package/src/git/utils/revision.utils.ts +149 -0
- package/src/git/utils/search.utils.ts +498 -0
- package/src/git/utils/sorting.ts +291 -0
- package/src/git/utils/status.utils.ts +114 -0
- package/src/git/utils/statusFile.utils.ts +182 -0
- package/src/git/utils/tag.utils.ts +17 -0
- package/src/git/utils/tooltip.utils.ts +37 -0
- package/src/git/utils/uriAuthority.ts +34 -0
- package/src/git/utils/user.utils.ts +20 -0
- package/src/git/utils/worktree.utils.ts +21 -0
- package/src/git/watching/changeEvent.ts +90 -0
- package/src/git/watching/classifyChange.ts +81 -0
- package/src/git/watching/gitIgnoreFilter.ts +134 -0
- package/src/git/watching/initWatcher.ts +79 -0
- package/src/git/watching/provider.ts +24 -0
- package/src/git/watching/watchGroup.ts +182 -0
- package/src/git/watching/watchService.ts +350 -0
- package/src/git/watching/watchSession.ts +370 -0
- package/src/git/watching/watcherPatterns.ts +51 -0
- package/src/git-cli/cliGitProvider.ts +436 -0
- package/src/git-cli/exec/exec.errors.ts +1 -0
- package/src/git-cli/exec/exec.ts +11 -0
- package/src/git-cli/exec/exec.types.ts +8 -0
- package/src/git-cli/exec/features.ts +2 -0
- package/src/git-cli/exec/git.ts +1092 -0
- package/src/git-cli/exec/gitQueue.ts +251 -0
- package/src/git-cli/exec/locator.ts +157 -0
- package/src/git-cli/parsers/blameParser.ts +373 -0
- package/src/git-cli/parsers/indexParser.ts +192 -0
- package/src/git-cli/parsers/logParser.ts +1275 -0
- package/src/git-cli/parsers/mergeTreeParser.ts +22 -0
- package/src/git-cli/parsers/refParser.ts +111 -0
- package/src/git-cli/parsers/reflogParser.ts +153 -0
- package/src/git-cli/parsers/remoteParser.ts +95 -0
- package/src/git-cli/parsers/shortlogParser.ts +59 -0
- package/src/git-cli/parsers/signatureParser.ts +162 -0
- package/src/git-cli/parsers/statusParser.ts +209 -0
- package/src/git-cli/parsers/treeParser.ts +61 -0
- package/src/git-cli/parsers/worktreeParser.ts +113 -0
- package/src/git-cli/providers/blame.ts +602 -0
- package/src/git-cli/providers/branches.ts +1491 -0
- package/src/git-cli/providers/commitFilesetUtils.ts +45 -0
- package/src/git-cli/providers/commits.ts +1517 -0
- package/src/git-cli/providers/config.ts +724 -0
- package/src/git-cli/providers/contributors.ts +361 -0
- package/src/git-cli/providers/diff.ts +1084 -0
- package/src/git-cli/providers/graph.ts +799 -0
- package/src/git-cli/providers/operations.ts +776 -0
- package/src/git-cli/providers/patch.ts +326 -0
- package/src/git-cli/providers/pausedOperations.ts +538 -0
- package/src/git-cli/providers/refs.ts +193 -0
- package/src/git-cli/providers/remotes.ts +115 -0
- package/src/git-cli/providers/revision.ts +334 -0
- package/src/git-cli/providers/staging.ts +160 -0
- package/src/git-cli/providers/stash.ts +626 -0
- package/src/git-cli/providers/status.ts +373 -0
- package/src/git-cli/providers/tags.ts +188 -0
- package/src/git-cli/providers/worktrees.ts +229 -0
- package/src/git-cli/service.ts +74 -0
- package/src/plus/ai/constants.ts +121 -0
- package/src/plus/ai/errors.ts +82 -0
- package/src/plus/ai/models/conversation.ts +35 -0
- package/src/plus/ai/models/model.ts +425 -0
- package/src/plus/ai/models/promptTemplates.ts +122 -0
- package/src/plus/ai/models/provider.ts +52 -0
- package/src/plus/ai/models/results.ts +1 -0
- package/src/plus/ai/prompts.ts +528 -0
- package/src/plus/ai/providers/anthropicProvider.ts +308 -0
- package/src/plus/ai/providers/azureProvider.ts +74 -0
- package/src/plus/ai/providers/context.ts +29 -0
- package/src/plus/ai/providers/deepSeekProvider.ts +40 -0
- package/src/plus/ai/providers/geminiProvider.ts +207 -0
- package/src/plus/ai/providers/githubModelsProvider.ts +92 -0
- package/src/plus/ai/providers/gitkrakenProvider.ts +218 -0
- package/src/plus/ai/providers/huggingFaceProvider.ts +51 -0
- package/src/plus/ai/providers/mistralProvider.ts +160 -0
- package/src/plus/ai/providers/ollamaProvider.ts +241 -0
- package/src/plus/ai/providers/openAICompatibleProvider.ts +59 -0
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +279 -0
- package/src/plus/ai/providers/openRouterProvider.ts +84 -0
- package/src/plus/ai/providers/openaiProvider.ts +46 -0
- package/src/plus/ai/providers/xaiProvider.ts +32 -0
- package/src/plus/ai/utils/ai.utils.ts +79 -0
- package/src/plus/ai/utils/results.utils.ts +50 -0
- package/src/plus/ai/utils/truncation.utils.ts +295 -0
- package/src/plus/git-github/api/config.ts +78 -0
- package/src/plus/git-github/api/github.ts +3424 -0
- package/src/plus/git-github/api/github.utils.ts +36 -0
- package/src/plus/git-github/api/token.ts +15 -0
- package/src/plus/git-github/api/tokenUtils.ts +15 -0
- package/src/plus/git-github/api/types.ts +182 -0
- package/src/plus/git-github/context.ts +107 -0
- package/src/plus/git-github/models.ts +524 -0
- package/src/plus/git-github/providers/github/blame.ts +222 -0
- package/src/plus/git-github/providers/github/branches.ts +356 -0
- package/src/plus/git-github/providers/github/commits.ts +858 -0
- package/src/plus/git-github/providers/github/config.ts +47 -0
- package/src/plus/git-github/providers/github/contributors.ts +313 -0
- package/src/plus/git-github/providers/github/diff.ts +267 -0
- package/src/plus/git-github/providers/github/graph.ts +511 -0
- package/src/plus/git-github/providers/github/refs.ts +137 -0
- package/src/plus/git-github/providers/github/remotes.ts +44 -0
- package/src/plus/git-github/providers/github/revision.ts +141 -0
- package/src/plus/git-github/providers/github/status.ts +63 -0
- package/src/plus/git-github/providers/github/tags.ts +147 -0
- package/src/plus/git-github/providers/githubGitProvider.ts +167 -0
- package/src/plus/git-github/providers/githubProvider.ts +65 -0
- package/src/utils/array.ts +194 -0
- package/src/utils/base64.ts +1 -0
- package/src/utils/brand.ts +9 -0
- package/src/utils/cancellation.ts +150 -0
- package/src/utils/charCode.ts +38 -0
- package/src/utils/color.ts +815 -0
- package/src/utils/counter.ts +21 -0
- package/src/utils/crypto.ts +1 -0
- package/src/utils/date.ts +394 -0
- package/src/utils/debounce.ts +303 -0
- package/src/utils/decorators/debounce.ts +31 -0
- package/src/utils/decorators/gate.ts +167 -0
- package/src/utils/decorators/log.ts +320 -0
- package/src/utils/decorators/memoize.ts +98 -0
- package/src/utils/decorators/resolver.ts +95 -0
- package/src/utils/decorators/sequentialize.ts +116 -0
- package/src/utils/decorators/serializable.ts +42 -0
- package/src/utils/disposable.ts +141 -0
- package/src/utils/encoding.ts +8 -0
- package/src/utils/env/browser/base64.ts +50 -0
- package/src/utils/env/browser/crypto.ts +21 -0
- package/src/utils/env/browser/fs.ts +3 -0
- package/src/utils/env/browser/hex.ts +41 -0
- package/src/utils/env/browser/hrtime.ts +14 -0
- package/src/utils/env/browser/logScope.ts +57 -0
- package/src/utils/env/browser/md5.ts +217 -0
- package/src/utils/env/browser/platform.ts +10 -0
- package/src/utils/env/node/base64.ts +17 -0
- package/src/utils/env/node/crypto.ts +17 -0
- package/src/utils/env/node/exec.ts +471 -0
- package/src/utils/env/node/fs.ts +5 -0
- package/src/utils/env/node/hex.ts +11 -0
- package/src/utils/env/node/hrtime.ts +1 -0
- package/src/utils/env/node/logScope.ts +63 -0
- package/src/utils/env/node/platform.ts +5 -0
- package/src/utils/error.ts +17 -0
- package/src/utils/event.ts +236 -0
- package/src/utils/formatter.ts +205 -0
- package/src/utils/fs.ts +1 -0
- package/src/utils/function.ts +141 -0
- package/src/utils/fuzzy.ts +185 -0
- package/src/utils/hash.ts +60 -0
- package/src/utils/hex.ts +1 -0
- package/src/utils/hrtime.ts +8 -0
- package/src/utils/iterable.ts +787 -0
- package/src/utils/lazy.ts +39 -0
- package/src/utils/loggable.ts +7 -0
- package/src/utils/logger.scoped.ts +237 -0
- package/src/utils/logger.ts +402 -0
- package/src/utils/markdown.ts +114 -0
- package/src/utils/mru.ts +66 -0
- package/src/utils/object.ts +227 -0
- package/src/utils/paging.ts +51 -0
- package/src/utils/path.ts +189 -0
- package/src/utils/platform.ts +1 -0
- package/src/utils/promise.ts +590 -0
- package/src/utils/promiseCache.ts +803 -0
- package/src/utils/searchTree.ts +442 -0
- package/src/utils/stopwatch.ts +125 -0
- package/src/utils/string.ts +964 -0
- package/src/utils/subscriptionManager.ts +40 -0
- package/src/utils/trie.ts +739 -0
- package/src/utils/types.ts +31 -0
- package/src/utils/uri.ts +117 -0
- package/src/utils/validation.ts +38 -0
- package/src/utils/version.ts +79 -0
|
@@ -0,0 +1,799 @@
|
|
|
1
|
+
import type { Cache } from '../../git/cache.js';
|
|
2
|
+
import type { GitServiceContext } from '../../git/context.js';
|
|
3
|
+
import { GitSearchError } from '../../git/errors.js';
|
|
4
|
+
import type { GitBranch } from '../../git/models/branch.js';
|
|
5
|
+
import type { GitStashCommit } from '../../git/models/commit.js';
|
|
6
|
+
import type {
|
|
7
|
+
GitGraph,
|
|
8
|
+
GitGraphRow,
|
|
9
|
+
GitGraphRowHead,
|
|
10
|
+
GitGraphRowRemoteHead,
|
|
11
|
+
GitGraphRowsStats,
|
|
12
|
+
GitGraphRowStats,
|
|
13
|
+
GitGraphRowTag,
|
|
14
|
+
GraphContext,
|
|
15
|
+
GraphRowProcessor,
|
|
16
|
+
} from '../../git/models/graph.js';
|
|
17
|
+
import type {
|
|
18
|
+
GitGraphSearch,
|
|
19
|
+
GitGraphSearchCursor,
|
|
20
|
+
GitGraphSearchProgress,
|
|
21
|
+
GitGraphSearchResultData,
|
|
22
|
+
GitGraphSearchResults,
|
|
23
|
+
} from '../../git/models/graphSearch.js';
|
|
24
|
+
import type { GitRemote } from '../../git/models/remote.js';
|
|
25
|
+
import type { SearchQuery } from '../../git/models/search.js';
|
|
26
|
+
import type { GitWorktree } from '../../git/models/worktree.js';
|
|
27
|
+
import type { GitGraphSubProvider } from '../../git/providers/graph.js';
|
|
28
|
+
import {
|
|
29
|
+
getBranchId,
|
|
30
|
+
getBranchNameWithoutRemote,
|
|
31
|
+
getRemoteNameFromBranchName,
|
|
32
|
+
} from '../../git/utils/branch.utils.js';
|
|
33
|
+
import { getChangedFilesCount } from '../../git/utils/commit.utils.js';
|
|
34
|
+
import { isUncommitted } from '../../git/utils/revision.utils.js';
|
|
35
|
+
import { getSearchQueryComparisonKey, parseSearchQueryGitCommand } from '../../git/utils/search.utils.js';
|
|
36
|
+
import { getTagId } from '../../git/utils/tag.utils.js';
|
|
37
|
+
import { isUserMatch } from '../../git/utils/user.utils.js';
|
|
38
|
+
import { getWorktreeId, groupWorktreesByBranch } from '../../git/utils/worktree.utils.js';
|
|
39
|
+
import { isCancellationError } from '../../utils/cancellation.js';
|
|
40
|
+
import { debug } from '../../utils/decorators/log.js';
|
|
41
|
+
import { createDisposable } from '../../utils/disposable.js';
|
|
42
|
+
import { find, first, join, last } from '../../utils/iterable.js';
|
|
43
|
+
import { getScopedLogger } from '../../utils/logger.scoped.js';
|
|
44
|
+
import { getSettledValue } from '../../utils/promise.js';
|
|
45
|
+
import type { CliGitProviderInternal } from '../cliGitProvider.js';
|
|
46
|
+
import type { Git } from '../exec/git.js';
|
|
47
|
+
import { gitConfigsLog } from '../exec/git.js';
|
|
48
|
+
import {
|
|
49
|
+
getGraphParser,
|
|
50
|
+
getShaAndDatesLogParser,
|
|
51
|
+
getShaAndDatesWithFilesLogParser,
|
|
52
|
+
getShaAndStatsLogParser,
|
|
53
|
+
getShaLogParser,
|
|
54
|
+
} from '../parsers/logParser.js';
|
|
55
|
+
import { convertStashesToStdin } from './stash.js';
|
|
56
|
+
|
|
57
|
+
const progressiveSearchResultsBatchTimeMs = 500; // Send updates every 500ms (2 updates/second)
|
|
58
|
+
|
|
59
|
+
export class GraphGitSubProvider implements GitGraphSubProvider {
|
|
60
|
+
constructor(
|
|
61
|
+
private readonly context: GitServiceContext,
|
|
62
|
+
private readonly git: Git,
|
|
63
|
+
private readonly cache: Cache,
|
|
64
|
+
private readonly provider: CliGitProviderInternal,
|
|
65
|
+
) {}
|
|
66
|
+
|
|
67
|
+
@debug()
|
|
68
|
+
async getGraph(
|
|
69
|
+
repoPath: string,
|
|
70
|
+
rev: string | undefined,
|
|
71
|
+
options?: { include?: { stats?: boolean }; limit?: number; rowProcessor?: GraphRowProcessor },
|
|
72
|
+
cancellation?: AbortSignal,
|
|
73
|
+
): Promise<GitGraph> {
|
|
74
|
+
const scope = getScopedLogger();
|
|
75
|
+
|
|
76
|
+
const cfg = this.context.config;
|
|
77
|
+
const defaultLimit = options?.limit ?? 5000;
|
|
78
|
+
const ordering: 'date' | 'author-date' | 'topo' = cfg?.graph?.commitOrdering ?? cfg?.commits.ordering ?? 'date';
|
|
79
|
+
const onlyFollowFirstParent = cfg?.graph?.onlyFollowFirstParent ?? false;
|
|
80
|
+
|
|
81
|
+
const deferStats = options?.include?.stats;
|
|
82
|
+
|
|
83
|
+
const parser = getGraphParser(options?.include?.stats && !deferStats);
|
|
84
|
+
const shaParser = getShaLogParser();
|
|
85
|
+
const statsParser = getShaAndStatsLogParser();
|
|
86
|
+
|
|
87
|
+
const [shaResult, stashResult, branchesResult, remotesResult, currentUserResult, worktreesResult] =
|
|
88
|
+
await Promise.allSettled([
|
|
89
|
+
!isUncommitted(rev, true)
|
|
90
|
+
? this.git.exec(
|
|
91
|
+
{ cwd: repoPath, configs: gitConfigsLog },
|
|
92
|
+
'log',
|
|
93
|
+
...shaParser.arguments,
|
|
94
|
+
'-n1',
|
|
95
|
+
rev ?? 'HEAD',
|
|
96
|
+
'--',
|
|
97
|
+
)
|
|
98
|
+
: undefined,
|
|
99
|
+
this.provider.stash?.getStash(repoPath, undefined, cancellation),
|
|
100
|
+
this.provider.branches.getBranches(repoPath, undefined, cancellation),
|
|
101
|
+
this.provider.remotes.getRemotes(repoPath, undefined, cancellation),
|
|
102
|
+
this.provider.config.getCurrentUser(repoPath),
|
|
103
|
+
this.provider.worktrees
|
|
104
|
+
?.getWorktrees(repoPath, cancellation)
|
|
105
|
+
.then((w): [GitWorktree[], Map<string, GitWorktree>] => [
|
|
106
|
+
w,
|
|
107
|
+
groupWorktreesByBranch(w, { includeDefault: true }),
|
|
108
|
+
]),
|
|
109
|
+
]);
|
|
110
|
+
|
|
111
|
+
const branches = getSettledValue(branchesResult)?.values;
|
|
112
|
+
const branchMap = branches != null ? new Map(branches.map(r => [r.name, r])) : new Map<string, GitBranch>();
|
|
113
|
+
const headBranch = branches?.find(b => b.current);
|
|
114
|
+
const headRefUpstreamName = headBranch?.upstream?.name;
|
|
115
|
+
const [worktrees, worktreesByBranch] = getSettledValue(worktreesResult) ?? [[], new Map<string, GitWorktree>()];
|
|
116
|
+
|
|
117
|
+
let branchIdOfMainWorktree: string | undefined;
|
|
118
|
+
if (worktreesByBranch != null) {
|
|
119
|
+
branchIdOfMainWorktree = find(worktreesByBranch, ([, wt]) => wt.isDefault)?.[0];
|
|
120
|
+
if (branchIdOfMainWorktree != null) {
|
|
121
|
+
worktreesByBranch.delete(branchIdOfMainWorktree);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const currentUser = getSettledValue(currentUserResult);
|
|
126
|
+
|
|
127
|
+
const remotes = getSettledValue(remotesResult);
|
|
128
|
+
const remoteMap = remotes != null ? new Map(remotes.map(r => [r.name, r])) : new Map<string, GitRemote>();
|
|
129
|
+
const shas = getSettledValue(shaResult)?.stdout;
|
|
130
|
+
const selectSha = shas != null ? first(shaParser.parse(shas)) : undefined;
|
|
131
|
+
|
|
132
|
+
const downstreamMap = new Map<string, string[]>();
|
|
133
|
+
|
|
134
|
+
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
135
|
+
const gitStash = getSettledValue(stashResult);
|
|
136
|
+
const { stdin, remappedIds } = convertStashesToStdin(gitStash?.stashes);
|
|
137
|
+
|
|
138
|
+
const avatars = new Map<string, string>();
|
|
139
|
+
const ids = new Set<string>();
|
|
140
|
+
const reachableFromHEAD = new Set<string>();
|
|
141
|
+
const reachableFromBranches = new Map<string, Set<string>>();
|
|
142
|
+
const rowStats: GitGraphRowsStats = new Map<string, GitGraphRowStats>();
|
|
143
|
+
let pendingRowsStatsCount = 0;
|
|
144
|
+
let iterations = 0;
|
|
145
|
+
let total = 0;
|
|
146
|
+
|
|
147
|
+
const args = ['log', ...parser.arguments, `--${ordering}-order`, '--all'];
|
|
148
|
+
if (stdin) {
|
|
149
|
+
args.push('--stdin');
|
|
150
|
+
}
|
|
151
|
+
if (onlyFollowFirstParent) {
|
|
152
|
+
args.push('--first-parent');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async function getCommitsForGraphCore(
|
|
156
|
+
this: GraphGitSubProvider,
|
|
157
|
+
limit: number,
|
|
158
|
+
sha?: string,
|
|
159
|
+
cursor?: { sha: string; skip: number },
|
|
160
|
+
cancellation?: AbortSignal,
|
|
161
|
+
): Promise<GitGraph> {
|
|
162
|
+
try {
|
|
163
|
+
iterations++;
|
|
164
|
+
const startTotal = total;
|
|
165
|
+
|
|
166
|
+
const aborter = new AbortController();
|
|
167
|
+
const onAbort = () => {
|
|
168
|
+
aborter.abort();
|
|
169
|
+
};
|
|
170
|
+
cancellation?.addEventListener('abort', onAbort, { once: true });
|
|
171
|
+
using _disposable = createDisposable(() => cancellation?.removeEventListener('abort', onAbort));
|
|
172
|
+
|
|
173
|
+
const stream = this.git.stream(
|
|
174
|
+
{ cwd: repoPath, configs: gitConfigsLog, cancellation: aborter.signal, stdin: stdin },
|
|
175
|
+
...args,
|
|
176
|
+
cursor?.skip ? `--skip=${cursor.skip}` : undefined,
|
|
177
|
+
'--',
|
|
178
|
+
);
|
|
179
|
+
using _streamDisposer = createDisposable(() => void stream.return?.(undefined));
|
|
180
|
+
|
|
181
|
+
const rows: GitGraphRow[] = [];
|
|
182
|
+
|
|
183
|
+
let branch: GitBranch | undefined;
|
|
184
|
+
let branchId: string;
|
|
185
|
+
let branchName: string;
|
|
186
|
+
let head = false;
|
|
187
|
+
let isCurrentUser = false;
|
|
188
|
+
let refHead: GitGraphRowHead;
|
|
189
|
+
let refHeads: GitGraphRowHead[];
|
|
190
|
+
let refRemoteHead: GitGraphRowRemoteHead;
|
|
191
|
+
let refRemoteHeads: GitGraphRowRemoteHead[];
|
|
192
|
+
let refTag: GitGraphRowTag;
|
|
193
|
+
let refTags: GitGraphRowTag[];
|
|
194
|
+
let parent: string;
|
|
195
|
+
let parents: string[];
|
|
196
|
+
let remote: GitRemote | undefined;
|
|
197
|
+
let remoteBranchId: string;
|
|
198
|
+
let remoteName: string;
|
|
199
|
+
let shaOrRemapped: string | undefined;
|
|
200
|
+
let stash: GitStashCommit | undefined;
|
|
201
|
+
let tagId: string;
|
|
202
|
+
let tagName: string;
|
|
203
|
+
let tip: string;
|
|
204
|
+
|
|
205
|
+
let count = 0;
|
|
206
|
+
let found = false;
|
|
207
|
+
let hasMore = false;
|
|
208
|
+
|
|
209
|
+
const rowProcessor = options?.rowProcessor;
|
|
210
|
+
const graphCtx: GraphContext | undefined =
|
|
211
|
+
rowProcessor != null
|
|
212
|
+
? {
|
|
213
|
+
repoPath: repoPath,
|
|
214
|
+
useAvatars: cfg?.graph?.avatars ?? true,
|
|
215
|
+
branches: branchMap,
|
|
216
|
+
remotes: remoteMap,
|
|
217
|
+
worktreesByBranch: worktreesByBranch,
|
|
218
|
+
branchIdOfMainWorktree: branchIdOfMainWorktree,
|
|
219
|
+
stashes: gitStash?.stashes,
|
|
220
|
+
reachableFromHEAD: reachableFromHEAD,
|
|
221
|
+
reachableFromBranches: reachableFromBranches,
|
|
222
|
+
avatars: avatars,
|
|
223
|
+
}
|
|
224
|
+
: undefined;
|
|
225
|
+
|
|
226
|
+
for await (const commit of parser.parseAsync(stream)) {
|
|
227
|
+
// Stopping logic (check AFTER processing the commit):
|
|
228
|
+
// - SHA + limit > 0: Find SHA, ensure at least `limit` commits loaded
|
|
229
|
+
// - SHA + limit = 0: Find SHA, stop immediately
|
|
230
|
+
// - No SHA + limit > 0: Load exactly `limit` commits
|
|
231
|
+
// - No SHA + limit = 0: Load everything remaining
|
|
232
|
+
if ((limit && count >= limit && (!sha || found)) || (!limit && sha && found)) {
|
|
233
|
+
hasMore = true;
|
|
234
|
+
aborter.abort();
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (sha && !found && commit.sha === sha) {
|
|
239
|
+
found = true;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
count++;
|
|
243
|
+
if (ids.has(commit.sha)) continue;
|
|
244
|
+
|
|
245
|
+
total++;
|
|
246
|
+
shaOrRemapped = remappedIds.get(commit.sha);
|
|
247
|
+
if (shaOrRemapped && ids.has(shaOrRemapped)) continue;
|
|
248
|
+
shaOrRemapped ??= commit.sha;
|
|
249
|
+
|
|
250
|
+
ids.add(shaOrRemapped);
|
|
251
|
+
|
|
252
|
+
refHeads = [];
|
|
253
|
+
refRemoteHeads = [];
|
|
254
|
+
refTags = [];
|
|
255
|
+
|
|
256
|
+
if (commit.tips) {
|
|
257
|
+
for (tip of commit.tips.split(', ')) {
|
|
258
|
+
head = false;
|
|
259
|
+
if (tip === 'refs/stash') continue;
|
|
260
|
+
|
|
261
|
+
if (tip.startsWith('tag: ')) {
|
|
262
|
+
tagName = tip.substring(5);
|
|
263
|
+
tagId = getTagId(repoPath, tagName);
|
|
264
|
+
refTag = {
|
|
265
|
+
id: tagId,
|
|
266
|
+
name: tagName,
|
|
267
|
+
// Not currently used, so don't bother looking it up
|
|
268
|
+
annotated: true,
|
|
269
|
+
};
|
|
270
|
+
refTags.push(refTag);
|
|
271
|
+
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (tip.startsWith('HEAD')) {
|
|
276
|
+
head = true;
|
|
277
|
+
reachableFromHEAD.add(shaOrRemapped);
|
|
278
|
+
|
|
279
|
+
if (tip !== 'HEAD') {
|
|
280
|
+
tip = tip.substring(8);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
remoteName = getRemoteNameFromBranchName(tip);
|
|
285
|
+
if (remoteName) {
|
|
286
|
+
remote = remoteMap.get(remoteName);
|
|
287
|
+
if (remote != null) {
|
|
288
|
+
branchName = getBranchNameWithoutRemote(tip);
|
|
289
|
+
if (branchName === 'HEAD') continue;
|
|
290
|
+
|
|
291
|
+
remoteBranchId = getBranchId(repoPath, true, tip);
|
|
292
|
+
refRemoteHead = {
|
|
293
|
+
id: remoteBranchId,
|
|
294
|
+
name: branchName,
|
|
295
|
+
owner: remote.name,
|
|
296
|
+
url: remote.url,
|
|
297
|
+
current: tip === headRefUpstreamName,
|
|
298
|
+
hostingServiceType: remote.provider?.gkProviderId,
|
|
299
|
+
};
|
|
300
|
+
refRemoteHeads.push(refRemoteHead);
|
|
301
|
+
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
branch = branchMap.get(tip);
|
|
307
|
+
branchId = branch?.id ?? getBranchId(repoPath, false, tip);
|
|
308
|
+
const worktree = worktreesByBranch?.get(branchId);
|
|
309
|
+
refHead = {
|
|
310
|
+
id: branchId,
|
|
311
|
+
name: tip,
|
|
312
|
+
isCurrentHead: head,
|
|
313
|
+
upstream:
|
|
314
|
+
branch?.upstream != null
|
|
315
|
+
? {
|
|
316
|
+
name: branch.upstream.name,
|
|
317
|
+
id: getBranchId(repoPath, true, branch.upstream.name),
|
|
318
|
+
}
|
|
319
|
+
: undefined,
|
|
320
|
+
worktreeId: worktree != null ? getWorktreeId(repoPath, worktree.name) : undefined,
|
|
321
|
+
};
|
|
322
|
+
refHeads.push(refHead);
|
|
323
|
+
if (branch?.upstream?.name != null) {
|
|
324
|
+
// Add the branch name (tip) to the upstream name entry in the downstreams map
|
|
325
|
+
let downstreams = downstreamMap.get(branch.upstream.name);
|
|
326
|
+
if (downstreams == null) {
|
|
327
|
+
downstreams = [];
|
|
328
|
+
downstreamMap.set(branch.upstream.name, downstreams);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
downstreams.push(tip);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
parents = commit.parents ? commit.parents.split(' ') : [];
|
|
337
|
+
if (reachableFromHEAD.has(shaOrRemapped)) {
|
|
338
|
+
for (parent of parents) {
|
|
339
|
+
reachableFromHEAD.add(parent);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (refHeads.length > 0) {
|
|
344
|
+
let branches = reachableFromBranches.get(shaOrRemapped);
|
|
345
|
+
if (branches == null) {
|
|
346
|
+
branches = new Set<string>();
|
|
347
|
+
reachableFromBranches.set(shaOrRemapped, branches);
|
|
348
|
+
}
|
|
349
|
+
for (const refHead of refHeads) {
|
|
350
|
+
branches.add(refHead.name);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
const currentBranches = reachableFromBranches.get(shaOrRemapped);
|
|
355
|
+
if (currentBranches != null && currentBranches.size > 0) {
|
|
356
|
+
for (parent of parents) {
|
|
357
|
+
let parentBranches = reachableFromBranches.get(parent);
|
|
358
|
+
if (parentBranches == null) {
|
|
359
|
+
parentBranches = new Set<string>();
|
|
360
|
+
reachableFromBranches.set(parent, parentBranches);
|
|
361
|
+
}
|
|
362
|
+
for (const branchName of currentBranches) {
|
|
363
|
+
parentBranches.add(branchName);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
stash = gitStash?.stashes.get(shaOrRemapped);
|
|
369
|
+
if (stash != null) {
|
|
370
|
+
const branches = reachableFromBranches.get(shaOrRemapped);
|
|
371
|
+
const row: GitGraphRow = {
|
|
372
|
+
sha: shaOrRemapped,
|
|
373
|
+
// Always only return the first parent for stashes, as it is a Git implementation for the index and untracked files
|
|
374
|
+
parents: parents.slice(0, 1),
|
|
375
|
+
author: currentUser?.name ?? commit.author,
|
|
376
|
+
email: commit.authorEmail,
|
|
377
|
+
date: Number(ordering === 'author-date' ? commit.authorDate : commit.committerDate) * 1000,
|
|
378
|
+
commitDate: Number(commit.committerDate) * 1000,
|
|
379
|
+
message: (stash.message ?? commit.message).trim(),
|
|
380
|
+
type: 'stash-node',
|
|
381
|
+
heads: refHeads,
|
|
382
|
+
remotes: refRemoteHeads,
|
|
383
|
+
tags: refTags,
|
|
384
|
+
reachableFromBranches: branches ? [...branches] : undefined,
|
|
385
|
+
isCurrentUser: true,
|
|
386
|
+
};
|
|
387
|
+
rowProcessor?.processRow(row, graphCtx!);
|
|
388
|
+
rows.push(row);
|
|
389
|
+
|
|
390
|
+
if (stash.stats != null) {
|
|
391
|
+
rowStats.set(shaOrRemapped, {
|
|
392
|
+
files: getChangedFilesCount(stash.stats.files),
|
|
393
|
+
additions: stash.stats.additions,
|
|
394
|
+
deletions: stash.stats.deletions,
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
isCurrentUser = isUserMatch(currentUser, commit.author, commit.authorEmail);
|
|
399
|
+
|
|
400
|
+
const branches = reachableFromBranches.get(shaOrRemapped);
|
|
401
|
+
const row: GitGraphRow = {
|
|
402
|
+
sha: shaOrRemapped,
|
|
403
|
+
parents: onlyFollowFirstParent ? parents.slice(0, 1) : parents,
|
|
404
|
+
author: commit.author,
|
|
405
|
+
email: commit.authorEmail,
|
|
406
|
+
date: Number(ordering === 'author-date' ? commit.authorDate : commit.committerDate) * 1000,
|
|
407
|
+
commitDate: Number(commit.committerDate) * 1000,
|
|
408
|
+
message: commit.message.trim(),
|
|
409
|
+
type: parents.length > 1 ? 'merge-node' : 'commit-node',
|
|
410
|
+
heads: refHeads,
|
|
411
|
+
remotes: refRemoteHeads,
|
|
412
|
+
tags: refTags,
|
|
413
|
+
reachableFromBranches: branches ? [...branches] : undefined,
|
|
414
|
+
isCurrentUser: isCurrentUser || undefined,
|
|
415
|
+
};
|
|
416
|
+
rowProcessor?.processRow(row, graphCtx!);
|
|
417
|
+
rows.push(row);
|
|
418
|
+
|
|
419
|
+
if (commit.stats != null) {
|
|
420
|
+
rowStats.set(shaOrRemapped, commit.stats);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
const startingCursor = cursor?.sha;
|
|
426
|
+
const lastSha = last(ids);
|
|
427
|
+
cursor = lastSha != null ? { sha: lastSha, skip: total - iterations } : undefined;
|
|
428
|
+
|
|
429
|
+
let rowsStatsDeferred: GitGraph['rowsStatsDeferred'];
|
|
430
|
+
|
|
431
|
+
if (deferStats) {
|
|
432
|
+
pendingRowsStatsCount++;
|
|
433
|
+
|
|
434
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
435
|
+
const promise = new Promise<void>(async resolve => {
|
|
436
|
+
try {
|
|
437
|
+
const args = [...statsParser.arguments];
|
|
438
|
+
if (startTotal === 0) {
|
|
439
|
+
args.push(`-n${total}`);
|
|
440
|
+
} else {
|
|
441
|
+
args.push(`-n${total - startTotal}`, `--skip=${startTotal}`);
|
|
442
|
+
}
|
|
443
|
+
args.push(`--${ordering}-order`, '--all');
|
|
444
|
+
|
|
445
|
+
const statsResult = await this.git.exec(
|
|
446
|
+
{ cwd: repoPath, configs: gitConfigsLog, stdin: stdin },
|
|
447
|
+
'log',
|
|
448
|
+
stdin ? '--stdin' : undefined,
|
|
449
|
+
...args,
|
|
450
|
+
'--',
|
|
451
|
+
);
|
|
452
|
+
|
|
453
|
+
if (statsResult.stdout) {
|
|
454
|
+
let statShaOrRemapped;
|
|
455
|
+
for (const stat of statsParser.parse(statsResult.stdout)) {
|
|
456
|
+
statShaOrRemapped = remappedIds.get(stat.sha) ?? stat.sha;
|
|
457
|
+
|
|
458
|
+
// If we already have the stats for this sha, skip it (e.g. stashes)
|
|
459
|
+
if (rowStats.has(statShaOrRemapped)) continue;
|
|
460
|
+
|
|
461
|
+
rowStats.set(statShaOrRemapped, stat.stats);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
} finally {
|
|
465
|
+
pendingRowsStatsCount--;
|
|
466
|
+
resolve();
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
rowsStatsDeferred = {
|
|
471
|
+
isLoaded: () => pendingRowsStatsCount === 0,
|
|
472
|
+
promise: promise,
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
repoPath: repoPath,
|
|
478
|
+
avatars: avatars,
|
|
479
|
+
ids: ids,
|
|
480
|
+
includes: options?.include,
|
|
481
|
+
branches: branchMap,
|
|
482
|
+
remotes: remoteMap,
|
|
483
|
+
downstreams: downstreamMap,
|
|
484
|
+
stashes: gitStash?.stashes,
|
|
485
|
+
worktrees: worktrees,
|
|
486
|
+
worktreesByBranch: worktreesByBranch,
|
|
487
|
+
reachableFromHEAD: reachableFromHEAD,
|
|
488
|
+
reachableFromBranches: reachableFromBranches,
|
|
489
|
+
rows: rows,
|
|
490
|
+
id: sha ?? rev,
|
|
491
|
+
rowsStats: rowStats,
|
|
492
|
+
rowsStatsDeferred: rowsStatsDeferred,
|
|
493
|
+
paging: {
|
|
494
|
+
limit: limit === 0 ? count : limit,
|
|
495
|
+
startingCursor: startingCursor,
|
|
496
|
+
hasMore: hasMore,
|
|
497
|
+
},
|
|
498
|
+
more: async (
|
|
499
|
+
limit: number,
|
|
500
|
+
sha?: string,
|
|
501
|
+
cancellation?: AbortSignal,
|
|
502
|
+
): Promise<GitGraph | undefined> =>
|
|
503
|
+
getCommitsForGraphCore.call(this, limit, sha, cursor, cancellation),
|
|
504
|
+
};
|
|
505
|
+
} catch (ex) {
|
|
506
|
+
scope?.error(ex);
|
|
507
|
+
debugger;
|
|
508
|
+
|
|
509
|
+
throw ex;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
return getCommitsForGraphCore.call(this, defaultLimit, selectSha, undefined, cancellation);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@debug({
|
|
517
|
+
args: (repoPath, s, o) => ({
|
|
518
|
+
repoPath: repoPath,
|
|
519
|
+
search: `[${s.matchAll ? 'A' : ''}${s.matchCase ? 'C' : ''}${s.matchRegex ? 'R' : ''}${s.matchWholeWord ? 'W' : ''}]: ${
|
|
520
|
+
s.query.length > 500 ? `${s.query.substring(0, 500)}...` : s.query
|
|
521
|
+
}`,
|
|
522
|
+
options: `limit=${o?.limit}, ordering=${o?.ordering}`,
|
|
523
|
+
}),
|
|
524
|
+
})
|
|
525
|
+
async *searchGraph(
|
|
526
|
+
repoPath: string,
|
|
527
|
+
search: SearchQuery,
|
|
528
|
+
options?: { limit?: number; ordering?: 'date' | 'author-date' | 'topo' },
|
|
529
|
+
cancellation?: AbortSignal,
|
|
530
|
+
): AsyncGenerator<GitGraphSearchProgress, GitGraphSearch, void> {
|
|
531
|
+
return yield* this.searchGraphCore(repoPath, search, undefined, undefined, options, cancellation);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@debug({
|
|
535
|
+
args: (repoPath, c, r, o) => ({
|
|
536
|
+
repoPath: repoPath,
|
|
537
|
+
cursor: `[${c.search.matchAll ? 'A' : ''}${c.search.matchCase ? 'C' : ''}${c.search.matchRegex ? 'R' : ''}${c.search.matchWholeWord ? 'W' : ''}]: ${
|
|
538
|
+
c.search.query.length > 500 ? `${c.search.query.substring(0, 500)}...` : c.search.query
|
|
539
|
+
} (continue)`,
|
|
540
|
+
existingResults: `results=${r.size}`,
|
|
541
|
+
options: `limit=${o?.limit}`,
|
|
542
|
+
}),
|
|
543
|
+
})
|
|
544
|
+
async *continueSearchGraph(
|
|
545
|
+
repoPath: string,
|
|
546
|
+
cursor: GitGraphSearchCursor,
|
|
547
|
+
existingResults: GitGraphSearchResults,
|
|
548
|
+
options?: { limit?: number },
|
|
549
|
+
cancellation?: AbortSignal,
|
|
550
|
+
): AsyncGenerator<GitGraphSearchProgress, GitGraphSearch, void> {
|
|
551
|
+
return yield* this.searchGraphCore(repoPath, cursor.search, cursor, existingResults, options, cancellation);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
private async *searchGraphCore(
|
|
555
|
+
repoPath: string,
|
|
556
|
+
search: SearchQuery,
|
|
557
|
+
cursor: GitGraphSearchCursor | undefined,
|
|
558
|
+
existingResults: GitGraphSearchResults | undefined,
|
|
559
|
+
options?: { limit?: number; ordering?: 'date' | 'author-date' | 'topo' },
|
|
560
|
+
cancellation?: AbortSignal,
|
|
561
|
+
): AsyncGenerator<GitGraphSearchProgress, GitGraphSearch, void> {
|
|
562
|
+
search = { matchAll: false, matchCase: false, matchRegex: true, matchWholeWord: false, ...search };
|
|
563
|
+
|
|
564
|
+
const comparisonKey = getSearchQueryComparisonKey(search);
|
|
565
|
+
try {
|
|
566
|
+
const currentUser = search.query.includes('@me')
|
|
567
|
+
? await this.provider.config.getCurrentUser(repoPath)
|
|
568
|
+
: undefined;
|
|
569
|
+
|
|
570
|
+
const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser);
|
|
571
|
+
|
|
572
|
+
const tipsOnly = filters.type === 'tip';
|
|
573
|
+
const parser = filters.files
|
|
574
|
+
? getShaAndDatesWithFilesLogParser(tipsOnly)
|
|
575
|
+
: getShaAndDatesLogParser(tipsOnly);
|
|
576
|
+
|
|
577
|
+
const similarityThreshold = this.context.config?.commits.similarityThreshold ?? undefined;
|
|
578
|
+
const args = [
|
|
579
|
+
'log',
|
|
580
|
+
...parser.arguments,
|
|
581
|
+
`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`,
|
|
582
|
+
'--use-mailmap',
|
|
583
|
+
];
|
|
584
|
+
|
|
585
|
+
let stashes: Map<string, GitStashCommit> | undefined;
|
|
586
|
+
let stdin: string | undefined;
|
|
587
|
+
let remappedIds: Map<string, string>;
|
|
588
|
+
|
|
589
|
+
if (shas?.size) {
|
|
590
|
+
stdin = join(shas, '\n');
|
|
591
|
+
args.push('--no-walk');
|
|
592
|
+
|
|
593
|
+
remappedIds = new Map();
|
|
594
|
+
} else if (!filters.refs) {
|
|
595
|
+
// Don't include stashes when using ref: filter, as they would add unrelated commits
|
|
596
|
+
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
597
|
+
({ stdin, stashes, remappedIds } = convertStashesToStdin(
|
|
598
|
+
await this.provider.stash?.getStash(repoPath, undefined, cancellation),
|
|
599
|
+
));
|
|
600
|
+
} else {
|
|
601
|
+
remappedIds = new Map();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
if (stdin) {
|
|
605
|
+
args.push('--stdin');
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const limit = options?.limit ?? this.context.config?.graph?.maxSearchItems ?? 0;
|
|
609
|
+
const ordering = options?.ordering ?? this.context.config?.commits.ordering ?? undefined;
|
|
610
|
+
if (ordering) {
|
|
611
|
+
args.push(`--${ordering}-order`);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// Add the search args, but skip any shas (as they are already included in the stdin)
|
|
615
|
+
for (const arg of searchArgs) {
|
|
616
|
+
if (shas?.has(arg) || args.includes(arg)) continue;
|
|
617
|
+
|
|
618
|
+
args.push(arg);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
const results: GitGraphSearchResults = existingResults ?? new Map<string, GitGraphSearchResultData>();
|
|
622
|
+
|
|
623
|
+
// Use state from cursor, if provided
|
|
624
|
+
const cursorState = cursor?.state != null && typeof cursor.state === 'object' ? cursor.state : undefined;
|
|
625
|
+
let iterations = cursorState?.iterations ?? 0;
|
|
626
|
+
let totalSeen = cursorState?.totalSeen ?? 0;
|
|
627
|
+
let skipCursor = cursorState ? { sha: cursorState.sha, skip: cursorState.skip } : undefined;
|
|
628
|
+
|
|
629
|
+
let count = 0;
|
|
630
|
+
try {
|
|
631
|
+
iterations++;
|
|
632
|
+
|
|
633
|
+
const aborter = new AbortController();
|
|
634
|
+
const onAbort = () => {
|
|
635
|
+
aborter.abort();
|
|
636
|
+
};
|
|
637
|
+
cancellation?.addEventListener('abort', onAbort, { once: true });
|
|
638
|
+
using _disposable = createDisposable(() => cancellation?.removeEventListener('abort', onAbort));
|
|
639
|
+
|
|
640
|
+
const stream = this.git.stream(
|
|
641
|
+
{
|
|
642
|
+
cwd: repoPath,
|
|
643
|
+
cancellation: aborter.signal,
|
|
644
|
+
configs: ['-C', repoPath, ...gitConfigsLog],
|
|
645
|
+
stdin: stdin,
|
|
646
|
+
},
|
|
647
|
+
...args,
|
|
648
|
+
skipCursor?.skip ? `--skip=${skipCursor.skip}` : undefined,
|
|
649
|
+
'--',
|
|
650
|
+
...files,
|
|
651
|
+
);
|
|
652
|
+
using _streamDisposer = createDisposable(() => void stream.return?.(undefined));
|
|
653
|
+
let hasMore = false;
|
|
654
|
+
let sha;
|
|
655
|
+
const stashesOnly = filters.type === 'stash';
|
|
656
|
+
|
|
657
|
+
// Progressive results support - time-based batching for consistent UI updates
|
|
658
|
+
const batch: [string, GitGraphSearchResultData][] = [];
|
|
659
|
+
let lastProgressTime = Date.now();
|
|
660
|
+
|
|
661
|
+
for await (const r of parser.parseAsync(stream)) {
|
|
662
|
+
// Check for cancellation early in each iteration
|
|
663
|
+
if (cancellation?.aborted) {
|
|
664
|
+
// When paused/cancelled, assume there are more results
|
|
665
|
+
hasMore = true;
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
count++;
|
|
670
|
+
if (limit && count > limit) {
|
|
671
|
+
hasMore = true;
|
|
672
|
+
|
|
673
|
+
aborter.abort();
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
sha = remappedIds.get(r.sha) ?? r.sha;
|
|
678
|
+
if (results.has(sha) || (stashesOnly && !stashes?.has(sha)) || (tipsOnly && !r.tips)) {
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const resultData: GitGraphSearchResultData = {
|
|
683
|
+
i: results.size,
|
|
684
|
+
date: Number(options?.ordering === 'author-date' ? r.authorDate : r.committerDate) * 1000,
|
|
685
|
+
files: r.files,
|
|
686
|
+
};
|
|
687
|
+
results.set(sha, resultData);
|
|
688
|
+
batch.push([sha, resultData]);
|
|
689
|
+
|
|
690
|
+
// Send progress updates with incremental results
|
|
691
|
+
const timeSinceLastProgress = Date.now() - lastProgressTime;
|
|
692
|
+
|
|
693
|
+
// Send batch when enough time has passed and we have new results
|
|
694
|
+
const shouldSendBatch =
|
|
695
|
+
timeSinceLastProgress >= progressiveSearchResultsBatchTimeMs && batch.length > 0;
|
|
696
|
+
|
|
697
|
+
if (shouldSendBatch) {
|
|
698
|
+
// Send only the NEW results since last batch (incremental)
|
|
699
|
+
yield {
|
|
700
|
+
repoPath: repoPath,
|
|
701
|
+
query: search,
|
|
702
|
+
queryFilters: filters,
|
|
703
|
+
comparisonKey: comparisonKey,
|
|
704
|
+
results: new Map(batch),
|
|
705
|
+
runningTotal: results.size,
|
|
706
|
+
hasMore: true,
|
|
707
|
+
};
|
|
708
|
+
batch.length = 0;
|
|
709
|
+
lastProgressTime = Date.now();
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// Send final progress update if there are remaining results
|
|
714
|
+
if (batch.length) {
|
|
715
|
+
yield {
|
|
716
|
+
repoPath: repoPath,
|
|
717
|
+
query: search,
|
|
718
|
+
queryFilters: filters,
|
|
719
|
+
comparisonKey: comparisonKey,
|
|
720
|
+
results: new Map(batch),
|
|
721
|
+
runningTotal: results.size,
|
|
722
|
+
hasMore: hasMore,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
totalSeen += count;
|
|
727
|
+
const lastSha = last(results)?.[0];
|
|
728
|
+
skipCursor = lastSha != null ? { sha: lastSha, skip: totalSeen - iterations } : undefined;
|
|
729
|
+
|
|
730
|
+
return {
|
|
731
|
+
repoPath: repoPath,
|
|
732
|
+
query: search,
|
|
733
|
+
queryFilters: filters,
|
|
734
|
+
comparisonKey: comparisonKey,
|
|
735
|
+
results: results,
|
|
736
|
+
hasMore: hasMore,
|
|
737
|
+
paging:
|
|
738
|
+
limit || hasMore
|
|
739
|
+
? {
|
|
740
|
+
limit: limit || count,
|
|
741
|
+
cursor:
|
|
742
|
+
hasMore && skipCursor
|
|
743
|
+
? {
|
|
744
|
+
search: search,
|
|
745
|
+
state: {
|
|
746
|
+
iterations: iterations,
|
|
747
|
+
totalSeen: totalSeen,
|
|
748
|
+
sha: skipCursor.sha,
|
|
749
|
+
skip: skipCursor.skip,
|
|
750
|
+
},
|
|
751
|
+
}
|
|
752
|
+
: undefined,
|
|
753
|
+
}
|
|
754
|
+
: undefined,
|
|
755
|
+
};
|
|
756
|
+
} catch (ex) {
|
|
757
|
+
if (isCancellationError(ex) || cancellation?.aborted) {
|
|
758
|
+
// When cancelled, preserve cursor so search can be resumed
|
|
759
|
+
// Update totalSeen with the count from this iteration
|
|
760
|
+
totalSeen += count;
|
|
761
|
+
const lastSha = last(results)?.[0];
|
|
762
|
+
const skipCursor = lastSha != null ? { sha: lastSha, skip: totalSeen - iterations } : undefined;
|
|
763
|
+
|
|
764
|
+
return {
|
|
765
|
+
repoPath: repoPath,
|
|
766
|
+
query: search,
|
|
767
|
+
queryFilters: filters,
|
|
768
|
+
comparisonKey: comparisonKey,
|
|
769
|
+
results: results,
|
|
770
|
+
hasMore: true, // Assume there are more results since we were cancelled mid-search
|
|
771
|
+
paging:
|
|
772
|
+
limit || skipCursor
|
|
773
|
+
? {
|
|
774
|
+
limit: limit || count,
|
|
775
|
+
cursor: skipCursor
|
|
776
|
+
? {
|
|
777
|
+
search: search,
|
|
778
|
+
state: {
|
|
779
|
+
iterations: iterations,
|
|
780
|
+
totalSeen: totalSeen,
|
|
781
|
+
sha: skipCursor.sha,
|
|
782
|
+
skip: skipCursor.skip,
|
|
783
|
+
},
|
|
784
|
+
}
|
|
785
|
+
: undefined,
|
|
786
|
+
}
|
|
787
|
+
: undefined,
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
throw new GitSearchError(ex);
|
|
792
|
+
}
|
|
793
|
+
} catch (ex) {
|
|
794
|
+
if (ex instanceof GitSearchError) throw ex;
|
|
795
|
+
|
|
796
|
+
throw new GitSearchError(ex);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|