@gitkraken/core-gitlens 0.70.1 → 0.70.3
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 +17 -2
- package/dist/git/service.d.ts +3 -2
- package/dist/git/service.js +3 -2
- package/dist/git/service.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +2 -1
- package/dist/git/watching/watchService.js +6 -4
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/worktreeSummary.d.ts +2 -1
- package/dist/git/watching/worktreeSummary.js +1 -1
- package/dist/git/watching/worktreeSummary.js.map +1 -1
- package/dist/git-cli/exec/git.js +6 -3
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/service.js +1 -0
- package/dist/git-cli/service.js.map +1 -1
- package/dist/plus/integrations/models/publicIntegration.d.ts +1 -0
- package/dist/plus/integrations/providers/issueSorts.d.ts +1 -0
- package/dist/plus/integrations/reads/drains.d.ts +1 -0
- package/package.json +1 -1
package/dist/git-cli/exec/git.js
CHANGED
|
@@ -167,6 +167,9 @@ const GitErrors = {
|
|
|
167
167
|
worktreeLocked: /fatal:\s*cannot remove a locked working tree/i,
|
|
168
168
|
worktreeLockedReason: /cannot remove a locked working tree,[ \t]*lock reason:[ \t]*(.*)/i
|
|
169
169
|
};
|
|
170
|
+
function getRunKey(configs, gitCommand) {
|
|
171
|
+
return configs?.length ? `${configs.join(" ")} ${gitCommand}` : gitCommand;
|
|
172
|
+
}
|
|
170
173
|
var GitError = class extends Error {
|
|
171
174
|
original;
|
|
172
175
|
cmd;
|
|
@@ -785,8 +788,8 @@ var Git = class {
|
|
|
785
788
|
const gitCommand = `git ${runArgs.join(" ")}`;
|
|
786
789
|
if (options.caching != null && !gitCommand.includes("FETCH_HEAD")) {
|
|
787
790
|
const cachePath = options.caching.commonPath ?? options.cwd;
|
|
788
|
-
if (options.caching.force) options.caching.cache.delete(cachePath, gitCommand);
|
|
789
|
-
return options.caching.cache.getOrCreate(cachePath, gitCommand, async (cacheable, signal) => {
|
|
791
|
+
if (options.caching.force) options.caching.cache.delete(cachePath, getRunKey(options.configs, gitCommand));
|
|
792
|
+
return options.caching.cache.getOrCreate(cachePath, getRunKey(options.configs, gitCommand), async (cacheable, signal) => {
|
|
790
793
|
const result = await this.runCore({
|
|
791
794
|
...options,
|
|
792
795
|
caching: void 0,
|
|
@@ -914,7 +917,7 @@ var Git = class {
|
|
|
914
917
|
spawn: this.options.spawn
|
|
915
918
|
};
|
|
916
919
|
const unshared = options?.stdin != null || options?.env != null && Object.keys(options.env).length > 0 || beforeIndexLockRetry != null || encoding === "buffer";
|
|
917
|
-
const cacheKey = `${correlationKey !== void 0 ? `${correlationKey}:` : ""}${unshared ? `${unsharedRunCounter.next()}:` : ""}${encoding != null && encoding !== "utf8" ? `${encoding}:` : ""}${cancellation != null ? `${getAbortSignalId(cancellation)}:` : ""}${indexLockWait != null ? `indexLockWait=${indexLockWait}:` : ""}${gitCommand}`;
|
|
920
|
+
const cacheKey = `${correlationKey !== void 0 ? `${correlationKey}:` : ""}${unshared ? `${unsharedRunCounter.next()}:` : ""}${encoding != null && encoding !== "utf8" ? `${encoding}:` : ""}${cancellation != null ? `${getAbortSignalId(cancellation)}:` : ""}${indexLockWait != null ? `indexLockWait=${indexLockWait}:` : ""}${getRunKey(configs, gitCommand)}`;
|
|
918
921
|
let execStart;
|
|
919
922
|
let hookFailure;
|
|
920
923
|
let waiting;
|