@gitkraken/core-gitlens 0.61.0 → 0.61.1
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 +8 -1
- package/dist/git/watching/provider.d.ts +2 -2
- package/dist/git/watching/watcherPatterns.d.ts +3 -3
- package/dist/git/watching/watcherPatterns.js +9 -5
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/plus/integrations/models/publicIntegration.d.ts +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
- package/dist/plus/integrations/reads/drains.d.ts +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.61.1] - 2026-12-03
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Reduces native repository watcher traffic from Git fsmonitor daemon artifacts and Watchman cookies (git) ([#6453](https://github.com/gitkraken/vscode-gitlens/issues/6453))
|
|
14
|
+
|
|
9
15
|
## [0.61.0] - 2026-12-02
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -1555,7 +1561,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
1555
1561
|
|
|
1556
1562
|
- 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.
|
|
1557
1563
|
|
|
1558
|
-
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.
|
|
1564
|
+
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.1...core
|
|
1565
|
+
[0.61.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.0..releases/core/v0.61.1
|
|
1559
1566
|
[0.61.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.60.1..releases/core/v0.61.0
|
|
1560
1567
|
[0.60.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.60.0..releases/core/v0.60.1
|
|
1561
1568
|
[0.60.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.59.0..releases/core/v0.60.0
|
|
@@ -49,7 +49,7 @@ export interface GitIgnoringFileWatcher extends FileWatcher {
|
|
|
49
49
|
export type FileWatcherReliability = 'reliable' | 'unreliable' | 'unwatchable';
|
|
50
50
|
export interface FileWatcherOptions {
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Paths to leave unwatched, including anything beneath a matching directory. Entries are `/`-separated and relative to
|
|
53
53
|
* `basePath`: a glob when it contains glob syntax (`build-*`), otherwise a literal path (`dist`,
|
|
54
54
|
* `packages/app/out`) — core never emits a literal containing glob metacharacters. A provider that can prune
|
|
55
55
|
* natively should (no OS watch, no events); one that can't may ignore this, since core filters events itself.
|
|
@@ -73,7 +73,7 @@ export interface FileWatcherOptions {
|
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Factory for creating filesystem watchers. The library calls this
|
|
76
|
-
* with a base path + glob pattern (plus, optionally,
|
|
76
|
+
* with a base path + glob pattern (plus, optionally, paths to prune);
|
|
77
77
|
* the caller creates platform-specific watchers (e.g., VS Code's
|
|
78
78
|
* `workspace.createFileSystemWatcher`, or a native watcher such as `@parcel/watcher`).
|
|
79
79
|
*
|
|
@@ -12,8 +12,8 @@ export declare const dotGitGlobCommon = "{config,gk/config,refs/**,packed-refs,s
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function isGitDirCommonPath(relativePath: string): boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* Only
|
|
15
|
+
* Paths to leave unwatched under the `.git` directory (relative to it), for a provider that prunes natively.
|
|
16
|
+
* Only paths nothing in the globs above reads: never anything under `refs`, `worktrees/*` itself, `gk`, `info`,
|
|
17
17
|
* or the rebase/sequencer directories.
|
|
18
18
|
*/
|
|
19
19
|
export declare const gitDirExcludes: readonly string[];
|
|
@@ -52,7 +52,7 @@ export declare function sanitizeIgnoredWorktreeFolders(folders: readonly string[
|
|
|
52
52
|
*/
|
|
53
53
|
export declare function getIgnoredWorktreeFolderExcludes(folders: readonly string[] | undefined): string[];
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Paths to leave unwatched in the working tree (relative to it), for a provider that prunes natively —
|
|
56
56
|
* the same ones {@link shouldIgnoreWorkingTreePath} drops from events.
|
|
57
57
|
*/
|
|
58
58
|
export declare const workingTreeExcludes: readonly string[];
|
|
@@ -19,8 +19,8 @@ function isGitDirCommonPath(relativePath) {
|
|
|
19
19
|
return dotGitCommonPathRegex.test(relativePath);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* Only
|
|
22
|
+
* Paths to leave unwatched under the `.git` directory (relative to it), for a provider that prunes natively.
|
|
23
|
+
* Only paths nothing in the globs above reads: never anything under `refs`, `worktrees/*` itself, `gk`, `info`,
|
|
24
24
|
* or the rebase/sequencer directories.
|
|
25
25
|
*/
|
|
26
26
|
const gitDirExcludes = [
|
|
@@ -30,7 +30,7 @@ const gitDirExcludes = [
|
|
|
30
30
|
"lfs",
|
|
31
31
|
"modules",
|
|
32
32
|
"rr-cache",
|
|
33
|
-
"fsmonitor--daemon",
|
|
33
|
+
"fsmonitor--daemon*",
|
|
34
34
|
"worktrees/*/logs"
|
|
35
35
|
];
|
|
36
36
|
/**
|
|
@@ -137,10 +137,14 @@ function getIgnoredWorktreeFolderExcludes(folders) {
|
|
|
137
137
|
return sanitizeIgnoredWorktreeFolders(folders).filter((f) => !watchedGitDirNameRegex.test(f.split("/")[0]));
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Paths to leave unwatched in the working tree (relative to it), for a provider that prunes natively —
|
|
141
141
|
* the same ones {@link shouldIgnoreWorkingTreePath} drops from events.
|
|
142
142
|
*/
|
|
143
|
-
const workingTreeExcludes = [
|
|
143
|
+
const workingTreeExcludes = [
|
|
144
|
+
"**/node_modules",
|
|
145
|
+
"**/.git",
|
|
146
|
+
"**/.watchman-cookie-*"
|
|
147
|
+
];
|
|
144
148
|
/** Glob for watching .gitignore files in the working tree */
|
|
145
149
|
const gitIgnoreGlob = ".gitignore";
|
|
146
150
|
/** Glob for detecting .git directory creation (repository init/clone) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcherPatterns.js","names":[],"sources":["../../../../git/src/watching/watcherPatterns.ts"],"sourcesContent":["import { getBestPath, isAbsolute } from '@gitlens/utils/path.js';\nimport { isLinux } from '@gitlens/utils/platform.js';\nimport { escapeRegex } from '@gitlens/utils/string.js';\nimport type { GitDirProbe } from './gitDirPoller.js';\n\n// Glob patterns for watching files inside the .git directory.\n// They represent pure Git knowledge — the library owns these patterns and\n// provides them to the pluggable FileWatcherFactory.\n\nconst dotGitFiles =\n\t'index,HEAD,*_HEAD,MERGE_*,rebase-apply,rebase-apply/**,rebase-merge,rebase-merge/**,sequencer,sequencer/**';\n\n// `worktrees` (the bare entry, no `/*` suffix) is its own pattern: `worktree remove` deletes the whole\n// `worktrees/<id>` subtree in one syscall, and some platforms/watcher backends coalesce a same-instant\n// subtree delete into a single event for the PARENT directory — `worktrees/*` alone never matches that.\n// `classifyGitDirChange` classifies a bare `worktrees` path, so this is watch-coverage only.\n//\n// Only what `git worktree list` reports per worktree is watched here (its HEAD, lock and location). A\n// linked worktree's own index, `*_HEAD`, `MERGE_*`, rebase and sequencer state is watched by that\n// worktree's root watcher (`dotGitGlobRoot`) instead, so it never wakes sibling worktrees.\nconst dotGitWorktreeFiles = 'worktrees,worktrees/*,worktrees/*/HEAD,worktrees/*/locked,worktrees/*/gitdir';\n\nconst dotGitCommonFiles = `config,gk/config,refs/**,packed-refs,shallow,info/exclude,FETCH_HEAD,${dotGitWorktreeFiles}`;\n\n/** For a checkout whose `.git` directory is the common one (a standard repo or a main checkout): every .git file */\nexport const dotGitGlobCombined = `{${dotGitFiles},${dotGitCommonFiles}}`;\n\n/** For worktree repos: root watcher (worktree-specific files only) */\nexport const dotGitGlobRoot = `{${dotGitFiles}}`;\n\n/** For worktree repos: common watcher (shared config, refs, info, etc.) */\nexport const dotGitGlobCommon = `{${dotGitCommonFiles}}`;\n\nconst dotGitCommonPathRegex = new RegExp(\n\t`^(?:${dotGitCommonFiles\n\t\t.split(',')\n\t\t.map(p =>\n\t\t\tp\n\t\t\t\t.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&')\n\t\t\t\t.replace(/\\/\\*\\*$|\\*/g, glob => (glob === '*' ? '[^/]*' : '(?:/.*)?')),\n\t\t)\n\t\t.join('|')})$`,\n);\n\n/**\n * Whether a path relative to the common `.git` directory is one {@link dotGitGlobCommon} reads: a file every checkout of\n * the repository shares. A trailing `/**` takes in the directory itself, as a watcher's globstar may\n */\nexport function isGitDirCommonPath(relativePath: string): boolean {\n\treturn dotGitCommonPathRegex.test(relativePath);\n}\n\n/**\n * Directories to leave unwatched under the `.git` directory (relative to it), for a provider that prunes natively.\n * Only directories nothing in the globs above reads: never anything under `refs`, `worktrees/*` itself, `gk`, `info`,\n * or the rebase/sequencer directories.\n */\nexport const gitDirExcludes: readonly string[] = [\n\t'objects',\n\t'logs',\n\t'hooks',\n\t'lfs',\n\t'modules',\n\t'rr-cache',\n\t'fsmonitor--daemon',\n\t'worktrees/*/logs',\n];\n\n/**\n * What a poll stats in a worktree's own `.git` directory when its watcher can't be trusted — the files\n * {@link dotGitGlobRoot} reads.\n */\nexport const gitDirRootProbes: readonly GitDirProbe[] = [\n\t{ path: 'HEAD' },\n\t{ path: 'index' },\n\t{ path: 'ORIG_HEAD' },\n\t{ path: 'MERGE_HEAD' },\n\t{ path: 'CHERRY_PICK_HEAD' },\n\t{ path: 'REVERT_HEAD' },\n\t{ path: 'REBASE_HEAD' },\n\t{ path: 'rebase-merge' },\n\t{ path: 'rebase-apply' },\n\t{ path: 'sequencer' },\n\t// Moves with every commit, reset or checkout on the checked-out branch, without the poll knowing its name\n\t{ path: 'logs/HEAD', emitAs: ['HEAD'] },\n];\n\n/**\n * What a poll stats in the common `.git` directory — the files {@link dotGitGlobCommon} reads, with the `refs/**` it\n * can't list narrowed to its namespace directories (whose mtime moves as a top-level ref is created or deleted) and\n * to the named refs of {@link getGitDirRefProbes}.\n */\nexport const gitDirCommonProbes: readonly GitDirProbe[] = [\n\t{ path: 'packed-refs' },\n\t{ path: 'config' },\n\t{ path: 'gk/config' },\n\t{ path: 'info/exclude' },\n\t{ path: 'refs/heads' },\n\t// Moves as a remote's directory appears or goes: `git remote remove` and `git remote rename` delete or move each of\n\t// its loose refs (a packed one is locked through a loose path too), and git removes the emptied directory. Reported\n\t// as every remote-tracking ref possibly moved, since the poll can't tell which remote it was. A remote whose name\n\t// nests under a directory another remote still uses (`foo/bar` beside `foo/baz`) leaves it unmoved, so only a named\n\t// ref's probe sees that one go\n\t{ path: 'refs/remotes' },\n\t{ path: 'refs/tags' },\n\t{ path: 'refs/stash' },\n\t{ path: 'worktrees' },\n\t{ path: 'shallow' },\n\t// A fetch writes it with the remote-tracking refs it updated, which the poll can't list. Git rewrites it even on a\n\t// fetch that moves nothing, so each fetch is reported as a `remotes` change: the cost of seeing remote-tracking\n\t// refs no subscriber names\n\t{ path: 'FETCH_HEAD', emitAs: ['FETCH_HEAD', 'refs/remotes'] },\n];\n\n/** For each path a probe of {@link gitDirRootProbes} or {@link gitDirCommonProbes} is emitted as, the probes emitted as it */\nexport const gitDirProbesByEmittedPath: ReadonlyMap<string, readonly string[]> = getProbesByEmittedPath([\n\t...gitDirRootProbes,\n\t...gitDirCommonProbes,\n]);\n\nfunction getProbesByEmittedPath(probes: readonly GitDirProbe[]): Map<string, string[]> {\n\tconst map = new Map<string, string[]>();\n\tfor (const probe of probes) {\n\t\tfor (const path of probe.emitAs ?? []) {\n\t\t\tconst paths = map.get(path);\n\t\t\tif (paths == null) {\n\t\t\t\tmap.set(path, [probe.path]);\n\t\t\t} else {\n\t\t\t\tpaths.push(probe.path);\n\t\t\t}\n\t\t}\n\t}\n\treturn map;\n}\n\n/**\n * Probes for named branches and remote-tracking refs: each loose ref file, and each directory between it and its\n * namespace (`refs/heads/feature` for `refs/heads/feature/x`, `refs/remotes/origin`), whose mtime moves as a sibling\n * ref is created or deleted. A ref created in a directory no named ref sits in is left to `packed-refs`, `logs/HEAD`\n * and `FETCH_HEAD`.\n */\nexport function getGitDirRefProbes(refs: Iterable<string>): GitDirProbe[] {\n\tconst paths = new Set<string>();\n\tfor (const ref of refs) {\n\t\tconst namespaceEnd = ref.startsWith('refs/heads/') ? 10 : ref.startsWith('refs/remotes/') ? 12 : -1;\n\t\tif (namespaceEnd === -1) continue;\n\n\t\tfor (let path = ref; path.length > namespaceEnd; path = path.substring(0, path.lastIndexOf('/'))) {\n\t\t\tpaths.add(path);\n\t\t}\n\t}\n\treturn Array.from(paths, path => ({ path: path }));\n}\n\n/**\n * The top-level names under the `.git` directory that the globs above read or a poll stats, as one case-insensitive\n * pattern (a folder may sit on a case-insensitive file system)\n */\nconst watchedGitDirNames = new Set(\n\t[\n\t\t...`${dotGitFiles},${dotGitCommonFiles}`.split(','),\n\t\t...gitDirRootProbes.map(p => p.path),\n\t\t...gitDirCommonProbes.map(p => p.path),\n\t].map(p => p.split('/')[0]),\n);\nconst watchedGitDirNameRegex = new RegExp(\n\t`^(?:${Array.from(watchedGitDirNames, name => name.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '[^/]*')).join('|')})$`,\n\t'i',\n);\n\n/**\n * The registered folders whose worktrees core ignores, each as a `/`-separated literal path relative to a repository's\n * common git dir, without `.` or empty segments; any other is dropped. A folder must lie strictly inside the common git\n * dir (never absolute, never through `..`), name no glob syntax (a picomatch group or extglob's parentheses and `|`\n * included) or `:` (a watcher's exclude would read it as a pattern, so `(refs|x)` would leave `refs` unwatched, or a\n * drive), and not lie under `worktrees`, whose admin entries are what tells an ignored worktree apart.\n */\nexport function sanitizeIgnoredWorktreeFolders(folders: readonly string[] | undefined): string[] {\n\tif (!folders?.length) return [];\n\n\tconst sanitized = new Set<string>();\n\tfor (const folder of folders) {\n\t\tif (isAbsolute(folder) || /^[\\\\/]/.test(folder)) continue;\n\n\t\tconst segments = folder.split(/[\\\\/]/).filter(s => s && s !== '.');\n\t\tif (\n\t\t\t!segments.length ||\n\t\t\tsegments[0].toLowerCase() === 'worktrees' ||\n\t\t\tsegments.some(s => s === '..' || /[*?[\\]{}()|!:]/.test(s))\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tsanitized.add(segments.join('/'));\n\t}\n\treturn [...sanitized];\n}\n\n/**\n * The registered folders a `.git` watcher over the common git dir may leave unwatched: those of\n * {@link sanitizeIgnoredWorktreeFolders} that share no top-level directory with anything the `.git` globs read, which an\n * exclude would hide. Such a folder's worktrees are still ignored, only watched.\n */\nexport function getIgnoredWorktreeFolderExcludes(folders: readonly string[] | undefined): string[] {\n\treturn sanitizeIgnoredWorktreeFolders(folders).filter(f => !watchedGitDirNameRegex.test(f.split('/')[0]));\n}\n\n/**\n * Directories to leave unwatched in the working tree (relative to it), for a provider that prunes natively —\n * the same ones {@link shouldIgnoreWorkingTreePath} drops from events.\n */\nexport const workingTreeExcludes: readonly string[] = ['**/node_modules', '**/.git'];\n\n/** Glob for watching .gitignore files in the working tree */\nexport const gitIgnoreGlob = '.gitignore';\n\n/** Glob for detecting .git directory creation (repository init/clone) */\nexport const gitInitGlob = '**/.git';\n\n// Regex-based filters that complement the globs above. The globs tell\n// the watcher *what* to observe; these filters tell it what to *skip*\n// at runtime (transient lock files, daemon artifacts, etc.).\n\nconst ignoredRepoPathRegex = /(?:\\/|\\\\)fsmonitor--daemon(?:\\/|\\\\)|(?:^|\\/)index\\.lock$/;\n\n/**\n * Returns true if the `.git`-relative path should be ignored\n * (transient filesystem artifacts, not meaningful git state changes).\n */\nexport function shouldIgnoreRepoPath(relativePath: string): boolean {\n\treturn ignoredRepoPathRegex.test(relativePath);\n}\n\n// Anchored to a whole path segment (the lookbehind accepts the start or a separator, which also lets a scan begin\n// mid-string at the first segment after a root), so `repo.git/` or `my_node_modules/` don't match. Global so\n// `lastIndex` can start the scan past the root.\nconst ignoredWorkingTreePathRegex = /(?<![^\\\\/])(?:(?:node_modules|\\.git)(?:[\\\\/]|$)|\\.watchman-cookie-)/g;\n\nfunction isIgnoredWorkingTreePathFrom(path: string, from: number): boolean {\n\tignoredWorkingTreePathRegex.lastIndex = from;\n\treturn ignoredWorkingTreePathRegex.test(path);\n}\n\n/**\n * Returns true if the working tree path, relative to the repository root, should be ignored\n * (node_modules, .git internals, watchman cookies). Only whole segments match.\n */\nexport function shouldIgnoreWorkingTreePath(relativePath: string): boolean {\n\treturn isIgnoredWorkingTreePathFrom(relativePath, 0);\n}\n\n/**\n * Creates the per-event noise check for a working-tree watcher. It judges only the part of an absolute event path\n * inside `repoPath`, so folders above the root (`app.git/feature`, a `node_modules` ancestor) never count. The root is\n * compiled once here, so an event costs one anchored match and a scan of its tail, with no path normalization. The\n * match is tolerant of either separator and, off Linux, of case, as `isDescendant` is.\n *\n * A path not under the root is judged whole.\n */\nexport function createWorkingTreeNoiseFilter(repoPath: string): (absoluteEventPath: string) => boolean {\n\tconst root = getBestPath(repoPath);\n\tconst source = root.split('/').map(escapeRegex).join('[\\\\\\\\/]');\n\t// Sticky: the match must start at `lastIndex` (0), so it is a prefix test with no scan\n\tconst rootRegex = new RegExp(\n\t\t`${root.startsWith('/') ? '' : '[\\\\\\\\/]?'}${source}(?:[\\\\\\\\/]|$)`,\n\t\tisLinux ? 'y' : 'iy',\n\t);\n\n\treturn (absoluteEventPath: string): boolean => {\n\t\trootRegex.lastIndex = 0;\n\t\treturn isIgnoredWorkingTreePathFrom(\n\t\t\tabsoluteEventPath,\n\t\t\trootRegex.test(absoluteEventPath) ? rootRegex.lastIndex : 0,\n\t\t);\n\t};\n}\n"],"mappings":";;;;A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AiB,IAAI,UAAU,YAAY,CAC3D;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"watcherPatterns.js","names":[],"sources":["../../../../git/src/watching/watcherPatterns.ts"],"sourcesContent":["import { getBestPath, isAbsolute } from '@gitlens/utils/path.js';\nimport { isLinux } from '@gitlens/utils/platform.js';\nimport { escapeRegex } from '@gitlens/utils/string.js';\nimport type { GitDirProbe } from './gitDirPoller.js';\n\n// Glob patterns for watching files inside the .git directory.\n// They represent pure Git knowledge — the library owns these patterns and\n// provides them to the pluggable FileWatcherFactory.\n\nconst dotGitFiles =\n\t'index,HEAD,*_HEAD,MERGE_*,rebase-apply,rebase-apply/**,rebase-merge,rebase-merge/**,sequencer,sequencer/**';\n\n// `worktrees` (the bare entry, no `/*` suffix) is its own pattern: `worktree remove` deletes the whole\n// `worktrees/<id>` subtree in one syscall, and some platforms/watcher backends coalesce a same-instant\n// subtree delete into a single event for the PARENT directory — `worktrees/*` alone never matches that.\n// `classifyGitDirChange` classifies a bare `worktrees` path, so this is watch-coverage only.\n//\n// Only what `git worktree list` reports per worktree is watched here (its HEAD, lock and location). A\n// linked worktree's own index, `*_HEAD`, `MERGE_*`, rebase and sequencer state is watched by that\n// worktree's root watcher (`dotGitGlobRoot`) instead, so it never wakes sibling worktrees.\nconst dotGitWorktreeFiles = 'worktrees,worktrees/*,worktrees/*/HEAD,worktrees/*/locked,worktrees/*/gitdir';\n\nconst dotGitCommonFiles = `config,gk/config,refs/**,packed-refs,shallow,info/exclude,FETCH_HEAD,${dotGitWorktreeFiles}`;\n\n/** For a checkout whose `.git` directory is the common one (a standard repo or a main checkout): every .git file */\nexport const dotGitGlobCombined = `{${dotGitFiles},${dotGitCommonFiles}}`;\n\n/** For worktree repos: root watcher (worktree-specific files only) */\nexport const dotGitGlobRoot = `{${dotGitFiles}}`;\n\n/** For worktree repos: common watcher (shared config, refs, info, etc.) */\nexport const dotGitGlobCommon = `{${dotGitCommonFiles}}`;\n\nconst dotGitCommonPathRegex = new RegExp(\n\t`^(?:${dotGitCommonFiles\n\t\t.split(',')\n\t\t.map(p =>\n\t\t\tp\n\t\t\t\t.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&')\n\t\t\t\t.replace(/\\/\\*\\*$|\\*/g, glob => (glob === '*' ? '[^/]*' : '(?:/.*)?')),\n\t\t)\n\t\t.join('|')})$`,\n);\n\n/**\n * Whether a path relative to the common `.git` directory is one {@link dotGitGlobCommon} reads: a file every checkout of\n * the repository shares. A trailing `/**` takes in the directory itself, as a watcher's globstar may\n */\nexport function isGitDirCommonPath(relativePath: string): boolean {\n\treturn dotGitCommonPathRegex.test(relativePath);\n}\n\n/**\n * Paths to leave unwatched under the `.git` directory (relative to it), for a provider that prunes natively.\n * Only paths nothing in the globs above reads: never anything under `refs`, `worktrees/*` itself, `gk`, `info`,\n * or the rebase/sequencer directories.\n */\nexport const gitDirExcludes: readonly string[] = [\n\t'objects',\n\t'logs',\n\t'hooks',\n\t'lfs',\n\t'modules',\n\t'rr-cache',\n\t'fsmonitor--daemon*',\n\t'worktrees/*/logs',\n];\n\n/**\n * What a poll stats in a worktree's own `.git` directory when its watcher can't be trusted — the files\n * {@link dotGitGlobRoot} reads.\n */\nexport const gitDirRootProbes: readonly GitDirProbe[] = [\n\t{ path: 'HEAD' },\n\t{ path: 'index' },\n\t{ path: 'ORIG_HEAD' },\n\t{ path: 'MERGE_HEAD' },\n\t{ path: 'CHERRY_PICK_HEAD' },\n\t{ path: 'REVERT_HEAD' },\n\t{ path: 'REBASE_HEAD' },\n\t{ path: 'rebase-merge' },\n\t{ path: 'rebase-apply' },\n\t{ path: 'sequencer' },\n\t// Moves with every commit, reset or checkout on the checked-out branch, without the poll knowing its name\n\t{ path: 'logs/HEAD', emitAs: ['HEAD'] },\n];\n\n/**\n * What a poll stats in the common `.git` directory — the files {@link dotGitGlobCommon} reads, with the `refs/**` it\n * can't list narrowed to its namespace directories (whose mtime moves as a top-level ref is created or deleted) and\n * to the named refs of {@link getGitDirRefProbes}.\n */\nexport const gitDirCommonProbes: readonly GitDirProbe[] = [\n\t{ path: 'packed-refs' },\n\t{ path: 'config' },\n\t{ path: 'gk/config' },\n\t{ path: 'info/exclude' },\n\t{ path: 'refs/heads' },\n\t// Moves as a remote's directory appears or goes: `git remote remove` and `git remote rename` delete or move each of\n\t// its loose refs (a packed one is locked through a loose path too), and git removes the emptied directory. Reported\n\t// as every remote-tracking ref possibly moved, since the poll can't tell which remote it was. A remote whose name\n\t// nests under a directory another remote still uses (`foo/bar` beside `foo/baz`) leaves it unmoved, so only a named\n\t// ref's probe sees that one go\n\t{ path: 'refs/remotes' },\n\t{ path: 'refs/tags' },\n\t{ path: 'refs/stash' },\n\t{ path: 'worktrees' },\n\t{ path: 'shallow' },\n\t// A fetch writes it with the remote-tracking refs it updated, which the poll can't list. Git rewrites it even on a\n\t// fetch that moves nothing, so each fetch is reported as a `remotes` change: the cost of seeing remote-tracking\n\t// refs no subscriber names\n\t{ path: 'FETCH_HEAD', emitAs: ['FETCH_HEAD', 'refs/remotes'] },\n];\n\n/** For each path a probe of {@link gitDirRootProbes} or {@link gitDirCommonProbes} is emitted as, the probes emitted as it */\nexport const gitDirProbesByEmittedPath: ReadonlyMap<string, readonly string[]> = getProbesByEmittedPath([\n\t...gitDirRootProbes,\n\t...gitDirCommonProbes,\n]);\n\nfunction getProbesByEmittedPath(probes: readonly GitDirProbe[]): Map<string, string[]> {\n\tconst map = new Map<string, string[]>();\n\tfor (const probe of probes) {\n\t\tfor (const path of probe.emitAs ?? []) {\n\t\t\tconst paths = map.get(path);\n\t\t\tif (paths == null) {\n\t\t\t\tmap.set(path, [probe.path]);\n\t\t\t} else {\n\t\t\t\tpaths.push(probe.path);\n\t\t\t}\n\t\t}\n\t}\n\treturn map;\n}\n\n/**\n * Probes for named branches and remote-tracking refs: each loose ref file, and each directory between it and its\n * namespace (`refs/heads/feature` for `refs/heads/feature/x`, `refs/remotes/origin`), whose mtime moves as a sibling\n * ref is created or deleted. A ref created in a directory no named ref sits in is left to `packed-refs`, `logs/HEAD`\n * and `FETCH_HEAD`.\n */\nexport function getGitDirRefProbes(refs: Iterable<string>): GitDirProbe[] {\n\tconst paths = new Set<string>();\n\tfor (const ref of refs) {\n\t\tconst namespaceEnd = ref.startsWith('refs/heads/') ? 10 : ref.startsWith('refs/remotes/') ? 12 : -1;\n\t\tif (namespaceEnd === -1) continue;\n\n\t\tfor (let path = ref; path.length > namespaceEnd; path = path.substring(0, path.lastIndexOf('/'))) {\n\t\t\tpaths.add(path);\n\t\t}\n\t}\n\treturn Array.from(paths, path => ({ path: path }));\n}\n\n/**\n * The top-level names under the `.git` directory that the globs above read or a poll stats, as one case-insensitive\n * pattern (a folder may sit on a case-insensitive file system)\n */\nconst watchedGitDirNames = new Set(\n\t[\n\t\t...`${dotGitFiles},${dotGitCommonFiles}`.split(','),\n\t\t...gitDirRootProbes.map(p => p.path),\n\t\t...gitDirCommonProbes.map(p => p.path),\n\t].map(p => p.split('/')[0]),\n);\nconst watchedGitDirNameRegex = new RegExp(\n\t`^(?:${Array.from(watchedGitDirNames, name => name.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '[^/]*')).join('|')})$`,\n\t'i',\n);\n\n/**\n * The registered folders whose worktrees core ignores, each as a `/`-separated literal path relative to a repository's\n * common git dir, without `.` or empty segments; any other is dropped. A folder must lie strictly inside the common git\n * dir (never absolute, never through `..`), name no glob syntax (a picomatch group or extglob's parentheses and `|`\n * included) or `:` (a watcher's exclude would read it as a pattern, so `(refs|x)` would leave `refs` unwatched, or a\n * drive), and not lie under `worktrees`, whose admin entries are what tells an ignored worktree apart.\n */\nexport function sanitizeIgnoredWorktreeFolders(folders: readonly string[] | undefined): string[] {\n\tif (!folders?.length) return [];\n\n\tconst sanitized = new Set<string>();\n\tfor (const folder of folders) {\n\t\tif (isAbsolute(folder) || /^[\\\\/]/.test(folder)) continue;\n\n\t\tconst segments = folder.split(/[\\\\/]/).filter(s => s && s !== '.');\n\t\tif (\n\t\t\t!segments.length ||\n\t\t\tsegments[0].toLowerCase() === 'worktrees' ||\n\t\t\tsegments.some(s => s === '..' || /[*?[\\]{}()|!:]/.test(s))\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tsanitized.add(segments.join('/'));\n\t}\n\treturn [...sanitized];\n}\n\n/**\n * The registered folders a `.git` watcher over the common git dir may leave unwatched: those of\n * {@link sanitizeIgnoredWorktreeFolders} that share no top-level directory with anything the `.git` globs read, which an\n * exclude would hide. Such a folder's worktrees are still ignored, only watched.\n */\nexport function getIgnoredWorktreeFolderExcludes(folders: readonly string[] | undefined): string[] {\n\treturn sanitizeIgnoredWorktreeFolders(folders).filter(f => !watchedGitDirNameRegex.test(f.split('/')[0]));\n}\n\n/**\n * Paths to leave unwatched in the working tree (relative to it), for a provider that prunes natively —\n * the same ones {@link shouldIgnoreWorkingTreePath} drops from events.\n */\nexport const workingTreeExcludes: readonly string[] = ['**/node_modules', '**/.git', '**/.watchman-cookie-*'];\n\n/** Glob for watching .gitignore files in the working tree */\nexport const gitIgnoreGlob = '.gitignore';\n\n/** Glob for detecting .git directory creation (repository init/clone) */\nexport const gitInitGlob = '**/.git';\n\n// Regex-based filters that complement the globs above. The globs tell\n// the watcher *what* to observe; these filters tell it what to *skip*\n// at runtime (transient lock files, daemon artifacts, etc.).\n\nconst ignoredRepoPathRegex = /(?:\\/|\\\\)fsmonitor--daemon(?:\\/|\\\\)|(?:^|\\/)index\\.lock$/;\n\n/**\n * Returns true if the `.git`-relative path should be ignored\n * (transient filesystem artifacts, not meaningful git state changes).\n */\nexport function shouldIgnoreRepoPath(relativePath: string): boolean {\n\treturn ignoredRepoPathRegex.test(relativePath);\n}\n\n// Anchored to a whole path segment (the lookbehind accepts the start or a separator, which also lets a scan begin\n// mid-string at the first segment after a root), so `repo.git/` or `my_node_modules/` don't match. Global so\n// `lastIndex` can start the scan past the root.\nconst ignoredWorkingTreePathRegex = /(?<![^\\\\/])(?:(?:node_modules|\\.git)(?:[\\\\/]|$)|\\.watchman-cookie-)/g;\n\nfunction isIgnoredWorkingTreePathFrom(path: string, from: number): boolean {\n\tignoredWorkingTreePathRegex.lastIndex = from;\n\treturn ignoredWorkingTreePathRegex.test(path);\n}\n\n/**\n * Returns true if the working tree path, relative to the repository root, should be ignored\n * (node_modules, .git internals, watchman cookies). Only whole segments match.\n */\nexport function shouldIgnoreWorkingTreePath(relativePath: string): boolean {\n\treturn isIgnoredWorkingTreePathFrom(relativePath, 0);\n}\n\n/**\n * Creates the per-event noise check for a working-tree watcher. It judges only the part of an absolute event path\n * inside `repoPath`, so folders above the root (`app.git/feature`, a `node_modules` ancestor) never count. The root is\n * compiled once here, so an event costs one anchored match and a scan of its tail, with no path normalization. The\n * match is tolerant of either separator and, off Linux, of case, as `isDescendant` is.\n *\n * A path not under the root is judged whole.\n */\nexport function createWorkingTreeNoiseFilter(repoPath: string): (absoluteEventPath: string) => boolean {\n\tconst root = getBestPath(repoPath);\n\tconst source = root.split('/').map(escapeRegex).join('[\\\\\\\\/]');\n\t// Sticky: the match must start at `lastIndex` (0), so it is a prefix test with no scan\n\tconst rootRegex = new RegExp(\n\t\t`${root.startsWith('/') ? '' : '[\\\\\\\\/]?'}${source}(?:[\\\\\\\\/]|$)`,\n\t\tisLinux ? 'y' : 'iy',\n\t);\n\n\treturn (absoluteEventPath: string): boolean => {\n\t\trootRegex.lastIndex = 0;\n\t\treturn isIgnoredWorkingTreePathFrom(\n\t\t\tabsoluteEventPath,\n\t\t\trootRegex.test(absoluteEventPath) ? rootRegex.lastIndex : 0,\n\t\t);\n\t};\n}\n"],"mappings":";;;;AASA,MAAM,cACL;AAYD,MAAM,oBAAoB;;AAG1B,MAAa,qBAAqB,IAAI,YAAY,GAAG,kBAAkB;;AAGvE,MAAa,iBAAiB,IAAI,YAAY;;AAG9C,MAAa,mBAAmB,IAAI,kBAAkB;AAEtD,MAAM,wBAAwB,IAAI,OACjC,OAAO,kBACL,MAAM,GAAG,CAAC,CACV,KAAI,MACJ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AAM,QAAQ,iBAAiB,KAAK,CAAC,CAAC,GAEzD;EAGD,UAAU,IAAI,SAAS,KAAK,GAAG,CAAC;CACjC;CACA,OAAO,CAAC,GAAG,SAAS;AACrB;;;;;;AAOA,SAAgB,iCAAiC,SAAkD;CAClG,OAAO,+BAA+B,OAAO,CAAC,CAAC,QAAO,MAAK,CAAC,uBAAuB,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC;AACzG;;;;;AAMA,MAAa,sBAAyC;CAAC;CAAmB;CAAW;AAAuB;;AAG5G,MAAa,gBAAgB;;AAG7B,MAAa,cAAc;AAM3B,MAAM,uBAAuB;;;;;AAM7B,SAAgB,qBAAqB,cAA+B;CACnE,OAAO,qBAAqB,KAAK,YAAY;AAC9C;AAKA,MAAM,8BAA8B;AAEpC,SAAS,6BAA6B,MAAc,MAAuB;CAC1E,4BAA4B,YAAY;CACxC,OAAO,4BAA4B,KAAK,IAAI;AAC7C;;;;;AAMA,SAAgB,4BAA4B,cAA+B;CAC1E,OAAO,6BAA6B,cAAc,CAAC;AACpD;;;;;;;;;AAUA,SAAgB,6BAA6B,UAA0D;CACtG,MAAM,OAAO,YAAY,QAAQ;CACjC,MAAM,SAAS,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,KAAK,SAAS;CAE9D,MAAM,YAAY,IAAI,OACrB,GAAG,KAAK,WAAW,GAAG,IAAI,KAAK,aAAa,OAAO,gBACnD,UAAU,MAAM,IACjB;CAEA,QAAQ,sBAAuC;EAC9C,UAAU,YAAY;EACtB,OAAO,6BACN,mBACA,UAAU,KAAK,iBAAiB,IAAI,UAAU,YAAY,CAC3D;CACD;AACD"}
|
|
@@ -10,7 +10,6 @@ import { RepositoryMetadata } from "../../../git/models/repositoryMetadata.js";
|
|
|
10
10
|
import { PullRequestUrlIdentity } from "../../../git/utils/pullRequest.utils.js";
|
|
11
11
|
import { GitCloudHostIntegrationId, IntegrationIds, IssuesCloudHostIntegrationId, IssuesHostIntegrationIds } from "../constants.js";
|
|
12
12
|
import { Sources } from "../telemetry.js";
|
|
13
|
-
import "../providerFilters.js";
|
|
14
13
|
import { ProviderRepositoryShape } from "../results.js";
|
|
15
14
|
import { ProviderRepositoriesInput } from "../manager.js";
|
|
16
15
|
//#region ../plus/integrations/src/models/publicIntegration.d.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IssueSorting } from "../../../git/models/issue.js";
|
|
2
|
-
import "../providerFilters.js";
|
|
3
2
|
//#region ../plus/integrations/src/providers/issueSorts.d.ts
|
|
4
3
|
/** GitHub and GHE: one `search` channel serves all three issue reads, so all three order the same way. */
|
|
5
4
|
export declare const githubIssueSorts: IssueSorting[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ResourceDescriptor } from "../../../git/models/resourceDescriptor.js";
|
|
2
2
|
import { PullRequest, PullRequestFilter, PullRequestStateFilter } from "../../../git/models/pullRequest.js";
|
|
3
3
|
import { IntegrationIds } from "../constants.js";
|
|
4
|
-
import "../providerFilters.js";
|
|
5
4
|
import { ProviderWarning } from "../results.js";
|
|
6
5
|
import { ProviderSweepTarget, PullRequestSweepOptions } from "../manager.js";
|
|
7
6
|
import { IntegrationResult } from "../models/publicIntegration.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/core-gitlens",
|
|
3
3
|
"description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
|
|
4
|
-
"version": "0.61.
|
|
4
|
+
"version": "0.61.1",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "GitKraken",
|