smudge: Warn when encountering a pointer file that has other content appended to it
authorJoey Hess <joeyh@joeyh.name>
Wed, 23 Feb 2022 19:17:08 +0000 (15:17 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 23 Feb 2022 19:17:08 +0000 (15:17 -0400)
commit64ccb4734e0be51e803685350a9416cbf4480dc8
treef34b77a2c2e5c695b7cc88d356e9b76827e4d9e0
parent67245ae00f7d645b3cd4fdd652f15d9f4a59f9a6
smudge: Warn when encountering a pointer file that has other content appended to it

It will then proceed to add the file the same as if it were any other
file containing possibly annexable content. Usually the file is one that
was annexed before, so the new, probably corrupt content will also be added
to the annex. If the file was not annexed before, the content will be added
to git.

It's not possible for the smudge filter to throw an error here, because
git then just adds the file to git anyway.

Sponsored-by: Dartmouth College's Datalad project
Annex/Link.hs
CHANGELOG
Command/FilterProcess.hs
Command/Smudge.hs
doc/bugs/prevent_silent_data_loss_on_unlocked_files.mdwn
doc/bugs/prevent_silent_data_loss_on_unlocked_files/comment_5_adb69305a31cf55ff62497b6de8e2f6a._comment [new file with mode: 0644]