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 23, 2024
1 parent 2f5ce9d commit 9891cfc
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 9891cfc

Please sign in to comment.