| 779 | } |
| 780 | |
| 781 | int generation_numbers_enabled(struct repository *r) |
| 782 | { |
| 783 | uint32_t first_generation; |
| 784 | struct commit_graph *g; |
| 785 | |
| 786 | g = prepare_commit_graph(r); |
| 787 | if (!g || !g->num_commits) |
| 788 | return 0; |
| 789 | |
| 790 | first_generation = get_be32(g->chunk_commit_data + |
| 791 | g->hash_algo->rawsz + 8) >> 2; |
| 792 | |
| 793 | return !!first_generation; |
| 794 | } |
| 795 | |
| 796 | int corrected_commit_dates_enabled(struct repository *r) |
| 797 | { |
no test coverage detected