2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-04 01:50:48 +00:00
restic/cmd/restic
Alexander Neumann 5cdcc99eba Use array instead of hash for backend.ID
Since backend.ID is always a slice of constant length, use an array
instead of a slice. Mostly, arrays behave as slices, except that an
array cannot be nil, so use `*backend.ID` insteaf of `backend.ID` in
places where the absence of an ID is possible (e.g. for the Subtree of a
Node, which may not present when the node is a file node).

This change allows to directly use backend.ID as the the key for a map,
so that arbitrary data structures (e.g. a Set implemented as a
map[backend.ID]struct{}) can easily be formed.
2015-07-25 18:01:57 +02:00
..
fuse Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
testdata restore: ignore errors 2015-07-25 12:59:59 +02:00
.gitignore Rename khepri -> restic 2014-12-05 21:45:49 +01:00
cleanup.go Run cleanup handlers in main function 2015-07-19 17:57:18 +02:00
cmd_backup.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
cmd_cache.go cmd/restic: Add lock handling, interrupt cleanup 2015-06-28 13:52:22 +02:00
cmd_cat.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
cmd_check.go checker: add option to remove orphaned packs 2015-07-12 17:14:10 +02:00
cmd_dump.go cmd/restic: Add lock handling, interrupt cleanup 2015-06-28 13:52:22 +02:00
cmd_find.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
cmd_init.go Ask for password after create repo succeeded 2015-06-26 13:58:43 -04:00
cmd_key.go cmd/restic: Do not require exclusive lock for listing keys 2015-06-28 13:52:22 +02:00
cmd_list.go cmd/restic: Add lock handling, interrupt cleanup 2015-06-28 13:52:22 +02:00
cmd_ls.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
cmd_mount.go Unmount and remove directory for mount in tests 2015-07-19 23:04:18 +02:00
cmd_restore.go restore: ignore errors 2015-07-25 12:59:59 +02:00
cmd_snapshots.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
cmd_unlock.go cmd/restic: Add command unlock, improve error message 2015-06-28 13:52:23 +02:00
cmd_version.go Add build.go 2015-06-24 20:29:58 +02:00
doc.go Add doc stubs to all the packages 2015-05-09 13:00:01 +02:00
global.go Add build.go 2015-06-24 20:29:58 +02:00
integration_fuse_test.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
integration_helpers_test.go restore: ignore errors 2015-07-25 12:59:59 +02:00
integration_test.go Use array instead of hash for backend.ID 2015-07-25 18:01:57 +02:00
lock.go Allow more than one cleanup handler 2015-07-19 17:50:55 +02:00
main.go Run cleanup handlers in main function 2015-07-19 17:57:18 +02:00