We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488f632 commit 03c8893Copy full SHA for 03c8893
1 file changed
src/print/unicode.rs
@@ -37,6 +37,9 @@ type UnicodeGraphInfo = (Vec<String>, Vec<String>, Vec<usize>);
37
38
/// Creates a text-based visual representation of a graph.
39
pub fn print_unicode(graph: &GitGraph, settings: &Settings) -> Result<UnicodeGraphInfo, String> {
40
+ if graph.all_branches.is_empty() {
41
+ return Ok((vec![], vec![], vec![]));
42
+ }
43
let num_cols = 2 * graph
44
.all_branches
45
.iter()
0 commit comments