MCPcopy Create free account
hub / github.com/git/git / graph_pad_horizontally

Function graph_pad_horizontally

graph.c:849–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849static 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
862static void graph_output_padding_line(struct git_graph *graph,
863 struct graph_line *line)

Callers 2

graph_next_lineFunction · 0.85
graph_padding_lineFunction · 0.85

Calls 1

graph_line_addcharsFunction · 0.85

Tested by

no test coverage detected