FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add `Repository#refreshIndex` by johnhaley81 · Pull Request #986 · nodegit/nodegit · GitHub

Repository navigation

Add Repository#refreshIndex - #986

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

johnhaley81 merged 1 commit into
masterfrom
add-refresh-index

Conversation

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.
This file contains hidden or 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
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


Back | FazBrowse Home | New Git URL