feat(install-hooks): Add cross-platform symlink and exec helpers #6

Merged
noah.knegt merged 1 commit from windows-support into development 2026-01-27 19:19:30 +01:00
Owner

Introduce create_symlink and make_executable to handle Unix and
Windows differences for symlinks and permissions. Use these helpers
when installing hooks so symlink creation and setting executable
bits are platform-aware (Windows uses symlink_file and permissions
are a no-op). Add is_executable for Unix and simplify hook listing
to always show type with an executable flag on Unix.

Introduce create_symlink and make_executable to handle Unix and Windows differences for symlinks and permissions. Use these helpers when installing hooks so symlink creation and setting executable bits are platform-aware (Windows uses symlink_file and permissions are a no-op). Add is_executable for Unix and simplify hook listing to always show type with an executable flag on Unix.
Add cross-platform symlink and exec helpers
All checks were successful
Code style / cargo-fmt (pull_request) Successful in 2m19s
Code style / clippy (pull_request) Successful in 2m16s
Code style / cargo-check (pull_request) Successful in 2m18s
40ef13a16f
Introduce create_symlink and make_executable to handle Unix and
Windows differences for symlinks and permissions. Use these helpers
when installing hooks so symlink creation and setting executable
bits are platform-aware (Windows uses symlink_file and permissions
are a no-op). Add is_executable for Unix and simplify hook listing
to always show type with an executable flag on Unix.
noah.knegt merged commit 8c001fe223 into development 2026-01-27 19:19:30 +01:00
noah.knegt deleted branch windows-support 2026-01-27 19:19:30 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
noah.knegt/repo-utils!6
No description provided.