Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repository & index API: populate "the_index.repo"
When the "repo" member was added to "the_index" in 1fd9ae5 (repository: add repo reference to index_state, 2021-01-23) the repo_read_index() was made to populate it, but the unpopulated "the_index" variable didn't get the same treatment. Let's do that in initialize_the_repository() when we set it up, and likewise for all of the current callers initialized an empty "struct index_state". As we'll see in a subsequent commit we have some workarounds in place that we'll be able to do away with since we don't have to worry if "istate->repo" is NULL now for an otherwise valid "istate". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters