Skip to content

Commit

Permalink
cli: use a "leftward harpoon over rightward harpoon" for elided nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <[email protected]>
  • Loading branch information
thoughtpolice committed Feb 27, 2024
1 parent a28beb5 commit e0d0431
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cli/src/graphlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, "◉", ""),
}
}
8 changes: 4 additions & 4 deletions cli/tests/test_log_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,10 @@ fn test_elided() {
├─╮
│ ◉ side branch 2
│ │
(elided revisions)
(elided revisions)
◉ │ main branch 2
│ │
│ (elided revisions)
│ (elided revisions)
├─╯
◉ initial
Expand All @@ -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)
├─╯
"###);
Expand Down

0 comments on commit e0d0431

Please sign in to comment.