File: day_588__export_preferred_content.mdwn

package info (click to toggle)
git-annex 8.20210223-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,764 kB
  • sloc: haskell: 70,359; javascript: 9,103; sh: 1,304; makefile: 212; perl: 136; ansic: 44
file content (8 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
Made `git annex export --to remote` honor the preferred content of the
remote. In a nice bit of code reuse, `adjustTree` was just what I needed to
filter unwanted content out of the exported tree.

Then a hard problem: When a tree is exported with some non-preferred
content filtered out, importing from the remote generates a tree that is
lacking those files, but merging that tree would delete the files
from the working tree. Solving that took the rest of the day.