| 847 | } |
| 848 | |
| 849 | static void graph_pad_horizontally(struct git_graph *graph, struct graph_line *line) |
| 850 | { |
| 851 | /* |
| 852 | * Add additional spaces to the end of the strbuf, so that all |
| 853 | * lines for a particular commit have the same width. |
| 854 | * |
| 855 | * This way, fields printed to the right of the graph will remain |
| 856 | * aligned for the entire commit. |
| 857 | */ |
| 858 | if (line->width < graph->width) |
| 859 | graph_line_addchars(line, ' ', graph->width - line->width); |
| 860 | } |
| 861 | |
| 862 | static void graph_output_padding_line(struct git_graph *graph, |
| 863 | struct graph_line *line) |
no test coverage detected