mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
cmd/restic/cmd_rewrite.go: introduction of include filters for this command: - add include filters, add error checking code - add new parameter 'keepEmptyDirectoryFunc' to 'walker.NewSnapshotSizeRewriter()', so empty directories have to be kept to keep the directory structure intact - add parameter 'keepEmptySnapshot' to 'filterAndReplaceSnapshot()' to keep snapshots intact when nothing is to be included - introduce helper function 'gatherIncludeFilters()' and 'gatherExcludeFilters()' to keep code flow clean cmd/restic/cmd_rewrite_integration_test.go: add several new tests around the 'include' functionality internal/filter/include.go: this is where is include filter is defined internal/walker/rewriter.go: - struct RewriteOpts gains field 'KeepEmtpyDirectory', which is a 'NodeKeepEmptyDirectoryFunc()' which defaults to nil, so that al subdirectories are kept - function 'NewSnapshotSizeRewriter()' gains the parameter 'keepEmptyDirecoryFilter' which controls the management of empty subdirectories in case of include filters active internal/data/tree.go: gains a function Count() for checking the number if node elements in a newly built tree internal/walker/rewriter_test.go: function 'NewSnapshotSizeRewriter()' gets an additional parameter nil to keeps things happy cmd/restic/cmd_repair_snapshots.go: function 'filterAndReplaceSnapshot()' gets an additional parameter 'keepEmptySnapshot=nil' doc/045_working_with_repos.rst: gets to mention include filters changelog/unreleased/issue-4278: the usual announcement file git rebase master -i produced this restic rewrite include - keep linter happy cmd/restic/cmd_rewrite_integration_test.go: linter likes strings.Contain() better than my strings.Index() >= 0 |
||
|---|---|---|
| .. | ||
| 0.6.0_2017-05-29 | ||
| 0.6.1_2017-06-01 | ||
| 0.7.0_2017-07-01 | ||
| 0.7.1_2017-07-22 | ||
| 0.7.2_2017-09-13 | ||
| 0.7.3_2017-09-20 | ||
| 0.8.0_2017-11-26 | ||
| 0.8.1_2017-12-27 | ||
| 0.8.2_2018-02-17 | ||
| 0.8.3_2018-02-26 | ||
| 0.9.0_2018-05-21 | ||
| 0.9.1_2018-06-10 | ||
| 0.9.2_2018-08-06 | ||
| 0.9.3_2018-10-13 | ||
| 0.9.4_2019-01-06 | ||
| 0.9.5_2019-04-23 | ||
| 0.9.6_2019-11-22 | ||
| 0.10.0_2020-09-19 | ||
| 0.11.0_2020-11-05 | ||
| 0.12.0_2021-02-14 | ||
| 0.12.1_2021-08-03 | ||
| 0.13.0_2022-03-26 | ||
| 0.14.0_2022-08-25 | ||
| 0.15.0_2023-01-12 | ||
| 0.15.1_2023-01-30 | ||
| 0.15.2_2023-04-24 | ||
| 0.16.0_2023-07-31 | ||
| 0.16.1_2023-10-24 | ||
| 0.16.2_2023-10-29 | ||
| 0.16.3_2024-01-14 | ||
| 0.16.4_2024-02-04 | ||
| 0.16.5_2024-07-01 | ||
| 0.17.0_2024-07-26 | ||
| 0.17.1_2024-09-05 | ||
| 0.17.2_2024-10-27 | ||
| 0.17.3_2024-11-08 | ||
| 0.18.0_2025-03-27 | ||
| 0.18.1_2025-09-21 | ||
| unreleased | ||
| changelog-github.tmpl | ||
| CHANGELOG.tmpl | ||
| TEMPLATE | ||