Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

storage/filesystem: Added reindex method to reindex packfiles #1019

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

jpeletier
Copy link
Contributor

This PR adds a simple method to the Filesystem ObjectStorage object so the user can invoke a reindex of all packfiles. This is useful in repos in which go-git does not have exclusive access and git manipulates packfiles, such as when using git bundle, or repacking externally.

@mcuadros
Copy link
Contributor

Thanks for the PR, can you signed-off the commit? And provide a test?

Signed-off-by: Javier Peletier <jm@epiclabs.io>
@jpeletier
Copy link
Contributor Author

@mcuadros I have added a test for this.
I had to add a new fixture to the fixtures repo, so this won't work until src-d/go-git-fixtures#11 is merged.
Please check and let me know. Thanks

@mcuadros
Copy link
Contributor

Looks like is failing in Windows

@mcuadros mcuadros merged commit 2431109 into src-d:master Nov 19, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants