@gitkraken/core-gitlens 0.47.0 → 0.48.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 +11 -1
- package/dist/git-cli/providers/branches.js +8 -4
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/config.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/staging.js +1 -1
- 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/anthropicProvider.js +0 -20
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
- package/dist/plus/integrations/models/publicIntegration.d.ts +0 -1
- package/dist/plus/integrations/providers/azure/azure.js +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
- package/dist/plus/integrations/reads/drains.d.ts +0 -1
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/date.js +10 -1
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/env/node/exec.js +2 -2
- package/dist/utils/keys/keymapDispatcher.d.ts +12 -0
- package/dist/utils/keys/keymapDispatcher.js +33 -1
- package/dist/utils/keys/keymapDispatcher.js.map +1 -1
- package/dist/utils/pausedOperation.js +48 -16
- package/dist/utils/pausedOperation.js.map +1 -1
- package/dist/utils/plural.d.ts +1 -0
- package/dist/utils/plural.js +7 -2
- package/dist/utils/plural.js.map +1 -1
- package/dist/utils/wheel.d.ts +8 -0
- package/dist/utils/wheel.js +12 -0
- package/dist/utils/wheel.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.48.0] - 2026-11-24
|
|
10
|
+
|
|
11
|
+
## [0.47.1] - 2026-11-24
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Reports absent refs and unrelated histories as typed conflict detection errors when Git cannot run a merge-tree check (git-cli)
|
|
16
|
+
|
|
9
17
|
## [0.47.0] - 2026-11-24
|
|
10
18
|
|
|
11
19
|
### Added
|
|
@@ -1428,7 +1436,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
1428
1436
|
|
|
1429
1437
|
- Initial release. Bundles `@gitlens/utils`, `@gitlens/git`, `@gitlens/git-cli`, `@gitlens/ai`, and `@gitlens/git-github` into a single core npm package with subpath exports.
|
|
1430
1438
|
|
|
1431
|
-
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.
|
|
1439
|
+
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.48.0...HEAD
|
|
1440
|
+
[0.48.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.1...gitkraken:releases/core/v0.48.0
|
|
1441
|
+
[0.47.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.0...gitkraken:releases/core/v0.47.1
|
|
1432
1442
|
[0.47.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.46.0...gitkraken:releases/core/v0.47.0
|
|
1433
1443
|
[0.46.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.45.0...gitkraken:releases/core/v0.46.0
|
|
1434
1444
|
[0.45.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.44.0...gitkraken:releases/core/v0.45.0
|
|
@@ -65,6 +65,8 @@ const branchActivityKeys = [
|
|
|
65
65
|
"gk-last-modified",
|
|
66
66
|
"gk-agent-last-activity"
|
|
67
67
|
];
|
|
68
|
+
const mergeTreeRefNotFound = /^merge-tree: [^\r\n]+ - not something we can merge\s*$/i;
|
|
69
|
+
const mergeTreeNoMergeBase = /^fatal: refusing to merge unrelated histories\s*$/i;
|
|
68
70
|
/**
|
|
69
71
|
* The most commits a base's reflog may reach off its new tip's history for a re-measure: every worktree's count
|
|
70
72
|
* excludes each of them on its command line, and more come only from a long history force-pushed away, where a full
|
|
@@ -1225,13 +1227,14 @@ var BranchesGitSubProvider = class {
|
|
|
1225
1227
|
} catch (ex) {
|
|
1226
1228
|
if (isCancellationError(ex)) throw ex;
|
|
1227
1229
|
const msg = ex?.toString() ?? "";
|
|
1228
|
-
|
|
1230
|
+
const stderr = ex instanceof GitError ? ex.stderr ?? "" : "";
|
|
1231
|
+
if (GitErrors.notAValidObjectName.test(msg) || mergeTreeRefNotFound.test(stderr)) {
|
|
1229
1232
|
scope?.error(ex, `'${targetBranch}' or '${branch}' not found - ensure the branches exist and are fully qualified (e.g. 'refs/heads/main')`);
|
|
1230
1233
|
return createConflictDetectionError("refNotFound");
|
|
1231
1234
|
} else if (GitErrors.badRevision.test(msg)) {
|
|
1232
1235
|
scope?.error(ex, `Invalid branch name: ${msg.slice(msg.indexOf("'"))}`);
|
|
1233
1236
|
return createConflictDetectionError("refNotFound");
|
|
1234
|
-
} else if (GitErrors.noMergeBase.test(msg)) {
|
|
1237
|
+
} else if (GitErrors.noMergeBase.test(msg) || mergeTreeNoMergeBase.test(stderr)) {
|
|
1235
1238
|
scope?.error(ex, `Unable to merge '${branch}' and '${targetBranch}' as they have no common ancestor`);
|
|
1236
1239
|
return createConflictDetectionError("noMergeBase");
|
|
1237
1240
|
} else if (ex instanceof GitError && ex.stdout) data = ex.stdout;
|
|
@@ -1320,7 +1323,8 @@ var BranchesGitSubProvider = class {
|
|
|
1320
1323
|
} catch (ex) {
|
|
1321
1324
|
if (isCancellationError(ex)) throw ex;
|
|
1322
1325
|
const msg = ex?.toString() ?? "";
|
|
1323
|
-
|
|
1326
|
+
const stderr = ex instanceof GitError ? ex.stderr ?? "" : "";
|
|
1327
|
+
if (GitErrors.notAValidObjectName.test(msg) || mergeTreeRefNotFound.test(stderr)) {
|
|
1324
1328
|
scope?.error(ex, `'${ours}' or '${theirs}' not found - ensure the branches/commits exist`);
|
|
1325
1329
|
return {
|
|
1326
1330
|
ok: false,
|
|
@@ -1332,7 +1336,7 @@ var BranchesGitSubProvider = class {
|
|
|
1332
1336
|
ok: false,
|
|
1333
1337
|
reason: "refNotFound"
|
|
1334
1338
|
};
|
|
1335
|
-
} else if (GitErrors.noMergeBase.test(msg)) {
|
|
1339
|
+
} else if (GitErrors.noMergeBase.test(msg) || mergeTreeNoMergeBase.test(stderr)) {
|
|
1336
1340
|
scope?.error(ex, `Unable to merge '${ours}' and '${theirs}' as they have no common ancestor`);
|
|
1337
1341
|
return {
|
|
1338
1342
|
ok: false,
|