* After this method, all commits reachable from those in the given * list will have non-zero, non-infinite generation numbers. */
| 1790 | * list will have non-zero, non-infinite generation numbers. |
| 1791 | */ |
| 1792 | void ensure_generations_valid(struct repository *r, |
| 1793 | struct commit **commits, size_t nr) |
| 1794 | { |
| 1795 | int generation_version = get_configured_generation_version(r); |
| 1796 | struct commit_stack list = { |
| 1797 | .items = commits, |
| 1798 | .alloc = nr, |
| 1799 | .nr = nr, |
| 1800 | }; |
| 1801 | struct compute_generation_info info = { |
| 1802 | .r = r, |
| 1803 | .commits = &list, |
| 1804 | .get_generation = get_generation_from_graph_data, |
| 1805 | .set_generation = set_generation_in_graph_data, |
| 1806 | }; |
| 1807 | |
| 1808 | compute_reachable_generation_numbers(&info, generation_version); |
| 1809 | } |
| 1810 | |
| 1811 | static void trace2_bloom_filter_write_statistics(struct write_commit_graph_context *ctx) |
| 1812 | { |
no test coverage detected