2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 19:08:55 +00:00
restic/internal/fuse
greatroar a7786c67f1 cmd, restic: Refactor and fix snapshot filtering
This turns snapshotFilterOptions from cmd into a restic.SnapshotFilter
type and makes restic.FindFilteredSnapshot and FindFilteredSnapshots
methods on that type. This fixes #4211 by ensuring that hosts and paths
are named struct fields instead of unnamed function arguments in long
lists of such.

Timestamp limits are also included in the new type. To avoid too much
pointer handling, the convention is that time zero means no limit.
That's January 1st, year 1, 00:00 UTC, which is so unlikely a date that
we can sacrifice it for simpler code.
2023-02-19 15:04:25 +01:00
..
dir.go Merge pull request #4020 from greatroar/fuse-inode 2022-12-02 22:28:15 +01:00
file.go mount: switch to anacrolix fork of bazil/fuse 2022-11-12 19:22:31 +01:00
fuse_test.go repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
inode.go fuse: Better inode generation 2022-11-16 08:35:01 +01:00
link.go mount: switch to anacrolix fork of bazil/fuse 2022-11-12 19:22:31 +01:00
other.go mount: switch to anacrolix fork of bazil/fuse 2022-11-12 19:22:31 +01:00
root.go cmd, restic: Refactor and fix snapshot filtering 2023-02-19 15:04:25 +01:00
snapshots_dir.go Merge pull request #4020 from greatroar/fuse-inode 2022-12-02 22:28:15 +01:00
snapshots_dirstruct_test.go mount: Map slashes in tags to underscores 2022-08-19 18:17:57 +02:00
snapshots_dirstruct.go cmd, restic: Refactor and fix snapshot filtering 2023-02-19 15:04:25 +01:00