@@ -39,7 +39,7 @@ pub fn print_unicode(
3939 settings : & Settings ,
4040) -> Result < ( Vec < String > , Vec < usize > ) , String > {
4141 let num_cols = 2 * graph
42- . branches
42+ . all_branches
4343 . iter ( )
4444 . map ( |b| b. visual . column . unwrap_or ( 0 ) )
4545 . max ( )
@@ -114,7 +114,7 @@ pub fn print_unicode(
114114
115115 for ( idx, info) in graph. commits . iter ( ) . enumerate ( ) {
116116 if let Some ( trace) = info. branch_trace {
117- let branch = & graph. branches [ trace] ;
117+ let branch = & graph. all_branches [ trace] ;
118118 let column = branch. visual . column . unwrap ( ) ;
119119 let idx_map = index_map[ idx] ;
120120
@@ -133,7 +133,7 @@ pub fn print_unicode(
133133 if let Some ( par_idx) = graph. indices . get ( & par_oid) {
134134 let par_idx_map = index_map[ * par_idx] ;
135135 let par_info = & graph. commits [ * par_idx] ;
136- let par_branch = & graph. branches [ par_info. branch_trace . unwrap ( ) ] ;
136+ let par_branch = & graph. all_branches [ par_info. branch_trace . unwrap ( ) ] ;
137137 let par_column = par_branch. visual . column . unwrap ( ) ;
138138
139139 let ( color, pers) = if info. is_merge {
@@ -397,7 +397,7 @@ fn get_inserts(graph: &GitGraph, compact: bool) -> HashMap<usize, Vec<Vec<Occ>>>
397397 let mut inserts: HashMap < usize , Vec < Vec < Occ > > > = HashMap :: new ( ) ;
398398
399399 for ( idx, info) in graph. commits . iter ( ) . enumerate ( ) {
400- let column = graph. branches [ info. branch_trace . unwrap ( ) ]
400+ let column = graph. all_branches [ info. branch_trace . unwrap ( ) ]
401401 . visual
402402 . column
403403 . unwrap ( ) ;
@@ -407,14 +407,14 @@ fn get_inserts(graph: &GitGraph, compact: bool) -> HashMap<usize, Vec<Vec<Occ>>>
407407
408408 for ( idx, info) in graph. commits . iter ( ) . enumerate ( ) {
409409 if let Some ( trace) = info. branch_trace {
410- let branch = & graph. branches [ trace] ;
410+ let branch = & graph. all_branches [ trace] ;
411411 let column = branch. visual . column . unwrap ( ) ;
412412
413413 for p in 0 ..2 {
414414 if let Some ( par_oid) = info. parents [ p] {
415415 if let Some ( par_idx) = graph. indices . get ( & par_oid) {
416416 let par_info = & graph. commits [ * par_idx] ;
417- let par_branch = & graph. branches [ par_info. branch_trace . unwrap ( ) ] ;
417+ let par_branch = & graph. all_branches [ par_info. branch_trace . unwrap ( ) ] ;
418418 let par_column = par_branch. visual . column . unwrap ( ) ;
419419 let column_range = sorted ( column, par_column) ;
420420
@@ -563,7 +563,7 @@ pub fn format_branches(
563563) -> Result < String , String > {
564564 let curr_color = info
565565 . branch_trace
566- . map ( |branch_idx| & graph. branches [ branch_idx] . visual . term_color ) ;
566+ . map ( |branch_idx| & graph. all_branches [ branch_idx] . visual . term_color ) ;
567567
568568 let mut branch_str = String :: new ( ) ;
569569
@@ -584,14 +584,14 @@ pub fn format_branches(
584584
585585 let branches = info. branches . iter ( ) . sorted_by_key ( |br| {
586586 if let Some ( head) = head {
587- head. name != graph. branches [ * * br] . name
587+ head. name != graph. all_branches [ * * br] . name
588588 } else {
589589 false
590590 }
591591 } ) ;
592592
593593 for ( idx, branch_index) in branches. enumerate ( ) {
594- let branch = & graph. branches [ * branch_index] ;
594+ let branch = & graph. all_branches [ * branch_index] ;
595595 let branch_color = branch. visual . term_color ;
596596
597597 if let Some ( head) = head {
@@ -622,7 +622,7 @@ pub fn format_branches(
622622 if !info. tags . is_empty ( ) {
623623 write ! ( branch_str, " [" ) . map_err ( |err| err. to_string ( ) ) ?;
624624 for ( idx, tag_index) in info. tags . iter ( ) . enumerate ( ) {
625- let tag = & graph. branches [ * tag_index] ;
625+ let tag = & graph. all_branches [ * tag_index] ;
626626 let tag_color = curr_color. unwrap_or ( & tag. visual . term_color ) ;
627627
628628 if color {
0 commit comments