@gitkraken/core-gitlens 0.13.0 → 0.14.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 +23 -2
- package/dist/git/features.d.ts +1 -1
- package/dist/git/features.js +1 -0
- package/dist/git/features.js.map +1 -1
- package/dist/git/models/branch.d.ts +5 -0
- package/dist/git/models/branch.js +1 -1
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/reference.d.ts +3 -0
- package/dist/git/models/status.js +1 -1
- package/dist/git/parsers/diffParser.js +1 -1
- package/dist/git/providers/operations.d.ts +3 -2
- package/dist/git/providers/provider.d.ts +15 -4
- package/dist/git/providers/revision.d.ts +17 -3
- package/dist/git/run.types.d.ts +12 -0
- package/dist/git/utils/branch.utils.d.ts +4 -1
- package/dist/git/utils/branch.utils.js +20 -5
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +1 -0
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +8 -2
- package/dist/git-cli/cliGitProvider.js +75 -13
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/git.d.ts +5 -0
- package/dist/git-cli/exec/git.js +28 -5
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/indexLock.d.ts +3 -2
- package/dist/git-cli/exec/indexLock.js +16 -6
- package/dist/git-cli/exec/indexLock.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.js +2 -2
- package/dist/git-cli/parsers/refParser.js +4 -2
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +6 -0
- package/dist/git-cli/parsers/statusParser.js +33 -3
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/providers/branchRemote.d.ts +14 -0
- package/dist/git-cli/providers/branchRemote.js +36 -0
- package/dist/git-cli/providers/branchRemote.js.map +1 -0
- package/dist/git-cli/providers/branches.js +6 -3
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commits.js +2 -2
- package/dist/git-cli/providers/config.js +2 -2
- package/dist/git-cli/providers/contributors.js +1 -1
- package/dist/git-cli/providers/graph.js +9 -6
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/operations.js +20 -16
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +6 -2
- package/dist/git-cli/providers/revision.js +38 -12
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.js +1 -1
- package/dist/git-cli/providers/status.js +2 -2
- package/dist/ipc/discovery.js +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.js +6 -6
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +6 -2
- package/dist/plus/git-github/providers/github/revision.js +15 -10
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.js +1 -1
- package/dist/plus/integrations/providers/azure/azure.js +1 -1
- package/dist/plus/integrations/providers/azure/workItemStateCategories.d.ts +5 -0
- package/dist/plus/integrations/providers/azure/workItemStateCategories.js +5 -0
- package/dist/plus/integrations/providers/azure/workItemStateCategories.js.map +1 -1
- package/dist/utils/env/node/exec.js +2 -2
- package/package.json +1 -1
|
@@ -11,12 +11,12 @@ import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from "../.
|
|
|
11
11
|
import __decorate from "../../_virtual/@oxc-project+runtime/helpers/esm/decorate.js";
|
|
12
12
|
import { SigningError } from "../../git/errors.js";
|
|
13
13
|
import { GitErrors, classifySigningError, gitConfigsLog, gitConfigsLogWithFiles } from "../exec/git.js";
|
|
14
|
+
import { maybeStopWatch } from "../../utils/stopwatch.js";
|
|
15
|
+
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
14
16
|
import { GitFileChange } from "../../git/models/fileChange.js";
|
|
15
17
|
import { createUncommittedChangesCommit } from "../../git/utils/commit.utils.js";
|
|
16
18
|
import { GitCommit, GitCommitIdentity } from "../../git/models/commit.js";
|
|
17
19
|
import { isUserMatch } from "../../git/utils/user.utils.js";
|
|
18
|
-
import { maybeStopWatch } from "../../utils/stopwatch.js";
|
|
19
|
-
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
20
20
|
import { compareReachableRefs } from "../../git/utils/sorting.js";
|
|
21
21
|
import { parseSearchQueryGitCommand } from "../../git/utils/search.utils.js";
|
|
22
22
|
import { getCommitsLogParser, getShaAndDatesLogParser, getShaAndFilesAndStatsLogParser, getShaLogParser } from "../parsers/logParser.js";
|
|
@@ -10,9 +10,9 @@ import { WorkspaceUntrustedError } from "../../git/errors.js";
|
|
|
10
10
|
import { fsExists } from "../../utils/env/node/exec.js";
|
|
11
11
|
import { KeyedSequencer } from "../exec/indexLock.js";
|
|
12
12
|
import { gate } from "../../utils/decorators/gate.js";
|
|
13
|
-
import { hostname, userInfo } from "os";
|
|
14
|
-
import { env } from "process";
|
|
15
13
|
import { promises } from "fs";
|
|
14
|
+
import { env } from "process";
|
|
15
|
+
import { hostname, userInfo } from "os";
|
|
16
16
|
//#region ../git-cli/src/providers/config.ts
|
|
17
17
|
const mappedAuthorRegex = /(.+)\s<(.+)>/;
|
|
18
18
|
const emptyArray = Object.freeze([]);
|
|
@@ -5,8 +5,8 @@ import { createDisposable } from "../../utils/disposable.js";
|
|
|
5
5
|
import { isUncommittedStaged } from "../../git/utils/revision.utils.js";
|
|
6
6
|
import __decorate from "../../_virtual/@oxc-project+runtime/helpers/esm/decorate.js";
|
|
7
7
|
import { gitConfigsLog } from "../exec/git.js";
|
|
8
|
-
import { isUserMatch } from "../../git/utils/user.utils.js";
|
|
9
8
|
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
9
|
+
import { isUserMatch } from "../../git/utils/user.utils.js";
|
|
10
10
|
import { getContributorsLogParser } from "../parsers/logParser.js";
|
|
11
11
|
import { GitContributor } from "../../git/models/contributor.js";
|
|
12
12
|
import { calculateContributionScore } from "../../git/utils/contributor.utils.js";
|
|
@@ -6,12 +6,13 @@ import { debug } from "../../utils/decorators/log.js";
|
|
|
6
6
|
import { createDisposable } from "../../utils/disposable.js";
|
|
7
7
|
import { getBranchId, getBranchNameWithoutRemote, getRemoteNameFromBranchName } from "../../utils/gitRefs.js";
|
|
8
8
|
import { isUncommitted } from "../../git/utils/revision.utils.js";
|
|
9
|
+
import { splitRemoteBranchName } from "../../git/utils/branch.utils.js";
|
|
9
10
|
import __decorate from "../../_virtual/@oxc-project+runtime/helpers/esm/decorate.js";
|
|
10
11
|
import { GitSearchError } from "../../git/errors.js";
|
|
11
12
|
import { classifySearchError, gitConfigsLog } from "../exec/git.js";
|
|
13
|
+
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
12
14
|
import { fnv1aHash64 } from "../../utils/hash.js";
|
|
13
15
|
import { isUserMatch } from "../../git/utils/user.utils.js";
|
|
14
|
-
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
15
16
|
import { getSearchQueryComparisonKey, parseSearchQueryGitCommand } from "../../git/utils/search.utils.js";
|
|
16
17
|
import { getGraphParser, getShaAndDatesLogParser, getShaAndDatesWithFilesLogParser, getShaAndStatsLogParser, getShaLogParser } from "../parsers/logParser.js";
|
|
17
18
|
import { convertStashesToStdin } from "./stash.js";
|
|
@@ -239,8 +240,11 @@ var GraphGitSubProvider = class {
|
|
|
239
240
|
const headBranch = branches?.find((b) => b.current);
|
|
240
241
|
const headRefUpstreamName = headBranch?.upstream?.name;
|
|
241
242
|
const [worktrees, worktreesByBranch] = getSettledValue(worktreesResult) ?? [[], /* @__PURE__ */ new Map()];
|
|
243
|
+
const remotes = getSettledValue(remotesResult);
|
|
244
|
+
const remoteMap = remotes != null ? new Map(remotes.map((r) => [r.name, r])) : /* @__PURE__ */ new Map();
|
|
245
|
+
const slashRemoteNames = [...remoteMap.keys()].filter((n) => n.includes("/"));
|
|
242
246
|
const defaultBranchName = getSettledValue(defaultBranchResult);
|
|
243
|
-
const defaultLocalName = defaultBranchName != null ? getBranchNameWithoutRemote(defaultBranchName) : void 0;
|
|
247
|
+
const defaultLocalName = defaultBranchName != null ? (slashRemoteNames.length ? splitRemoteBranchName(defaultBranchName, slashRemoteNames)?.[1] : void 0) ?? getBranchNameWithoutRemote(defaultBranchName) : void 0;
|
|
244
248
|
let branchIdOfMainWorktree;
|
|
245
249
|
let mainWorktree;
|
|
246
250
|
if (worktreesByBranch != null) {
|
|
@@ -251,8 +255,6 @@ var GraphGitSubProvider = class {
|
|
|
251
255
|
}
|
|
252
256
|
}
|
|
253
257
|
const currentUser = getSettledValue(currentUserResult);
|
|
254
|
-
const remotes = getSettledValue(remotesResult);
|
|
255
|
-
const remoteMap = remotes != null ? new Map(remotes.map((r) => [r.name, r])) : /* @__PURE__ */ new Map();
|
|
256
258
|
const decorationFingerprint = computeDecorationFingerprint(repoPath, defaultBranchName, defaultLocalName, headRefUpstreamName, branches, remotes, worktrees, currentUser);
|
|
257
259
|
const shas = getSettledValue(shaResult)?.stdout;
|
|
258
260
|
const selectSha = shas != null ? first(shaParser.parse(shas)) : void 0;
|
|
@@ -361,11 +363,12 @@ var GraphGitSubProvider = class {
|
|
|
361
363
|
sawHead = true;
|
|
362
364
|
if (tip !== "HEAD") tip = tip.substring(8);
|
|
363
365
|
}
|
|
364
|
-
const
|
|
366
|
+
const slashRemote = slashRemoteNames.length ? splitRemoteBranchName(tip, slashRemoteNames) : void 0;
|
|
367
|
+
const remoteName = slashRemote?.[0] ?? getRemoteNameFromBranchName(tip);
|
|
365
368
|
if (remoteName) {
|
|
366
369
|
const remote = remoteMap.get(remoteName);
|
|
367
370
|
if (remote != null) {
|
|
368
|
-
const branchName = getBranchNameWithoutRemote(tip);
|
|
371
|
+
const branchName = slashRemote?.[1] ?? getBranchNameWithoutRemote(tip);
|
|
369
372
|
if (branchName === "HEAD") continue;
|
|
370
373
|
refRemoteHeads.push({
|
|
371
374
|
id: getBranchId(repoPath, true, tip),
|