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

Function graph_find_commit_color

graph.c:538–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538static unsigned short graph_find_commit_color(const struct git_graph *graph,
539 const struct commit *commit)
540{
541 int i;
542 for (i = 0; i < graph->num_columns; i++) {
543 if (graph->columns[i].commit == commit)
544 return graph->columns[i].color;
545 }
546 return graph_get_current_column_color(graph);
547}
548
549static int graph_find_new_column_by_commit(struct git_graph *graph,
550 struct commit *commit)

Callers 1

Calls 1

Tested by

no test coverage detected