Please describe the problem.
What steps will reproduce the problem?
git-annex initremote 2gt type=directory directory=/Volumes/2gt/photos encryption=none importtree=yes exporttree=yes
git annex export HEAD -t 2gt
.gitignore and .gitattributes (plain git, not annexed) make it to the export.
Tried to limit this with (inbackend=SHA256E or inbackend=SHA512E) , did not help.
What version of git-annex are you using? On what operating system?
10.20250721 , homebrew on Mac
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.
If I recall correctly, export initially only exported annexed files, but that was very surprising behavior to some people who use a mixture of files.
And this is documented behavior:
The docs also say that the preferred content expression allows exluding annexed files, not that it does anything for non-annexed files.
So I don't see how this is a bug. At most, it might be a feature request to have a way to exclude non-annexed files from the export.
(I was curious if a preferred content of "not inbackend=GIT" happened to work, since internally these files are treated as a "GIT" backend type. It happens not to work as currently implemented. It could be made to work pretty easily, but "GIT" is currently an undocumented implementation detail and I don't know if I want to expose it as part of the interface.)
Also, consider that import works symmetrically to export, and so if such a feature were implemented, it would make import skip files that annex.largefiles does not match.