| 1 | // Paths inside a checkout, without VS Code: shared by the watcher and tests. |
| 2 | |
| 3 | /** |
| 4 | * Whether a path relative to a repository root lies inside a `.oxy` store at |
| 5 | * any depth: this repository's own, or a subrepo's, which oxy writes to |
| 6 | * while it reports status (so a watcher that refreshed on those writes |
| 7 | * would refresh forever). |
| 8 | */ |
| 9 | export function isInStore(rel: string): boolean { |
| 10 | return rel.split(/[\\/]/).includes(".oxy"); |
| 11 | } |