A tracked file replaced by a folder can pull left-out files into the snapshot #121
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#121
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?
When a recorded file
abecomes a foldera/holdinga/banda/junk.tmp, and the leave-out rules name*.tmp, a capture passes the literal pathspeca(for the removal) togit add -f. That pathspec matches the whole folder, so-faddsa/junk.tmpalthough the rules name it (reproduced with the bundled git 2.56). It happens in the single unwatched add and wheneveraanda/bland in the same group; ifa/bis 128 MiB or more, theapathspec also streams it in an earlier group and writes a second pack. Record such removals withupdate-index --remove(orgit rm --cached) instead of passing them toadd, and test that the left-out file stays out.