radicle-heartwood-lfs/crates/radicle-cli/examples
Lorenz Leutgeb f9ff484c9e cli: Make `rad patch show` prettier
The output of this command is confusing. It is not clear which of the
hashes printed is that of the revision and which one is the respective
head commit.

Further, the hash is omitted on the initial revision, adding confusion.

Further, the terminology of "revised" vs. "updated" is confusing.

This rewrites `timeline.rs` to drop the distinction between various
revisions (in wording, the small icon is still different) and cleans up
the output.

Attention is paid to alignment of the output. Now all verbs of updates
("accepted", "rejected", "reviewed", "merged") are aligned, and authors
("… by …") are also aligned.

The rewrite itself is not for better code quality or readability.
Note that all the code in this file only accessed via one `fn` by one
callsite in the implementation of `rad patch`.
2025-09-16 11:37:13 +02:00
..
framework repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
git remote-helper: List `HEAD` 2025-09-15 17:10:29 +02:00
workflow cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-auth-errors.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-auth.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-block.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-checkout-repo-config-linux.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-checkout-repo-config-macos.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-checkout.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-clean.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-clone-all.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-bare.md cli/clone: Add flag `--bare` 2025-09-15 10:21:09 +01:00
rad-clone-connect.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-directory.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-partial-fail.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-unknown.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-clone.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-cob-log.md cli: extend `rad cob log` behaviour 2025-08-19 15:01:26 +01:00
rad-cob-migrate.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-multiset repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-multiset.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-operations.md cli: extend `rad cob log` behaviour 2025-08-19 15:01:26 +01:00
rad-cob-show.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-update-identity.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-update.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-config.md radicle: Keep pinned repos ordered in config 2025-07-19 12:59:02 +01:00
rad-diff.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-fetch.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-fork.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-collaboration.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-conflict.md cli: Add verbose printing of authors 2025-08-14 16:15:19 +01:00
rad-id-multi-delegate.md cli: Add verbose printing of authors 2025-08-14 16:15:19 +01:00
rad-id-private.md cli: extract document update logic 2025-07-16 16:41:16 +02:00
rad-id-threshold-soft-fork.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-threshold.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-id-unknown-field.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-update-delete-field.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id.md cli: extend `rad cob log` behaviour 2025-08-19 15:01:26 +01:00
rad-inbox.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-detached-head.md cli: improve default branch pick 2025-07-23 07:43:27 +01:00
rad-init-existing-bare.md remote-helper: List `HEAD` 2025-09-15 17:10:29 +02:00
rad-init-existing.md remote-helper: List `HEAD` 2025-09-15 17:10:29 +02:00
rad-init-no-git.md cli: improve default branch pick 2025-07-23 07:43:27 +01:00
rad-init-no-seed.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-private-clone-seed.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-init-private-clone.md radicle-fetch: More fine-grained errors 2025-08-22 14:56:03 +02:00
rad-init-private-no-seed.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-private-seed.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-init-private.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-sync-not-connected.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-sync-preferred.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-sync-timeout.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-sync.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-with-existing-remote.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-inspect-noauth.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-inspect.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-issue.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-merge-after-update.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-merge-no-ff.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-merge-via-push.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-node.md cli/node: Print Node ID 2025-09-04 17:12:19 +03:00
rad-patch-ahead-behind.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-change-base.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-checkout-force.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-patch-checkout-revision.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-checkout.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-delete.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-detached-head.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-diff.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-draft.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-edit.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-fetch-1.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-fetch-2.md remote-helper: List `HEAD` 2025-09-15 17:10:29 +02:00
rad-patch-merge-draft.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-patch-open-explore.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-patch-pull-update.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-revert-merge.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-update.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch-via-push.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-patch.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-publish.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-push-and-pull-patches.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-remote.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-review-by-hunk.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-seed-and-follow.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-seed-many.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-self.md cli/self: Stop printing information about the node 2025-09-04 17:12:19 +03:00
rad-sync-without-node.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-sync.md cli/sync/status: Refactor output table 2025-08-13 13:45:22 +01:00
rad-unseed-many.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-unseed.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-warn-old-nodes.md radicle-cli: Warn when using old names of nodes 2025-06-18 16:21:21 +02:00
rad-watch.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00