Please describe the problem.
When pushing to a special remote, non-largefiles (Git text files) are not filtered by the wanted setting.
What steps will reproduce the problem?
Push to a directory special remote with exporttree and importtree set yes. The wanted setting filters largefiles, but all Git text files are included even though some are not included in the filter.
What version of git-annex are you using? On what operating system?
10.20231130-g0e9bc415882a5e3a285e004cf9f80936e5762a07 Linux
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
# End of transcript or log.
Thing is that non-annexed files cannot really be matched by preferred content settings generally.
I guess you are using something like
exclude=*.c
?Yes, copying .h but not .c would be an example. It makes a mess of the special remote's directory structure.
Export has the same problem, so there is no way to copy files to the special remote without making a mess.
Import does it correctly going the other way by not grabbing files wanted by the repository but not wanted the special remote. I believe symmetry is desirable in this case.
Please provide a way to copy to a special remote with import-like filtering.