diff --git a/src/restic/archiver.go b/src/restic/archiver.go index 967665f36..96d1e7977 100644 --- a/src/restic/archiver.go +++ b/src/restic/archiver.go @@ -622,6 +622,8 @@ func unique(items []string) []string { return items } +// BaseNameSlice allows sorting paths by basename. +// // Snapshots have contents sorted by basename, but we receive full paths. // For the archivePipe to advance them in pairs, we traverse the given // paths in the same order as the snapshot.