Skip to content

give git_index_add_all() ability to save the updated index to disk#29

Merged
VinnyOG merged 1 commit into
mainfrom
pawelczarnecki-improveindex-CS155104
Mar 7, 2023
Merged

give git_index_add_all() ability to save the updated index to disk#29
VinnyOG merged 1 commit into
mainfrom
pawelczarnecki-improveindex-CS155104

Conversation

@VinnyOG
Copy link
Copy Markdown

@VinnyOG VinnyOG commented Mar 7, 2023

We compute the working index by opening the repository index and doing an add_all with a wildcard pathspec. The working index has sparse skip bits set so that diffing knows to skip over things. Writing the updated index back to disk speeds up subsequent index operations (like recomputing the working index on the next run).

@VinnyOG VinnyOG requested review from cmbartschat and dattanchu March 7, 2023 21:06
@VinnyOG VinnyOG merged commit 9535860 into main Mar 7, 2023
@VinnyOG VinnyOG deleted the pawelczarnecki-improveindex-CS155104 branch March 7, 2023 21:33
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.

2 participants