Skip to content

Add Repository#refreshIndex#986

Merged
johnhaley81 merged 1 commit intomasterfrom
add-refresh-index
Apr 8, 2016
Merged

Add Repository#refreshIndex#986
johnhaley81 merged 1 commit intomasterfrom
add-refresh-index

Conversation

@johnhaley81
Copy link
Copy Markdown
Collaborator

Repository#refreshIndex will return an Index object back that has the latest data loaded off of disk.

This removes the need for the Repository#index then Index#read(1) pattern that was being used which seemed to have some weird timing issues that could have wrong data loaded into the returned index.

Calling this function also clears the Index that's cached in the Repository object.

`Repository#refreshIndex` will return an `Index` object back that has the latest data loaded off of disk.

This removes the need for the `Repository#index` then `Index#read(1)` pattern that was being used which seemed to have some weird timing issues that could have wrong data loaded into the returned index.

Calling this function also clears the `Index` that's cached in the `Repository` object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant