Pin the game folder by device and inode on Linux and macOS too #167
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 assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ethan-hann/SavePoint#167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The folder re-check before destructive git steps compares the link-resolved real path plus the consent marker on every OS, and also the file identity on Windows (HostPathProbe.ReadIdentity returns null elsewhere). Off Windows a folder replaced by a different directory at the same real path (rename away, new folder in its place) is caught only by the consent marker. Read st_dev/st_ino through a stat P/Invoke (the struct layout differs per platform; Mono.Unix or a small native shim may be simpler) and include it in FolderPin. There is no Windows-style folder hold off Windows.
Fixed in 0.9.19 (PR 252): https://git.tortal.tech/ethan-hann/SavePoint/releases/tag/v0.9.19