From: mario Date: Sat, 29 Jul 2023 12:57:03 +0000 (+0000) Subject: Added a comment: Dropping all older versions of a file X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~36^2~35 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2503ff17db5f98b98bc7c18a2b22e46431fb491e;p=git-annex.git Added a comment: Dropping all older versions of a file --- diff --git a/doc/forum/Best_way_to_remove_old_version_of_specific_file/comment_4_160011717157fa8fca3a33b543c4d28d._comment b/doc/forum/Best_way_to_remove_old_version_of_specific_file/comment_4_160011717157fa8fca3a33b543c4d28d._comment new file mode 100644 index 0000000000..f476e99466 --- /dev/null +++ b/doc/forum/Best_way_to_remove_old_version_of_specific_file/comment_4_160011717157fa8fca3a33b543c4d28d._comment @@ -0,0 +1,14 @@ +[[!comment format=mdwn + username="mario" + avatar="http://cdn.libravatar.org/avatar/4c63b0935789d29210d0bd8cad8d7ac7" + subject="Dropping all older versions of a file" + date="2023-07-29T12:57:02Z" + content=""" +Is there also a straight forward way to drop all versions of a specific file? + +In option 1, I always have to drop the file right away. In my use case it makes more sense to drop (all) older versions of a specific file from time to time. + +Typically I want to keep old versions (of other files), therefore I can't use drop unused. But for some specific files, I want to get rid of the history at some point in time (e.g., after the project they belong to is finished). + +Alternatively, is there a way to get all prior keys a specific file once pointed to? Then I could drop all these keys. +"""]]