radicle-heartwood-lfs/radicle-cli/src
Fintan Halpenny 0fb1128bd3
cli: rework `rad rm` as `rad clean`
Removing a repository completely can result in data corruption for
users, since a user's `rad/sigrefs` are the ground truth of their
state, and any fork of them results in errors in the protocol.

Instead of `rad rm`, we replace it with `rad clean` that removes all
remotes other than the local peer's namespace and the delegates'. The
delegates are also necessary to keep, since the repository's identity
is dependent on them.

Note that the remotes that were cleaned will be populated again upon
fetching, as long as they are tracked.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-11-24 10:48:06 +00:00
..
commands cli: rework `rad rm` as `rad clean` 2023-11-24 10:48:06 +00:00
git Update Rust toolchain to 1.74 2023-11-17 16:58:24 +01:00
terminal cli: Open manual on `rad help` 2023-11-23 11:07:07 +01:00
commands.rs cli: rework `rad rm` as `rad clean` 2023-11-24 10:48:06 +00:00
git.rs cli: Implement pretty diffs with highlighting 2023-09-27 12:37:41 +02:00
lib.rs cli: Add pager to `rad diff` 2023-11-03 14:20:16 +01:00
main.rs cli: rework `rad rm` as `rad clean` 2023-11-24 10:48:06 +00:00
pager.rs cli: Add pager to `rad diff` 2023-11-03 14:20:16 +01:00
project.rs cli: Update tracking without a running node 2023-11-03 17:17:07 +01:00
terminal.rs cli: Open manual on `rad help` 2023-11-23 11:07:07 +01:00