git-annex/doc/todo/export_paired_rename_innefficenctcy.mdwn
Joey Hess cffa2446e8
tagged the past 2 years of open todos and followed up to a few of them
also moved some that were really bug reports to bugs/ and closed a
couple
2020-01-30 15:22:05 -04:00

12 lines
659 B
Markdown

`git annex export` can efficiently handle renames, including renames that swap
content between files. However, when there are two pairs of duplicate files,
and the filenames are swapped around, the current rename handling renames both
dups to a single temp file, and so the other file in the pair gets re-uploaded
unncessarily. This could be improved.
Perhaps: Find pairs of renames that swap content between two files.
Run each pair in turn. Then run the current rename code. Although this
still probably misses cases, where eg, content cycles amoung 3 files, and
the same content amoung 3 other files. Is there a general algorythm?
[[!tag needsthought]]