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 a41a690 commit 0aaa784Copy full SHA for 0aaa784
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.len() == 0 {
41
+ return Ok((vec![], vec![], vec![]));
42
+ }
43
let num_cols = 2 * graph
44
.all_branches
45
.iter()
0 commit comments