| 965 | } |
| 966 | |
| 967 | static void graph_output_commit_char(struct git_graph *graph, struct graph_line *line) |
| 968 | { |
| 969 | /* |
| 970 | * For boundary commits, print 'o' |
| 971 | * (We should only see boundary commits when revs->boundary is set.) |
| 972 | */ |
| 973 | if (graph->commit->object.flags & BOUNDARY) { |
| 974 | assert(graph->revs->boundary); |
| 975 | graph_line_addch(line, 'o'); |
| 976 | return; |
| 977 | } |
| 978 | |
| 979 | /* |
| 980 | * get_revision_mark() handles all other cases without assert() |
| 981 | */ |
| 982 | graph_line_addstr(line, get_revision_mark(graph->revs, graph->commit)); |
| 983 | } |
| 984 | |
| 985 | /* |
| 986 | * Draw the horizontal dashes of an octopus merge. |
no test coverage detected