From 9891cfcef3bc5458abb2d8931e05a7ae9e198ef3 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 14 Feb 2024 18:28:47 -0600 Subject: [PATCH] cli: use a "leftward harpoon over rightward harpoon" for elided nodes Signed-off-by: Austin Seipp --- cli/src/graphlog.rs | 8 ++++---- cli/tests/test_log_command.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/src/graphlog.rs b/cli/src/graphlog.rs index 9e9c598397..995bb1d10d 100644 --- a/cli/src/graphlog.rs +++ b/cli/src/graphlog.rs @@ -129,11 +129,11 @@ pub fn get_graphlog<'a, K: Clone + Eq + Hash + 'a>( builder.build_box_drawing().with_square_glyphs(), formatter, "◉", - "◌", + "⇋", ), - "ascii" => SaplingGraphLog::create(builder.build_ascii(), formatter, "o", "."), - "ascii-large" => SaplingGraphLog::create(builder.build_ascii_large(), formatter, "o", "."), + "ascii" => SaplingGraphLog::create(builder.build_ascii(), formatter, "o", "="), + "ascii-large" => SaplingGraphLog::create(builder.build_ascii_large(), formatter, "o", "="), // "curved" - _ => SaplingGraphLog::create(builder.build_box_drawing(), formatter, "◉", "◌"), + _ => SaplingGraphLog::create(builder.build_box_drawing(), formatter, "◉", "⇋"), } } diff --git a/cli/tests/test_log_command.rs b/cli/tests/test_log_command.rs index 1dd598e9d3..b50cde71dc 100644 --- a/cli/tests/test_log_command.rs +++ b/cli/tests/test_log_command.rs @@ -1361,10 +1361,10 @@ fn test_elided() { ├─╮ │ ◉ side branch 2 │ │ - │ ◌ (elided revisions) + │ ⇋ (elided revisions) ◉ │ main branch 2 │ │ - ◌ │ (elided revisions) + ⇋ │ (elided revisions) ├─╯ ◉ initial │ @@ -1376,10 +1376,10 @@ fn test_elided() { insta::assert_snapshot!(get_log("@-- | root()"), @r###" ◉ side branch 1 │ - ◌ (elided revisions) + ⇋ (elided revisions) │ ◉ main branch 1 │ │ - │ ◌ (elided revisions) + │ ⇋ (elided revisions) ├─╯ ◉ "###);