Skip to content

Commit cca1c0a

Browse files
author
Pavel Roskin
committed
Improve graph rendering in the default graphic mode
Using the same symbol for ordinary and boundary commits is misleading. Keep 'o' for boundary commits only, it's similar to other graphic modes. Use ACS_BULLET for ordinary commits, ACS_DIAMOND for merges and '@' for the initial commit, which is similar to the symbols used in the UTF-8 graphic mode.
1 parent ca0809d commit cca1c0a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/graph-v1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ graph_symbol_to_chtype(const struct graph_symbol *symbol)
396396
if (symbol->boundary)
397397
graphics[1] = 'o';
398398
else if (symbol->initial)
399-
graphics[1] = 'I';
399+
graphics[1] = '@';
400400
else if (symbol->merge)
401-
graphics[1] = 'M';
401+
graphics[1] = ACS_DIAMOND;
402402
else
403-
graphics[1] = 'o'; //ACS_DIAMOND; //'*';
403+
graphics[1] = ACS_BULLET;
404404
return graphics;
405405
}
406406

src/graph-v2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,11 +1096,11 @@ graph_symbol_to_chtype(const struct graph_symbol *symbol)
10961096
if (symbol->boundary)
10971097
graphics[1] = 'o';
10981098
else if (symbol->initial)
1099-
graphics[1] = 'I';
1099+
graphics[1] = '@';
11001100
else if (symbol->merge)
1101-
graphics[1] = 'M';
1101+
graphics[1] = ACS_DIAMOND;
11021102
else
1103-
graphics[1] = 'o'; //ACS_DIAMOND; //'*';
1103+
graphics[1] = ACS_BULLET;
11041104
return graphics;
11051105

11061106
} else if (graph_symbol_cross_merge(symbol)) {

0 commit comments

Comments
 (0)