| 536 | } |
| 537 | |
| 538 | static 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 | |
| 549 | static int graph_find_new_column_by_commit(struct git_graph *graph, |
| 550 | struct commit *commit) |
no test coverage detected