feat(install-hooks): Add cross-platform symlink and exec helpers #6
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noah.knegt/repo-utils!6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "windows-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.