@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,1151 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
8
|
+
if (value !== null && value !== void 0) {
|
|
9
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
10
|
+
var dispose, inner;
|
|
11
|
+
if (async) {
|
|
12
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
13
|
+
dispose = value[Symbol.asyncDispose];
|
|
14
|
+
}
|
|
15
|
+
if (dispose === void 0) {
|
|
16
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
17
|
+
dispose = value[Symbol.dispose];
|
|
18
|
+
if (async) inner = dispose;
|
|
19
|
+
}
|
|
20
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
21
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
22
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
23
|
+
}
|
|
24
|
+
else if (async) {
|
|
25
|
+
env.stack.push({ async: true });
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
};
|
|
29
|
+
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
30
|
+
return function (env) {
|
|
31
|
+
function fail(e) {
|
|
32
|
+
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
33
|
+
env.hasError = true;
|
|
34
|
+
}
|
|
35
|
+
var r, s = 0;
|
|
36
|
+
function next() {
|
|
37
|
+
while (r = env.stack.pop()) {
|
|
38
|
+
try {
|
|
39
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
40
|
+
if (r.dispose) {
|
|
41
|
+
var result = r.dispose.call(r.value);
|
|
42
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
43
|
+
}
|
|
44
|
+
else s |= 1;
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
fail(e);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
51
|
+
if (env.hasError) throw env.error;
|
|
52
|
+
}
|
|
53
|
+
return next();
|
|
54
|
+
};
|
|
55
|
+
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
56
|
+
var e = new Error(message);
|
|
57
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
58
|
+
});
|
|
59
|
+
import { GitCommit, GitCommitIdentity } from '../../git/models/commit.js';
|
|
60
|
+
import { GitFileChange } from '../../git/models/fileChange.js';
|
|
61
|
+
import { createUncommittedChangesCommit } from '../../git/utils/commit.utils.js';
|
|
62
|
+
import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from '../../git/utils/revision.utils.js';
|
|
63
|
+
import { parseSearchQueryGitCommand } from '../../git/utils/search.utils.js';
|
|
64
|
+
import { isUserMatch } from '../../git/utils/user.utils.js';
|
|
65
|
+
import { CancellationError, isCancellationError } from '../../utils/cancellation.js';
|
|
66
|
+
import { debug, trace } from '../../utils/decorators/log.js';
|
|
67
|
+
import { createDisposable } from '../../utils/disposable.js';
|
|
68
|
+
import { filterMap, findLast, first, join, last, some } from '../../utils/iterable.js';
|
|
69
|
+
import { getScopedLogger } from '../../utils/logger.scoped.js';
|
|
70
|
+
import { isFolderGlob, normalizePath, splitPath, stripFolderGlob } from '../../utils/path.js';
|
|
71
|
+
import { maybeStopWatch } from '../../utils/stopwatch.js';
|
|
72
|
+
import { escapeRegex } from '../../utils/string.js';
|
|
73
|
+
import { fileUri, joinUriPath, toFsPath } from '../../utils/uri.js';
|
|
74
|
+
import { gitConfigsLog, gitConfigsLogWithFiles, GitErrors } from '../exec/git.js';
|
|
75
|
+
import { getCommitsLogParser, getShaAndFilesAndStatsLogParser, getShaLogParser } from '../parsers/logParser.js';
|
|
76
|
+
import { getReflogParser, parseGitRefLog } from '../parsers/reflogParser.js';
|
|
77
|
+
import { parseSignatureOutput, signatureFormat } from '../parsers/signatureParser.js';
|
|
78
|
+
import { createCommitFileset } from './commitFilesetUtils.js';
|
|
79
|
+
import { convertStashesToStdin } from './stash.js';
|
|
80
|
+
const emptyPromise = Promise.resolve(undefined);
|
|
81
|
+
const reflogCommands = ['merge', 'pull'];
|
|
82
|
+
export class CommitsGitSubProvider {
|
|
83
|
+
context;
|
|
84
|
+
git;
|
|
85
|
+
cache;
|
|
86
|
+
provider;
|
|
87
|
+
constructor(context, git, cache, provider) {
|
|
88
|
+
this.context = context;
|
|
89
|
+
this.git = git;
|
|
90
|
+
this.cache = cache;
|
|
91
|
+
this.provider = provider;
|
|
92
|
+
}
|
|
93
|
+
async createUnreachableCommitFromTree(repoPath, tree, parent, message, cancellation) {
|
|
94
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, errors: 'throw' }, 'commit-tree', tree, '-p', parent, '-m', message);
|
|
95
|
+
return result.stdout.trim();
|
|
96
|
+
}
|
|
97
|
+
async getCommit(repoPath, rev, cancellation) {
|
|
98
|
+
if (isUncommitted(rev, true)) {
|
|
99
|
+
return createUncommittedChangesCommit(repoPath, rev, new Date(), await this.provider.config.getCurrentUser(repoPath));
|
|
100
|
+
}
|
|
101
|
+
const log = await this.getLogCore(repoPath, rev, { limit: 1 }, cancellation);
|
|
102
|
+
if (log == null)
|
|
103
|
+
return undefined;
|
|
104
|
+
return log.commits.get(rev) ?? first(log.commits.values());
|
|
105
|
+
}
|
|
106
|
+
async getCommitCount(repoPath, rev, cancellation) {
|
|
107
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, errors: 'ignore' }, 'rev-list', '--count', rev, '--');
|
|
108
|
+
if (result.cancelled || cancellation?.aborted) {
|
|
109
|
+
throw new CancellationError();
|
|
110
|
+
}
|
|
111
|
+
const data = result.stdout.trim();
|
|
112
|
+
if (!data)
|
|
113
|
+
return undefined;
|
|
114
|
+
const count = parseInt(data, 10);
|
|
115
|
+
return isNaN(count) ? undefined : count;
|
|
116
|
+
}
|
|
117
|
+
async getCommitFiles(repoPath, rev, cancellation) {
|
|
118
|
+
const parser = getShaAndFilesAndStatsLogParser();
|
|
119
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog }, 'log', ...parser.arguments, '-n1', rev && !isUncommittedStaged(rev) ? rev : undefined, '--');
|
|
120
|
+
const repoUri = fileUri(normalizePath(repoPath));
|
|
121
|
+
const files = first(parser.parse(result.stdout))?.files.map(f => new GitFileChange(repoPath, f.path, f.status, joinUriPath(repoUri, normalizePath(f.path)), f.originalPath, f.originalPath != null ? joinUriPath(repoUri, normalizePath(f.originalPath)) : undefined, undefined, { additions: f.additions, deletions: f.deletions, changes: 0 }, undefined, undefined, f.mode, f.oid ? { oid: f.oid, previousOid: f.previousOid } : undefined));
|
|
122
|
+
return files ?? [];
|
|
123
|
+
}
|
|
124
|
+
async getCommitForFile(repoPath, pathOrUri, rev, options, cancellation) {
|
|
125
|
+
const scope = getScopedLogger();
|
|
126
|
+
const [relativePath, root] = splitPath(toFsPath(pathOrUri), repoPath);
|
|
127
|
+
try {
|
|
128
|
+
const log = await this.getLogForPath(root, relativePath, rev, { limit: 1 }, cancellation);
|
|
129
|
+
if (log == null)
|
|
130
|
+
return undefined;
|
|
131
|
+
let commit;
|
|
132
|
+
if (rev) {
|
|
133
|
+
commit = log.commits.get(rev);
|
|
134
|
+
if (commit == null && !options?.firstIfNotFound) {
|
|
135
|
+
// If the ref isn't a valid sha we will never find it, so let it fall through so we return the first
|
|
136
|
+
if (isSha(rev) || isUncommitted(rev))
|
|
137
|
+
return undefined;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return commit ?? first(log.commits.values());
|
|
141
|
+
}
|
|
142
|
+
catch (ex) {
|
|
143
|
+
scope?.error(ex);
|
|
144
|
+
if (isCancellationError(ex))
|
|
145
|
+
throw ex;
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
getCommitReachability(repoPath, rev, cancellation) {
|
|
150
|
+
if (repoPath == null || isUncommitted(rev))
|
|
151
|
+
return Promise.resolve(undefined);
|
|
152
|
+
const scope = getScopedLogger();
|
|
153
|
+
const getCore = async (cacheable) => {
|
|
154
|
+
try {
|
|
155
|
+
// Use for-each-ref with %(HEAD) to mark current branch with *
|
|
156
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, errors: 'ignore' }, 'for-each-ref', '--contains', rev, '--format=%(HEAD)%(refname)', '--sort=-version:refname', '--sort=-committerdate', '--sort=-HEAD', 'refs/heads/', 'refs/remotes/', 'refs/tags/');
|
|
157
|
+
if (cancellation?.aborted)
|
|
158
|
+
throw new CancellationError();
|
|
159
|
+
const refs = [];
|
|
160
|
+
// Parse branches from refs/heads/ and refs/remotes/
|
|
161
|
+
if (result?.stdout) {
|
|
162
|
+
const lines = result.stdout.split('\n');
|
|
163
|
+
for (let line of lines) {
|
|
164
|
+
line = line.trim();
|
|
165
|
+
if (!line)
|
|
166
|
+
continue;
|
|
167
|
+
// %(HEAD) outputs '*' for current branch, ' ' for others
|
|
168
|
+
const isCurrent = line.startsWith('*');
|
|
169
|
+
const refname = isCurrent ? line.substring(1) : line; // Skip the HEAD marker
|
|
170
|
+
// Skip HEADs
|
|
171
|
+
if (refname.endsWith('/HEAD'))
|
|
172
|
+
continue;
|
|
173
|
+
if (refname.startsWith('refs/heads/')) {
|
|
174
|
+
// Remove 'refs/heads/'
|
|
175
|
+
const name = refname.substring(11);
|
|
176
|
+
refs.push({
|
|
177
|
+
refType: 'branch',
|
|
178
|
+
name: name,
|
|
179
|
+
remote: false,
|
|
180
|
+
current: isCurrent,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
else if (refname.startsWith('refs/remotes/')) {
|
|
184
|
+
// Remove 'refs/remotes/'
|
|
185
|
+
refs.push({ refType: 'branch', name: refname.substring(13), remote: true });
|
|
186
|
+
}
|
|
187
|
+
else if (refname.startsWith('refs/tags/')) {
|
|
188
|
+
// Remove 'refs/tags/'
|
|
189
|
+
refs.push({ refType: 'tag', name: refname.substring(10) });
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// Sort to move tags to the end, preserving order within each type
|
|
194
|
+
refs.sort((a, b) => (a.refType !== b.refType ? (a.refType === 'tag' ? 1 : -1) : 0));
|
|
195
|
+
return { refs: refs };
|
|
196
|
+
}
|
|
197
|
+
catch (ex) {
|
|
198
|
+
cacheable?.invalidate();
|
|
199
|
+
debugger;
|
|
200
|
+
if (isCancellationError(ex))
|
|
201
|
+
throw ex;
|
|
202
|
+
scope?.error(ex);
|
|
203
|
+
return undefined;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return this.cache.reachability.getOrCreate(repoPath, rev, getCore);
|
|
207
|
+
}
|
|
208
|
+
async getIncomingActivity(repoPath, options, cancellation) {
|
|
209
|
+
const scope = getScopedLogger();
|
|
210
|
+
const cfg = this.context.config;
|
|
211
|
+
const parser = getReflogParser();
|
|
212
|
+
const args = ['--walk-reflogs', ...parser.arguments, '--date=iso8601'];
|
|
213
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
214
|
+
if (ordering) {
|
|
215
|
+
args.push(`--${ordering}-order`);
|
|
216
|
+
}
|
|
217
|
+
if (options?.all) {
|
|
218
|
+
args.push('--all');
|
|
219
|
+
}
|
|
220
|
+
// Pass a much larger limit to reflog, because we aggregate the data and we won't know how many lines we'll need
|
|
221
|
+
const limit = (options?.limit ?? cfg?.commits.maxItems ?? 0) * 100;
|
|
222
|
+
if (limit) {
|
|
223
|
+
args.push(`-n${limit}`);
|
|
224
|
+
}
|
|
225
|
+
if (options?.skip) {
|
|
226
|
+
args.push(`--skip=${options.skip}`);
|
|
227
|
+
}
|
|
228
|
+
try {
|
|
229
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog }, 'log', ...args);
|
|
230
|
+
const reflog = parseGitRefLog(parser, result.stdout, repoPath, reflogCommands, limit, limit * 100);
|
|
231
|
+
if (reflog?.hasMore) {
|
|
232
|
+
reflog.more = this.getReflogMoreFn(reflog, options);
|
|
233
|
+
}
|
|
234
|
+
return reflog;
|
|
235
|
+
}
|
|
236
|
+
catch (ex) {
|
|
237
|
+
scope?.error(ex);
|
|
238
|
+
if (isCancellationError(ex))
|
|
239
|
+
throw ex;
|
|
240
|
+
return undefined;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
getReflogMoreFn(reflog, options) {
|
|
244
|
+
return async (limit) => {
|
|
245
|
+
limit = limit ?? 0;
|
|
246
|
+
const moreLog = await this.getIncomingActivity(reflog.repoPath, {
|
|
247
|
+
...options,
|
|
248
|
+
limit: limit,
|
|
249
|
+
skip: reflog.total,
|
|
250
|
+
});
|
|
251
|
+
if (moreLog == null) {
|
|
252
|
+
// If we can't find any more, assume we have everything
|
|
253
|
+
return { ...reflog, hasMore: false, more: undefined };
|
|
254
|
+
}
|
|
255
|
+
const mergedLog = {
|
|
256
|
+
repoPath: reflog.repoPath,
|
|
257
|
+
records: [...reflog.records, ...moreLog.records],
|
|
258
|
+
count: reflog.count + moreLog.count,
|
|
259
|
+
total: reflog.total + moreLog.total,
|
|
260
|
+
limit: (reflog.limit ?? 0) + limit,
|
|
261
|
+
hasMore: moreLog.hasMore,
|
|
262
|
+
};
|
|
263
|
+
if (mergedLog.hasMore) {
|
|
264
|
+
mergedLog.more = this.getReflogMoreFn(mergedLog, options);
|
|
265
|
+
}
|
|
266
|
+
return mergedLog;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
getInitialCommitSha(repoPath, cancellation) {
|
|
270
|
+
// Initial commit SHA is shared across all worktrees
|
|
271
|
+
return this.cache.getInitialCommitSha(repoPath, async (commonPath) => {
|
|
272
|
+
try {
|
|
273
|
+
const result = await this.git.exec({ cwd: commonPath, cancellation: cancellation, errors: 'ignore' }, 'rev-list', `--max-parents=0`, 'HEAD', '--');
|
|
274
|
+
if (result.cancelled || cancellation?.aborted) {
|
|
275
|
+
throw new CancellationError();
|
|
276
|
+
}
|
|
277
|
+
return result.stdout.trim().split('\n')?.[0];
|
|
278
|
+
}
|
|
279
|
+
catch (ex) {
|
|
280
|
+
if (isCancellationError(ex))
|
|
281
|
+
throw ex;
|
|
282
|
+
return undefined;
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
async getLeftRightCommitCount(repoPath, range, options, cancellation) {
|
|
287
|
+
const authors = options?.authors?.length
|
|
288
|
+
? options.authors.map(a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`)
|
|
289
|
+
: [];
|
|
290
|
+
const run = async () => {
|
|
291
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, errors: 'ignore' }, 'rev-list', '--left-right', '--count', ...authors, options?.excludeMerges ? '--no-merges' : undefined, range, '--');
|
|
292
|
+
if (result.cancelled || cancellation?.aborted) {
|
|
293
|
+
throw new CancellationError();
|
|
294
|
+
}
|
|
295
|
+
if (!result.stdout)
|
|
296
|
+
return undefined;
|
|
297
|
+
const parts = result.stdout.split('\t');
|
|
298
|
+
if (parts.length !== 2)
|
|
299
|
+
return undefined;
|
|
300
|
+
const [left, right] = parts;
|
|
301
|
+
const counts = {
|
|
302
|
+
left: parseInt(left, 10),
|
|
303
|
+
right: parseInt(right, 10),
|
|
304
|
+
};
|
|
305
|
+
if (isNaN(counts.left) || isNaN(counts.right))
|
|
306
|
+
return undefined;
|
|
307
|
+
return counts;
|
|
308
|
+
};
|
|
309
|
+
// Author-filtered calls are one-off (e.g. "who made these commits") with low re-hit
|
|
310
|
+
// rate; skip the cache to protect its capacity for the hot no-author merge-target path.
|
|
311
|
+
if (authors.length > 0)
|
|
312
|
+
return run();
|
|
313
|
+
// Cache key: range + excludeMerges. RepositoryChange events affecting branches/remotes
|
|
314
|
+
// invalidate this cache via clearCaches('branches').
|
|
315
|
+
const cacheKey = `${range}\x1f${options?.excludeMerges ? 'no-merges' : ''}`;
|
|
316
|
+
return this.cache.getLeftRightCommitCount(repoPath, cacheKey, run);
|
|
317
|
+
}
|
|
318
|
+
async getLog(repoPath, rev, options, cancellation) {
|
|
319
|
+
return this.getLogCore(repoPath, rev, options, cancellation);
|
|
320
|
+
}
|
|
321
|
+
async getLogCore(repoPath, rev, options, cancellation, additionalArgs) {
|
|
322
|
+
const scope = getScopedLogger();
|
|
323
|
+
try {
|
|
324
|
+
const currentUserPromise = this.provider.config.getCurrentUser(repoPath);
|
|
325
|
+
const cfg = this.context.config;
|
|
326
|
+
const limit = options?.limit ?? cfg?.commits.maxItems ?? 0;
|
|
327
|
+
const isSingleCommit = limit === 1;
|
|
328
|
+
const cfgIncludeFiles = options?.includeFiles ?? cfg?.commits.includeFileDetails ?? true;
|
|
329
|
+
const includeFiles = cfgIncludeFiles || isSingleCommit || Boolean(options?.path?.pathspec);
|
|
330
|
+
const parser = getCommitsLogParser(includeFiles, Boolean(options?.path?.pathspec && options?.path?.range));
|
|
331
|
+
const args = ['log', ...parser.arguments];
|
|
332
|
+
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
333
|
+
args.push(`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`, '--use-mailmap');
|
|
334
|
+
if (options?.all) {
|
|
335
|
+
args.push('--all');
|
|
336
|
+
if (options?.path?.pathspec) {
|
|
337
|
+
args.push('--single-worktree');
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
const merges = options?.merges ?? true;
|
|
341
|
+
if (merges) {
|
|
342
|
+
// If we are are asking for a specific ref, ensure we return the merge commit files
|
|
343
|
+
if (isSingleCommit) {
|
|
344
|
+
args.push('-m');
|
|
345
|
+
}
|
|
346
|
+
args.push(merges === 'first-parent' ? '--first-parent' : '--no-min-parents');
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
args.push('--no-merges');
|
|
350
|
+
}
|
|
351
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
352
|
+
if (ordering) {
|
|
353
|
+
args.push(`--${ordering}-order`);
|
|
354
|
+
}
|
|
355
|
+
if (options?.authors?.length) {
|
|
356
|
+
args.push(...options.authors.map(a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`));
|
|
357
|
+
}
|
|
358
|
+
let overrideHasMore;
|
|
359
|
+
if (options?.since) {
|
|
360
|
+
overrideHasMore = true;
|
|
361
|
+
args.push(`--since="${options.since}"`);
|
|
362
|
+
}
|
|
363
|
+
if (options?.until) {
|
|
364
|
+
overrideHasMore = true;
|
|
365
|
+
args.push(`--until="${options.until}"`);
|
|
366
|
+
}
|
|
367
|
+
if (additionalArgs?.length) {
|
|
368
|
+
args.push(...additionalArgs);
|
|
369
|
+
}
|
|
370
|
+
if (limit > 0) {
|
|
371
|
+
overrideHasMore = isSingleCommit ? false : undefined;
|
|
372
|
+
// Add 1 to the limit so we can check if there are more commits
|
|
373
|
+
args.push(`-n${isSingleCommit ? 1 : limit + 1}`);
|
|
374
|
+
}
|
|
375
|
+
let stashes;
|
|
376
|
+
let stdin;
|
|
377
|
+
if (!isSingleCommit) {
|
|
378
|
+
if (options?.stashes) {
|
|
379
|
+
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
380
|
+
({ stdin, stashes } = convertStashesToStdin(typeof options.stashes === 'boolean'
|
|
381
|
+
? await this.provider.stash?.getStash(repoPath, { reachableFrom: rev }, cancellation)
|
|
382
|
+
: options.stashes));
|
|
383
|
+
if (stashes.size) {
|
|
384
|
+
rev ??= 'HEAD';
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (stdin) {
|
|
388
|
+
args.push('--stdin');
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (rev && !isUncommittedStaged(rev)) {
|
|
392
|
+
args.push(rev);
|
|
393
|
+
}
|
|
394
|
+
let pathspec;
|
|
395
|
+
let pathspecRange;
|
|
396
|
+
if (options?.path?.pathspec) {
|
|
397
|
+
pathspec = options.path.pathspec;
|
|
398
|
+
const { filters, range, renames } = options.path;
|
|
399
|
+
if (filters?.length) {
|
|
400
|
+
args.push(`--diff-filter=${filters.join('')}`);
|
|
401
|
+
}
|
|
402
|
+
if (range != null) {
|
|
403
|
+
// Git doesn't allow rename detection (`--follow`) if a range is used
|
|
404
|
+
const [start, end] = getGitStartEnd(range);
|
|
405
|
+
pathspecRange = `${start},${end}`;
|
|
406
|
+
args.push(`-L ${pathspecRange}:${pathspec}`, '--');
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
if (renames !== false) {
|
|
410
|
+
args.push('--follow');
|
|
411
|
+
}
|
|
412
|
+
args.push('--', pathspec);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
args.push('--');
|
|
417
|
+
}
|
|
418
|
+
const currentUser = await currentUserPromise.catch(() => undefined);
|
|
419
|
+
if (cancellation?.aborted)
|
|
420
|
+
throw new CancellationError();
|
|
421
|
+
const cmdOpts = {
|
|
422
|
+
cwd: repoPath,
|
|
423
|
+
cancellation: cancellation,
|
|
424
|
+
configs: gitConfigsLogWithFiles,
|
|
425
|
+
stdin: stdin,
|
|
426
|
+
};
|
|
427
|
+
let { commits, count, countStashChildCommits } = await parseCommits(parser, isSingleCommit ? this.git.exec(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args), repoPath, pathspec, limit, stashes, currentUser);
|
|
428
|
+
// If we didn't find any history from the working tree, check to see if the file was renamed
|
|
429
|
+
if (rev == null && pathspec && !commits.size) {
|
|
430
|
+
const status = await this.provider.status?.getStatusForFile?.(repoPath, pathspec, undefined, cancellation);
|
|
431
|
+
if (status?.originalPath != null) {
|
|
432
|
+
pathspec = status.originalPath;
|
|
433
|
+
if (pathspecRange) {
|
|
434
|
+
const index = args.findIndex(a => a.startsWith('-L '));
|
|
435
|
+
args.splice(index, 1, `-L ${pathspecRange}:${pathspec}`);
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
args.splice(args.length - 1, 1, pathspec);
|
|
439
|
+
}
|
|
440
|
+
({ commits, count, countStashChildCommits } = await parseCommits(parser, isSingleCommit ? this.git.exec(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args), repoPath, pathspec, limit, stashes, currentUser));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
const log = {
|
|
444
|
+
repoPath: repoPath,
|
|
445
|
+
commits: commits,
|
|
446
|
+
sha: isRevisionRange(rev) ? undefined : rev,
|
|
447
|
+
count: commits.size,
|
|
448
|
+
limit: limit,
|
|
449
|
+
hasMore: overrideHasMore ?? count - countStashChildCommits > commits.size,
|
|
450
|
+
};
|
|
451
|
+
if (!isSingleCommit) {
|
|
452
|
+
log.query = (limit) => this.getLogCore(repoPath, rev, { ...options, limit: limit }, undefined, additionalArgs);
|
|
453
|
+
if (log.hasMore) {
|
|
454
|
+
log.more = this.getLogCoreMoreFn(log, rev, options);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
return log;
|
|
458
|
+
}
|
|
459
|
+
catch (ex) {
|
|
460
|
+
if (isCancellationError(ex))
|
|
461
|
+
throw ex;
|
|
462
|
+
// Check if this is a "bad object" error due to a submodule's internal SHA
|
|
463
|
+
const pathspec = options?.path?.pathspec;
|
|
464
|
+
if (rev && pathspec && ex instanceof Error && GitErrors.badObject.test(ex.message)) {
|
|
465
|
+
const tree = await this.provider.revision.getTreeEntryForRevision(repoPath, pathspec, 'HEAD');
|
|
466
|
+
if (tree?.type === 'commit') {
|
|
467
|
+
// It's a submodule - retry without the rev and without rename tracking
|
|
468
|
+
return this.getLogCore(repoPath, undefined, { ...options, path: { ...options.path, pathspec: pathspec, renames: false } }, cancellation, additionalArgs);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
scope?.error(ex);
|
|
472
|
+
debugger;
|
|
473
|
+
return undefined;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
getLogCoreMoreFn(log, rev, options) {
|
|
477
|
+
return async (limit) => {
|
|
478
|
+
const moreUntil = limit != null && typeof limit === 'object' ? limit.until : undefined;
|
|
479
|
+
let moreLimit = typeof limit === 'number' ? limit : undefined;
|
|
480
|
+
if (moreUntil && some(log.commits.values(), c => c.ref === moreUntil)) {
|
|
481
|
+
return log;
|
|
482
|
+
}
|
|
483
|
+
moreLimit = moreLimit ?? 0;
|
|
484
|
+
// If the log is for a range, then just get everything prior + more
|
|
485
|
+
if (isRevisionRange(log.sha)) {
|
|
486
|
+
const moreLog = await this.getLogCore(log.repoPath, rev, {
|
|
487
|
+
...options,
|
|
488
|
+
limit: moreLimit === 0 ? 0 : (options?.limit ?? 0) + moreLimit,
|
|
489
|
+
});
|
|
490
|
+
// If we can't find any more, assume we have everything
|
|
491
|
+
if (moreLog == null)
|
|
492
|
+
return { ...log, hasMore: false, more: undefined };
|
|
493
|
+
return moreLog;
|
|
494
|
+
}
|
|
495
|
+
// Stashes are not part of the normal commit history, so we need to find the last non-stash commit for the cursor
|
|
496
|
+
const lastCommit = findLast(log.commits.values(), c => !GitCommit.isStash(c)) ?? last(log.commits.values());
|
|
497
|
+
const sha = lastCommit?.ref;
|
|
498
|
+
// Check to make sure the filename hasn't changed and if it has use the previous
|
|
499
|
+
const lastCommitFile = lastCommit?.anyFiles?.[0];
|
|
500
|
+
if (options?.path?.pathspec && lastCommitFile != null) {
|
|
501
|
+
const path = lastCommitFile.originalPath ?? lastCommitFile.path;
|
|
502
|
+
if (path !== options.path.pathspec) {
|
|
503
|
+
options = { ...options, path: { ...options.path, pathspec: path } };
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
// If we were asked for all refs, use the last commit timestamp (plus a second) as a cursor
|
|
507
|
+
let timestamp;
|
|
508
|
+
if (options?.all) {
|
|
509
|
+
const date = lastCommit?.committer.date;
|
|
510
|
+
// Git only allows 1-second precision, so round up to the nearest second
|
|
511
|
+
timestamp = date != null ? Math.ceil(date.getTime() / 1000) + 1 : undefined;
|
|
512
|
+
}
|
|
513
|
+
let moreLogCount;
|
|
514
|
+
let queryLimit = moreUntil == null ? moreLimit : 0;
|
|
515
|
+
do {
|
|
516
|
+
const moreLog = await this.getLogCore(log.repoPath, timestamp ? rev : moreUntil == null ? `${sha}^` : `${moreUntil}^..${sha}^`, {
|
|
517
|
+
...options,
|
|
518
|
+
limit: queryLimit,
|
|
519
|
+
...(timestamp ? { until: timestamp } : undefined),
|
|
520
|
+
}, undefined, timestamp ? ['--boundary'] : undefined);
|
|
521
|
+
// If we can't find any more, assume we have everything
|
|
522
|
+
if (moreLog == null)
|
|
523
|
+
return { ...log, hasMore: false, more: undefined };
|
|
524
|
+
const currentCount = log.commits.size;
|
|
525
|
+
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
526
|
+
if (currentCount === commits.size && queryLimit !== 0) {
|
|
527
|
+
// If we didn't find any new commits, we must have them all so return that we have everything
|
|
528
|
+
if (moreLogCount === moreLog.commits.size) {
|
|
529
|
+
return { ...log, hasMore: false, more: undefined };
|
|
530
|
+
}
|
|
531
|
+
moreLogCount = moreLog.commits.size;
|
|
532
|
+
queryLimit = queryLimit * 2;
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
if (timestamp != null && sha != null && !moreLog.commits.has(sha)) {
|
|
536
|
+
debugger;
|
|
537
|
+
}
|
|
538
|
+
const mergedLog = {
|
|
539
|
+
repoPath: log.repoPath,
|
|
540
|
+
commits: commits,
|
|
541
|
+
sha: log.sha,
|
|
542
|
+
count: commits.size,
|
|
543
|
+
limit: moreUntil == null ? (log.limit ?? 0) + moreLimit : undefined,
|
|
544
|
+
hasMore: moreUntil == null ? moreLog.hasMore : true,
|
|
545
|
+
// The oldest commit SHA of the previous page — the graph webview compares this
|
|
546
|
+
// against its last displayed row to determine the merge point for appending new rows
|
|
547
|
+
startingCursor: sha,
|
|
548
|
+
endingCursor: moreLog.endingCursor,
|
|
549
|
+
pagedCommits: () => {
|
|
550
|
+
// Remove any duplicates
|
|
551
|
+
for (const sha of log.commits.keys()) {
|
|
552
|
+
moreLog.commits.delete(sha);
|
|
553
|
+
}
|
|
554
|
+
return moreLog.commits;
|
|
555
|
+
},
|
|
556
|
+
// eslint-disable-next-line no-loop-func
|
|
557
|
+
query: (limit) => this.getLogCore(log.repoPath, rev, { ...options, limit: limit }),
|
|
558
|
+
};
|
|
559
|
+
if (mergedLog.hasMore) {
|
|
560
|
+
mergedLog.more = this.getLogCoreMoreFn(mergedLog, rev, options);
|
|
561
|
+
}
|
|
562
|
+
return mergedLog;
|
|
563
|
+
} while (true);
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
async getLogForPath(repoPath, pathOrUri, rev, options, cancellation) {
|
|
567
|
+
if (repoPath == null)
|
|
568
|
+
return undefined;
|
|
569
|
+
const scope = getScopedLogger();
|
|
570
|
+
let relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
571
|
+
if (repoPath != null && repoPath === relativePath) {
|
|
572
|
+
throw new Error(`Path cannot match the repository path; path=${relativePath}`);
|
|
573
|
+
}
|
|
574
|
+
const cfg = this.context.config;
|
|
575
|
+
options = {
|
|
576
|
+
...options,
|
|
577
|
+
all: options?.all ?? cfg?.fileHistory?.showAllBranches,
|
|
578
|
+
limit: options?.limit ?? cfg?.commits.maxItems ?? 0,
|
|
579
|
+
merges: options?.merges ?? cfg?.fileHistory?.showMergeCommits,
|
|
580
|
+
ordering: options?.ordering ?? cfg?.commits.ordering ?? undefined,
|
|
581
|
+
renames: options?.renames ?? cfg?.fileHistory?.followRenames,
|
|
582
|
+
similarityThreshold: options?.similarityThreshold ?? cfg?.commits.similarityThreshold,
|
|
583
|
+
};
|
|
584
|
+
if (isFolderGlob(relativePath)) {
|
|
585
|
+
relativePath = stripFolderGlob(relativePath);
|
|
586
|
+
options.isFolder = true;
|
|
587
|
+
}
|
|
588
|
+
else if (options.isFolder == null) {
|
|
589
|
+
const tree = await this.provider.revision.getTreeEntryForRevision(repoPath, relativePath, rev || 'HEAD');
|
|
590
|
+
if (cancellation?.aborted)
|
|
591
|
+
throw new CancellationError();
|
|
592
|
+
if (tree?.type === 'commit') {
|
|
593
|
+
// It's a submodule — line ranges and rename tracking don't apply, and the rev may reference
|
|
594
|
+
// the submodule's internal SHA which isn't valid in the parent repo
|
|
595
|
+
options.range = undefined;
|
|
596
|
+
options.renames = false;
|
|
597
|
+
// rev = undefined;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
options.isFolder = tree?.type === 'tree';
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
// Build cache key — only for non-folder, non-filtered queries
|
|
604
|
+
let cacheKey;
|
|
605
|
+
if (!options.isFolder &&
|
|
606
|
+
options.authors == null &&
|
|
607
|
+
options.cursor == null &&
|
|
608
|
+
options.filters == null &&
|
|
609
|
+
options.range == null &&
|
|
610
|
+
options.since == null &&
|
|
611
|
+
options.until == null) {
|
|
612
|
+
let suffix = 'log';
|
|
613
|
+
if (rev != null) {
|
|
614
|
+
suffix += `:${rev}`;
|
|
615
|
+
}
|
|
616
|
+
if (options.all) {
|
|
617
|
+
suffix += ':all';
|
|
618
|
+
}
|
|
619
|
+
if (options.limit) {
|
|
620
|
+
suffix += `:n${options.limit}`;
|
|
621
|
+
}
|
|
622
|
+
if (options.merges) {
|
|
623
|
+
suffix += `:merges=${options.merges}`;
|
|
624
|
+
}
|
|
625
|
+
if (options.ordering) {
|
|
626
|
+
suffix += `:ordering=${options.ordering}`;
|
|
627
|
+
}
|
|
628
|
+
if (options.renames) {
|
|
629
|
+
suffix += ':follow';
|
|
630
|
+
}
|
|
631
|
+
cacheKey = `${normalizePath(relativePath)}:${suffix}`;
|
|
632
|
+
}
|
|
633
|
+
if (cacheKey != null) {
|
|
634
|
+
// Check for exact cache hit
|
|
635
|
+
const cached = this.cache.fileLog.get(repoPath, cacheKey);
|
|
636
|
+
if (cached != null) {
|
|
637
|
+
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
638
|
+
return cached;
|
|
639
|
+
}
|
|
640
|
+
// Subset optimization: if requesting partial log, check if whole-file log is cached
|
|
641
|
+
if (rev != null || (options.limit != null && options.limit !== 0)) {
|
|
642
|
+
const baseKey = `${normalizePath(relativePath)}:log${options.renames ? ':follow' : ''}`;
|
|
643
|
+
const baseLog = this.cache.fileLog.get(repoPath, baseKey);
|
|
644
|
+
if (baseLog != null) {
|
|
645
|
+
if (rev == null) {
|
|
646
|
+
scope?.trace(`Cache hit: ~'${cacheKey}'`);
|
|
647
|
+
return baseLog;
|
|
648
|
+
}
|
|
649
|
+
scope?.trace(`Cache ?: '${cacheKey}'`);
|
|
650
|
+
const log = await baseLog;
|
|
651
|
+
if (log != null && !log.hasMore && log.commits.has(rev)) {
|
|
652
|
+
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
653
|
+
// Create a copy of the log starting at the requested commit
|
|
654
|
+
let skip = true;
|
|
655
|
+
let i = 0;
|
|
656
|
+
const limit = options.limit;
|
|
657
|
+
const commits = new Map(filterMap(log.commits.entries(), ([sha, c]) => {
|
|
658
|
+
if (skip) {
|
|
659
|
+
if (sha !== rev)
|
|
660
|
+
return undefined;
|
|
661
|
+
skip = false;
|
|
662
|
+
}
|
|
663
|
+
i++;
|
|
664
|
+
if (limit != null && i > limit) {
|
|
665
|
+
return undefined;
|
|
666
|
+
}
|
|
667
|
+
return [sha, c];
|
|
668
|
+
}));
|
|
669
|
+
const optsCopy = { ...options };
|
|
670
|
+
return {
|
|
671
|
+
...log,
|
|
672
|
+
limit: optsCopy.limit,
|
|
673
|
+
count: commits.size,
|
|
674
|
+
commits: commits,
|
|
675
|
+
query: (limit) => this.getLogForPath(repoPath, pathOrUri, rev, {
|
|
676
|
+
...optsCopy,
|
|
677
|
+
limit: limit,
|
|
678
|
+
}),
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
scope?.trace(`Cache miss: '${cacheKey}'`);
|
|
684
|
+
return this.cache.fileLog.getOrCreate(repoPath, cacheKey, (_cacheable, signal) => this.getLogForPathCore(repoPath, relativePath, rev, options, signal), { cancellation: cancellation });
|
|
685
|
+
}
|
|
686
|
+
return this.getLogForPathCore(repoPath, relativePath, rev, options, cancellation);
|
|
687
|
+
}
|
|
688
|
+
async getLogForPathCore(repoPath, path, rev, options, cancellation) {
|
|
689
|
+
const scope = getScopedLogger();
|
|
690
|
+
const tracked = await this.provider.isTrackedWithDetails(path, repoPath, rev);
|
|
691
|
+
if (cancellation?.aborted)
|
|
692
|
+
throw new CancellationError();
|
|
693
|
+
if (tracked == null) {
|
|
694
|
+
scope?.debug(`Skipping log; '${path}' is not tracked`);
|
|
695
|
+
return emptyPromise;
|
|
696
|
+
}
|
|
697
|
+
const relativePath = tracked.path;
|
|
698
|
+
const root = repoPath;
|
|
699
|
+
const log = await this.getLogCore(root, rev, {
|
|
700
|
+
all: options.all,
|
|
701
|
+
authors: options.authors,
|
|
702
|
+
cursor: options.cursor,
|
|
703
|
+
limit: options.limit,
|
|
704
|
+
merges: options.merges,
|
|
705
|
+
ordering: options.ordering,
|
|
706
|
+
since: options.since,
|
|
707
|
+
until: options.until,
|
|
708
|
+
path: {
|
|
709
|
+
pathspec: relativePath,
|
|
710
|
+
filters: options.filters,
|
|
711
|
+
range: options.range,
|
|
712
|
+
renames: options.renames,
|
|
713
|
+
},
|
|
714
|
+
}, cancellation);
|
|
715
|
+
return log;
|
|
716
|
+
}
|
|
717
|
+
async getLogShas(repoPath, rev, options, cancellation) {
|
|
718
|
+
const scope = getScopedLogger();
|
|
719
|
+
const cfg = this.context.config;
|
|
720
|
+
options ??= {};
|
|
721
|
+
options.limit ??= cfg?.commits.maxItems ?? 0;
|
|
722
|
+
options.ordering ??= cfg?.commits.ordering ?? undefined;
|
|
723
|
+
options.similarityThreshold ??= cfg?.commits.similarityThreshold;
|
|
724
|
+
options.merges ??= true;
|
|
725
|
+
const getCore = async () => {
|
|
726
|
+
try {
|
|
727
|
+
const parser = getShaLogParser();
|
|
728
|
+
const args = [...parser.arguments];
|
|
729
|
+
if (options.all) {
|
|
730
|
+
args.push(`--all`);
|
|
731
|
+
}
|
|
732
|
+
if (options.ordering) {
|
|
733
|
+
args.push(`--${options.ordering}-order`);
|
|
734
|
+
}
|
|
735
|
+
if (options.limit) {
|
|
736
|
+
args.push(`-n${options.limit}`);
|
|
737
|
+
}
|
|
738
|
+
if (options.since) {
|
|
739
|
+
args.push(`--since="${options.since}"`);
|
|
740
|
+
}
|
|
741
|
+
if (options.merges) {
|
|
742
|
+
args.push(options.merges === 'first-parent' ? '--first-parent' : '--no-min-parents');
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
args.push('--no-merges');
|
|
746
|
+
}
|
|
747
|
+
if (options.reverse) {
|
|
748
|
+
args.push('--reverse');
|
|
749
|
+
}
|
|
750
|
+
if (options.authors?.length) {
|
|
751
|
+
if (!args.includes('--use-mailmap')) {
|
|
752
|
+
args.push('--use-mailmap');
|
|
753
|
+
}
|
|
754
|
+
args.push(...options.authors.map(a => `--author=^${escapeRegex(a.name ?? '')} <${escapeRegex(a.email ?? '')}>$`));
|
|
755
|
+
}
|
|
756
|
+
const pathspec = options.pathOrUri != null ? this.provider.getRelativePath(options.pathOrUri, repoPath) : undefined;
|
|
757
|
+
if (pathspec) {
|
|
758
|
+
const similarityThreshold = options.similarityThreshold;
|
|
759
|
+
args.push(`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`);
|
|
760
|
+
}
|
|
761
|
+
if (rev && !isUncommittedStaged(rev)) {
|
|
762
|
+
args.push(rev);
|
|
763
|
+
}
|
|
764
|
+
args.push('--');
|
|
765
|
+
if (pathspec) {
|
|
766
|
+
args.push(pathspec);
|
|
767
|
+
}
|
|
768
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog }, 'log', ...args);
|
|
769
|
+
return [...parser.parse(result.stdout)];
|
|
770
|
+
}
|
|
771
|
+
catch (ex) {
|
|
772
|
+
scope?.error(ex);
|
|
773
|
+
if (isCancellationError(ex))
|
|
774
|
+
throw ex;
|
|
775
|
+
debugger;
|
|
776
|
+
return [];
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
// Cache simple queries (no pathspec, no authors) as these are on hot paths (e.g. getting unpublished commits)
|
|
780
|
+
const cacheable = !options.pathOrUri && !options.authors?.length && !options.reverse && !options.all;
|
|
781
|
+
if (cacheable) {
|
|
782
|
+
return this.cache.logShas.getOrCreate(repoPath, `${rev ?? ''}:${options.ordering ?? ''}:${options.limit}:${options.merges}:${options.since ?? ''}`, () => getCore());
|
|
783
|
+
}
|
|
784
|
+
return getCore();
|
|
785
|
+
}
|
|
786
|
+
async getOldestUnpushedShaForPath(repoPath, pathOrUri, cancellation) {
|
|
787
|
+
const scope = getScopedLogger();
|
|
788
|
+
try {
|
|
789
|
+
const relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
790
|
+
const parser = getShaLogParser();
|
|
791
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, configs: gitConfigsLog }, 'log', ...parser.arguments, '--follow', '--reverse', '@{u}..', '--', relativePath);
|
|
792
|
+
return first(parser.parse(result.stdout));
|
|
793
|
+
}
|
|
794
|
+
catch (ex) {
|
|
795
|
+
scope?.error(ex);
|
|
796
|
+
if (isCancellationError(ex))
|
|
797
|
+
throw ex;
|
|
798
|
+
debugger;
|
|
799
|
+
return undefined;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
async hasCommitBeenPushed(repoPath, rev, cancellation) {
|
|
803
|
+
if (repoPath == null)
|
|
804
|
+
return false;
|
|
805
|
+
return this.isAncestorOf(repoPath, rev, '@{u}', cancellation);
|
|
806
|
+
}
|
|
807
|
+
async isAncestorOf(repoPath, rev1, rev2, cancellation) {
|
|
808
|
+
if (repoPath == null)
|
|
809
|
+
return false;
|
|
810
|
+
const result = await this.git.exec({ cwd: repoPath, cancellation: cancellation, errors: 'ignore' }, 'merge-base', '--is-ancestor', rev1, rev2);
|
|
811
|
+
return result.exitCode === 0;
|
|
812
|
+
}
|
|
813
|
+
async searchCommits(repoPath, search, options, cancellation) {
|
|
814
|
+
const scope = getScopedLogger();
|
|
815
|
+
search = { matchAll: false, matchCase: false, matchRegex: true, matchWholeWord: false, ...search };
|
|
816
|
+
// Pre-process natural language search queries via the host-provided hook
|
|
817
|
+
if (search.naturalLanguage &&
|
|
818
|
+
(typeof search.naturalLanguage !== 'object' || !search.naturalLanguage.processedQuery)) {
|
|
819
|
+
search = (await this.context.searchQuery?.preprocessQuery?.(search, options?.source)) ?? search;
|
|
820
|
+
}
|
|
821
|
+
try {
|
|
822
|
+
const cfg = this.context.config;
|
|
823
|
+
const currentUser = await this.provider.config.getCurrentUser(repoPath);
|
|
824
|
+
if (cancellation?.aborted)
|
|
825
|
+
throw new CancellationError();
|
|
826
|
+
const parser = getCommitsLogParser(true);
|
|
827
|
+
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
828
|
+
const args = [
|
|
829
|
+
'log',
|
|
830
|
+
...parser.arguments,
|
|
831
|
+
`-M${similarityThreshold == null ? '' : `${similarityThreshold}%`}`,
|
|
832
|
+
'--use-mailmap',
|
|
833
|
+
];
|
|
834
|
+
const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser);
|
|
835
|
+
let stashes;
|
|
836
|
+
let stdin;
|
|
837
|
+
if (shas?.size) {
|
|
838
|
+
stdin = join(shas, '\n');
|
|
839
|
+
args.push('--no-walk');
|
|
840
|
+
}
|
|
841
|
+
else if (!filters.refs) {
|
|
842
|
+
// Don't include stashes when using ref: filter, as they would add unrelated commits
|
|
843
|
+
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
844
|
+
({ stdin, stashes } = convertStashesToStdin(await this.provider.stash?.getStash(repoPath, undefined, cancellation)));
|
|
845
|
+
}
|
|
846
|
+
if (stdin) {
|
|
847
|
+
args.push('--stdin');
|
|
848
|
+
}
|
|
849
|
+
const limit = options?.limit ?? cfg?.search?.maxItems ?? 0;
|
|
850
|
+
if (limit && !shas?.size) {
|
|
851
|
+
args.push(`-n${limit + 1}`);
|
|
852
|
+
}
|
|
853
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
854
|
+
if (ordering) {
|
|
855
|
+
args.push(`--${ordering}-order`);
|
|
856
|
+
}
|
|
857
|
+
if (options?.skip) {
|
|
858
|
+
args.push(`--skip=${options.skip}`);
|
|
859
|
+
}
|
|
860
|
+
// Add the search args, but skip any shas (as they are already included in the stdin)
|
|
861
|
+
for (const arg of searchArgs) {
|
|
862
|
+
if (shas?.has(arg) || args.includes(arg))
|
|
863
|
+
continue;
|
|
864
|
+
args.push(arg);
|
|
865
|
+
}
|
|
866
|
+
const pathspec = files?.join(' ');
|
|
867
|
+
const { commits, count, countStashChildCommits } = await parseCommits(parser, this.git.stream({
|
|
868
|
+
cwd: repoPath,
|
|
869
|
+
cancellation: cancellation,
|
|
870
|
+
configs: ['-C', repoPath, ...gitConfigsLog],
|
|
871
|
+
stdin: stdin,
|
|
872
|
+
}, ...args, '--', ...files), repoPath, pathspec, limit, stashes, currentUser, filters);
|
|
873
|
+
const log = {
|
|
874
|
+
repoPath: repoPath,
|
|
875
|
+
commits: commits,
|
|
876
|
+
sha: undefined,
|
|
877
|
+
searchFilters: filters,
|
|
878
|
+
count: commits.size,
|
|
879
|
+
limit: limit,
|
|
880
|
+
hasMore: count - countStashChildCommits > commits.size,
|
|
881
|
+
query: (limit) => this.searchCommits(repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
882
|
+
};
|
|
883
|
+
if (log.hasMore) {
|
|
884
|
+
const searchCommitsCore = (log) => {
|
|
885
|
+
return async (limit) => {
|
|
886
|
+
limit = limit ?? 0;
|
|
887
|
+
const moreLog = (await this.searchCommits(log.repoPath, search, {
|
|
888
|
+
...options,
|
|
889
|
+
limit: limit,
|
|
890
|
+
skip: log.count,
|
|
891
|
+
})).log;
|
|
892
|
+
// If we can't find any more, assume we have everything
|
|
893
|
+
if (moreLog == null)
|
|
894
|
+
return { ...log, hasMore: false, more: undefined };
|
|
895
|
+
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
896
|
+
const mergedLog = {
|
|
897
|
+
repoPath: log.repoPath,
|
|
898
|
+
commits: commits,
|
|
899
|
+
sha: log.sha,
|
|
900
|
+
searchFilters: filters,
|
|
901
|
+
count: commits.size,
|
|
902
|
+
limit: (log.limit ?? 0) + limit,
|
|
903
|
+
hasMore: moreLog.hasMore,
|
|
904
|
+
query: (limit) => this.searchCommits(log.repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
905
|
+
};
|
|
906
|
+
if (mergedLog.hasMore) {
|
|
907
|
+
mergedLog.more = searchCommitsCore(mergedLog);
|
|
908
|
+
}
|
|
909
|
+
return mergedLog;
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
log.more = searchCommitsCore(log);
|
|
913
|
+
}
|
|
914
|
+
return { search: search, log: log };
|
|
915
|
+
}
|
|
916
|
+
catch (ex) {
|
|
917
|
+
scope?.error(ex);
|
|
918
|
+
if (isCancellationError(ex))
|
|
919
|
+
throw ex;
|
|
920
|
+
return { search: search, log: undefined };
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
async getCommitSignature(repoPath, sha) {
|
|
924
|
+
const scope = getScopedLogger();
|
|
925
|
+
try {
|
|
926
|
+
const result = await this.git.exec({
|
|
927
|
+
cwd: repoPath,
|
|
928
|
+
errors: 'ignore',
|
|
929
|
+
caching: { cache: this.cache.gitResults, options: { accessTTL: 60 * 1000 } },
|
|
930
|
+
configs: gitConfigsLog,
|
|
931
|
+
}, 'log', `--format=${signatureFormat}`, '-1', sha);
|
|
932
|
+
if (!result.stdout)
|
|
933
|
+
return undefined;
|
|
934
|
+
return parseSignatureOutput(result.stdout);
|
|
935
|
+
}
|
|
936
|
+
catch (ex) {
|
|
937
|
+
scope?.error(ex);
|
|
938
|
+
return undefined;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
async isCommitSigned(repoPath, sha) {
|
|
942
|
+
const scope = getScopedLogger();
|
|
943
|
+
try {
|
|
944
|
+
const result = await this.git.exec({
|
|
945
|
+
cwd: repoPath,
|
|
946
|
+
errors: 'ignore',
|
|
947
|
+
caching: { cache: this.cache.gitResults, options: { accessTTL: 60 * 1000 } },
|
|
948
|
+
}, 'cat-file', 'commit', sha);
|
|
949
|
+
return /^gpgsig(-sha256)? /m.test(result.stdout);
|
|
950
|
+
}
|
|
951
|
+
catch (ex) {
|
|
952
|
+
scope?.error(ex);
|
|
953
|
+
return false;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
__decorate([
|
|
958
|
+
debug()
|
|
959
|
+
], CommitsGitSubProvider.prototype, "createUnreachableCommitFromTree", null);
|
|
960
|
+
__decorate([
|
|
961
|
+
debug()
|
|
962
|
+
], CommitsGitSubProvider.prototype, "getCommit", null);
|
|
963
|
+
__decorate([
|
|
964
|
+
debug({ exit: true })
|
|
965
|
+
], CommitsGitSubProvider.prototype, "getCommitCount", null);
|
|
966
|
+
__decorate([
|
|
967
|
+
debug()
|
|
968
|
+
], CommitsGitSubProvider.prototype, "getCommitFiles", null);
|
|
969
|
+
__decorate([
|
|
970
|
+
debug()
|
|
971
|
+
], CommitsGitSubProvider.prototype, "getCommitForFile", null);
|
|
972
|
+
__decorate([
|
|
973
|
+
debug()
|
|
974
|
+
], CommitsGitSubProvider.prototype, "getCommitReachability", null);
|
|
975
|
+
__decorate([
|
|
976
|
+
debug()
|
|
977
|
+
], CommitsGitSubProvider.prototype, "getIncomingActivity", null);
|
|
978
|
+
__decorate([
|
|
979
|
+
debug({ exit: true })
|
|
980
|
+
], CommitsGitSubProvider.prototype, "getInitialCommitSha", null);
|
|
981
|
+
__decorate([
|
|
982
|
+
debug()
|
|
983
|
+
], CommitsGitSubProvider.prototype, "getLeftRightCommitCount", null);
|
|
984
|
+
__decorate([
|
|
985
|
+
debug()
|
|
986
|
+
], CommitsGitSubProvider.prototype, "getLog", null);
|
|
987
|
+
__decorate([
|
|
988
|
+
trace({ args: (repoPath, rev) => ({ repoPath: repoPath, rev: rev }), exit: true })
|
|
989
|
+
], CommitsGitSubProvider.prototype, "getLogCore", null);
|
|
990
|
+
__decorate([
|
|
991
|
+
debug()
|
|
992
|
+
], CommitsGitSubProvider.prototype, "getLogForPath", null);
|
|
993
|
+
__decorate([
|
|
994
|
+
debug()
|
|
995
|
+
], CommitsGitSubProvider.prototype, "getLogShas", null);
|
|
996
|
+
__decorate([
|
|
997
|
+
debug()
|
|
998
|
+
], CommitsGitSubProvider.prototype, "getOldestUnpushedShaForPath", null);
|
|
999
|
+
__decorate([
|
|
1000
|
+
debug()
|
|
1001
|
+
], CommitsGitSubProvider.prototype, "hasCommitBeenPushed", null);
|
|
1002
|
+
__decorate([
|
|
1003
|
+
debug()
|
|
1004
|
+
], CommitsGitSubProvider.prototype, "isAncestorOf", null);
|
|
1005
|
+
__decorate([
|
|
1006
|
+
debug({
|
|
1007
|
+
args: (repoPath, s) => ({
|
|
1008
|
+
repoPath: repoPath,
|
|
1009
|
+
search: `[${s.matchAll ? 'A' : ''}${s.matchCase ? 'C' : ''}${s.matchRegex ? 'R' : ''}${s.matchWholeWord ? 'W' : ''}]: ${s.query.length > 500 ? `${s.query.substring(0, 500)}...` : s.query}`,
|
|
1010
|
+
}),
|
|
1011
|
+
})
|
|
1012
|
+
], CommitsGitSubProvider.prototype, "searchCommits", null);
|
|
1013
|
+
__decorate([
|
|
1014
|
+
debug()
|
|
1015
|
+
], CommitsGitSubProvider.prototype, "getCommitSignature", null);
|
|
1016
|
+
__decorate([
|
|
1017
|
+
debug()
|
|
1018
|
+
], CommitsGitSubProvider.prototype, "isCommitSigned", null);
|
|
1019
|
+
function toCommit(c, repoPath, pathspec, currentUser) {
|
|
1020
|
+
const message = c.message.trim();
|
|
1021
|
+
const index = message.indexOf('\n');
|
|
1022
|
+
const isCurrentAuthor = isUserMatch(currentUser, c.author, c.authorEmail) || undefined;
|
|
1023
|
+
const isCurrentCommitter = isUserMatch(currentUser, c.committer, c.committerEmail) || undefined;
|
|
1024
|
+
return new GitCommit(repoPath, c.sha, new GitCommitIdentity(c.author, c.authorEmail, new Date(Number(c.authorDate) * 1000), undefined, isCurrentAuthor), new GitCommitIdentity(c.committer, c.committerEmail, new Date(Number(c.committerDate) * 1000), undefined, isCurrentCommitter), index !== -1 ? message.substring(0, index) : message, c.parents?.split(' ') ?? [], message, createCommitFileset(c, repoPath, pathspec), c.stats, undefined, c.tips?.split(' '));
|
|
1025
|
+
}
|
|
1026
|
+
function getGitStartEnd(range) {
|
|
1027
|
+
// Library DiffRange is always 1-based, startLine <= endLine
|
|
1028
|
+
return [range.startLine, range.endLine];
|
|
1029
|
+
}
|
|
1030
|
+
async function parseCommits(parser, resultOrStream, repoPath, pathspec, limit, stashes, currentUser, searchFilters) {
|
|
1031
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
1032
|
+
try {
|
|
1033
|
+
let count = 0;
|
|
1034
|
+
let countStashChildCommits = 0;
|
|
1035
|
+
const commits = new Map();
|
|
1036
|
+
const tipsOnly = searchFilters?.type === 'tip';
|
|
1037
|
+
if (resultOrStream instanceof Promise) {
|
|
1038
|
+
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
1039
|
+
try {
|
|
1040
|
+
const scope = getScopedLogger();
|
|
1041
|
+
const result = await resultOrStream;
|
|
1042
|
+
const sw = __addDisposableResource(env_2, maybeStopWatch(scope, { log: { onlyExit: true, level: 'debug' } }), false);
|
|
1043
|
+
if (stashes?.size) {
|
|
1044
|
+
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1045
|
+
const stashesOnly = searchFilters?.type === 'stash';
|
|
1046
|
+
for (const c of parser.parse(result.stdout)) {
|
|
1047
|
+
if (stashesOnly && !stashes?.has(c.sha))
|
|
1048
|
+
continue;
|
|
1049
|
+
if (tipsOnly && !c.tips)
|
|
1050
|
+
continue;
|
|
1051
|
+
count++;
|
|
1052
|
+
if (limit && count > limit)
|
|
1053
|
+
break;
|
|
1054
|
+
const stash = stashes?.get(c.sha);
|
|
1055
|
+
if (stash != null) {
|
|
1056
|
+
if (commits.has(stash.sha)) {
|
|
1057
|
+
countStashChildCommits++;
|
|
1058
|
+
}
|
|
1059
|
+
else if (allowFilteredFiles) {
|
|
1060
|
+
commits.set(stash.sha, stash.with({
|
|
1061
|
+
fileset: {
|
|
1062
|
+
...createCommitFileset(c, repoPath, pathspec),
|
|
1063
|
+
// Add the full stash files back into the fileset
|
|
1064
|
+
files: stash.fileset?.files,
|
|
1065
|
+
},
|
|
1066
|
+
}));
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
commits.set(stash.sha, stash);
|
|
1070
|
+
}
|
|
1071
|
+
continue;
|
|
1072
|
+
}
|
|
1073
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
else {
|
|
1077
|
+
for (const c of parser.parse(result.stdout)) {
|
|
1078
|
+
if (tipsOnly && !c.tips)
|
|
1079
|
+
continue;
|
|
1080
|
+
count++;
|
|
1081
|
+
if (limit && count > limit)
|
|
1082
|
+
break;
|
|
1083
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
sw?.stop({ suffix: ` created ${count} commits` });
|
|
1087
|
+
return { commits: commits, count: count, countStashChildCommits: countStashChildCommits };
|
|
1088
|
+
}
|
|
1089
|
+
catch (e_1) {
|
|
1090
|
+
env_2.error = e_1;
|
|
1091
|
+
env_2.hasError = true;
|
|
1092
|
+
}
|
|
1093
|
+
finally {
|
|
1094
|
+
__disposeResources(env_2);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
const _streamDisposer = __addDisposableResource(env_1, createDisposable(() => void resultOrStream.return?.(undefined)), false);
|
|
1098
|
+
if (stashes?.size) {
|
|
1099
|
+
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1100
|
+
const stashesOnly = searchFilters?.type === 'stash';
|
|
1101
|
+
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1102
|
+
if (stashesOnly && !stashes?.has(c.sha))
|
|
1103
|
+
continue;
|
|
1104
|
+
if (tipsOnly && !c.tips)
|
|
1105
|
+
continue;
|
|
1106
|
+
count++;
|
|
1107
|
+
if (limit && count > limit)
|
|
1108
|
+
break;
|
|
1109
|
+
const stash = stashes?.get(c.sha);
|
|
1110
|
+
if (stash != null) {
|
|
1111
|
+
if (commits.has(stash.sha)) {
|
|
1112
|
+
countStashChildCommits++;
|
|
1113
|
+
}
|
|
1114
|
+
else if (allowFilteredFiles) {
|
|
1115
|
+
commits.set(stash.sha, stash.with({
|
|
1116
|
+
fileset: {
|
|
1117
|
+
...createCommitFileset(c, repoPath, pathspec),
|
|
1118
|
+
// Add the full stash files back into the fileset
|
|
1119
|
+
files: stash.fileset?.files,
|
|
1120
|
+
},
|
|
1121
|
+
}));
|
|
1122
|
+
}
|
|
1123
|
+
else {
|
|
1124
|
+
commits.set(stash.sha, stash);
|
|
1125
|
+
}
|
|
1126
|
+
continue;
|
|
1127
|
+
}
|
|
1128
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1133
|
+
if (tipsOnly && !c.tips)
|
|
1134
|
+
continue;
|
|
1135
|
+
count++;
|
|
1136
|
+
if (limit && count > limit)
|
|
1137
|
+
break;
|
|
1138
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
return { commits: commits, count: count, countStashChildCommits: countStashChildCommits };
|
|
1142
|
+
}
|
|
1143
|
+
catch (e_2) {
|
|
1144
|
+
env_1.error = e_2;
|
|
1145
|
+
env_1.hasError = true;
|
|
1146
|
+
}
|
|
1147
|
+
finally {
|
|
1148
|
+
__disposeResources(env_1);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
//# sourceMappingURL=commits.js.map
|