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

Function graph_output_commit_char

graph.c:967–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967static 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.

Callers 1

graph_output_commit_lineFunction · 0.85

Calls 3

graph_line_addchFunction · 0.85
graph_line_addstrFunction · 0.85
get_revision_markFunction · 0.85

Tested by

no test coverage detected