| 2772 | } |
| 2773 | |
| 2774 | static int record_ieot(void) |
| 2775 | { |
| 2776 | int val; |
| 2777 | |
| 2778 | if (!repo_config_get_bool(the_repository, "index.recordoffsettable", &val)) |
| 2779 | return val; |
| 2780 | |
| 2781 | /* |
| 2782 | * As a convenience, the offset table used for threading is |
| 2783 | * written by default if the user explicitly requested |
| 2784 | * threaded index reads. |
| 2785 | */ |
| 2786 | return !repo_config_get_index_threads(the_repository, &val) && val != 1; |
| 2787 | } |
| 2788 | |
| 2789 | enum write_extensions { |
| 2790 | WRITE_NO_EXTENSION = 0, |
no test coverage detected