radicle-heartwood-lfs/radicle-cli/examples
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
..
framework cli-test: Update framework with new features 2023-08-04 12:23:49 +02:00
git cli: Hints system 2023-11-23 11:07:07 +01:00
workflow radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-auth.md cli: Minor output improvements to `rad auth` 2023-10-11 14:49:37 +02:00
rad-checkout-repo-config-linux.md cli: Add canonical remote to `init` and `checkout` 2023-04-24 15:42:00 +02:00
rad-checkout-repo-config-macos.md cli: Add canonical remote to `init` and `checkout` 2023-04-24 15:42:00 +02:00
rad-checkout.md cli: Add canonical remote to `init` and `checkout` 2023-04-24 15:42:00 +02:00
rad-clean.md cli: rework `rad rm` as `rad clean` 2023-11-24 10:48:06 +00:00
rad-clone-all.md cli: simplify rad-clone-all 2023-11-06 12:07:40 +01:00
rad-clone-connect.md cli: Adjust output of `rad sync` slightly 2023-09-05 11:16:09 +02:00
rad-clone-unknown.md cli: Simplify fatal error output 2023-09-01 15:17:41 +02:00
rad-clone.md cli: Improve `rad ls` 2023-11-23 13:51:47 +01:00
rad-cob.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-diff.md cli: Improve `rad diff` 2023-11-09 13:04:40 +01:00
rad-fetch.md cli: Fix rad-fetch readme link 2023-07-25 11:52:24 +02:00
rad-fork.md cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
rad-id-conflict.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-id-multi-delegate.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-id.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-init-no-git.md cli: Move `init` errors up so it fails sooner 2023-09-03 17:21:39 +02:00
rad-init-private-clone.md cli: Improve `rad ls` 2023-11-23 13:51:47 +01:00
rad-init-private.md cli: Add tests for `rad publish` 2023-09-05 11:16:09 +02:00
rad-init-sync.md cli: Choose repo visibility on init 2023-09-03 17:21:37 +02:00
rad-init.md cli: Update tracking without a running node 2023-11-03 17:17:07 +01:00
rad-inspect-noauth.md cli: Simplify fatal error output 2023-09-01 15:17:41 +02:00
rad-inspect.md cli: Add `rad inspect --sigrefs` command 2023-11-17 16:56:20 +01:00
rad-issue.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-label.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-merge-after-update.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-merge-no-ff.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-merge-via-push.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-node.md cli: Improve `rad node` output 2023-09-01 12:22:50 +02:00
rad-patch-ahead-behind.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-patch-checkout-force.md cli: add name option to rad patch checkout 2023-11-21 10:19:25 +01:00
rad-patch-checkout-revision.md cli: add revision option to rad patch checkout 2023-11-21 10:19:25 +01:00
rad-patch-checkout.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-patch-draft.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-patch-fetch-1.md remote-helper: Fix `FETCH_HEAD` setting on fetch 2023-11-22 11:29:44 +01:00
rad-patch-fetch-2.md remote-helper: Fix `FETCH_HEAD` setting on fetch 2023-11-22 11:29:44 +01:00
rad-patch-pull-update.md radicle: return RefsAt for announce_refs 2023-11-17 16:29:02 +01:00
rad-patch-update.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-patch-via-push.md remote-helper: Add hint about updating patch 2023-11-23 11:07:07 +01:00
rad-patch.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-publish.md cli: Add tests for `rad publish` 2023-09-05 11:16:09 +02:00
rad-push-and-pull-patches.md remote-helper: Fix `FETCH_HEAD` setting on fetch 2023-11-22 11:29:44 +01:00
rad-remote.md remote-helper: Run sync on `git-fetch` 2023-09-27 12:29:46 +02:00
rad-review-by-hunk.md radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad-self.md node: Make node aliases required 2023-07-11 18:08:59 +02:00
rad-sync-without-node.md cli: Update tracking without a running node 2023-11-03 17:17:07 +01:00
rad-sync.md cli: Polish the `rad sync status` output 2023-11-22 17:40:51 +01:00
rad-track.md cli: Get fetch after track working 2023-04-26 09:49:37 +02:00