Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
54d6d12
fix: validate .meta entries, lock stores with OS file locks, escape u…
gold-silver-copper Oct 25, 2026
28e2808
fix(config): reject overlapping project paths and drive prefixes; che…
gold-silver-copper Oct 25, 2026
9873592
fix(config): compare project locations through symlinks; check data d…
gold-silver-copper Oct 25, 2026
e6d2713
fix: check the data dir's whole path, including symlinks it follows
gold-silver-copper Oct 25, 2026
d9b93dd
fix: refuse another user's symlink in the data dir path; allow alias …
gold-silver-copper Oct 25, 2026
aecf80c
fix: check a directory before leaving it through '..'; keep a Unix-on…
gold-silver-copper Oct 25, 2026
825c7ef
fix: check data dir ownership and access on Windows; one private-dir …
gold-silver-copper Oct 25, 2026
f001473
fix: accept your private group and root-owned dirs; refuse links on W…
gold-silver-copper Oct 25, 2026
173959e
fix: escape U+061C, zero-width and tag characters like bidi controls
gold-silver-copper Oct 25, 2026
e4a6217
fix: refuse group-writable dirs even for a private group; escape U+20…
gold-silver-copper Oct 25, 2026
8ba4103
fix: refuse names Windows reads differently; private lock file; resol…
gold-silver-copper Oct 25, 2026
d2534c8
fix: ASCII-only names and paths, no .git; private store files; macOS …
gold-silver-copper Oct 25, 2026
efe2410
fix: check store and lock files themselves; trusted plugin files; res…
gold-silver-copper Oct 25, 2026
e86835c
fix: allow nested-alias names; follow every link to a trusted file; l…
gold-silver-copper Oct 25, 2026
798417b
fix: accept an absolute worktrees_dir inside the workspace with sever…
gold-silver-copper Oct 25, 2026
0f213d0
fix: escape config values in path-rule errors
gold-silver-copper Oct 25, 2026
be9a715
fix: reserve the configured worktrees_dir; read Windows object entrie…
gold-silver-copper Oct 25, 2026
3d2c152
fix: reserve where the worktree root resolves; names may not nest; st…
gold-silver-copper Oct 25, 2026
3e64df8
fix: refuse a link on the way to a trusted file on Windows
gold-silver-copper Oct 25, 2026
fc5941a
fix: refuse a worktrees_dir inside a project's checkout
gold-silver-copper Oct 25, 2026
d4f1ea5
fix: always reserve .worktrees, also with a custom worktrees_dir
gold-silver-copper Oct 25, 2026
84f97a3
fix: a worktree directory may not resolve into .git
gold-silver-copper Oct 25, 2026
a56f690
fix(store): say how to recover from a lock or store file another user…
gold-silver-copper Oct 25, 2026
2e7972f
fix(data-dir): a filesystem without ACLs (ENOTSUP) is not an ACL that…
gold-silver-copper Oct 25, 2026
c47c631
fix: walk_projects walks a chosen config's tree and fails on a refuse…
gold-silver-copper Oct 25, 2026
8a2f942
fix: a path part that cannot be examined is refused; escape more invi…
gold-silver-copper Oct 26, 2026
07d22ce
fix: the meta tree walk fails on a nested config it cannot examine
gold-silver-copper Oct 26, 2026
f5e4c35
fix: one config lookup that fails on a config it cannot examine
gold-silver-copper Oct 26, 2026
40f6ee2
fix: a walk stopped by its depth limit does not fail on a config it w…
gold-silver-copper Oct 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
# File::try_lock
rust-version = "1.89"
description = "Shared infrastructure for ~/.meta/ directory management, lockfile, and atomic JSON store"

[dependencies]
Expand All @@ -17,5 +19,13 @@ chrono = { version = "0.4", features = ["serde"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_System_Threading",
] }

[dev-dependencies]
tempfile = "3.3"
1,061 changes: 977 additions & 84 deletions src/config.rs

Large diffs are not rendered by default.

Loading
Loading