Bot
added
the
enhancement
label
Apr 25, 2026
calmh
changed the title
feat: load remote ignore patterns
feat: load remote ignore patterns (fixes #9352)
calmh
mentioned this pull request
Open
This adds support for loading ignore files remotely on initial folder setup. That is, it's fine to create a folder with an .stignore that says `#include some-other-file`, as long as some-other-file is available from a peer device. This is accomplished by adding a new filesystem shim `RemoteFilesystem` which serves Stat()/Lstat() by returning the global index entry from the database, and serves Open() calls by reading the file from a remote peer and buffering it in-memory. Obviously this is inefficient for general usage, but it's perfectly fine for ignore files. The ignore loader then gets a layered view of the local filesystem + a remote filesystem that serves files that don't exist locally, via the new `LayeredFilesystem` abstraction. Signed-off-by: Jakob Borg <jakob@kastelo.net>
Draft