| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Read a tree into an index using `git_index_read_index` (by reading a tree into a new index, then reading that index into the current index), then write the index back out, ensuring that our new index is treesame to the tree that we read.
Clear any error state upon each iteration. If one of the iterations ends (with an error of `GIT_ITEROVER`) we need to reset that error to 0, lest we stop the whole process prematurely.
Treat index entries with different modes as different, which they are, at least for the purposes of up-to-date calculations.
Update the flags to reset the path_len (to emulate `index_insert`)
Read a tree into an index, write the index, then re-open the index and ensure that we are treesame to the original.
Test a rebase (both a merge rebase and an inmemory rebase) with a new commit that adds files underneath a new subfolder.
When adding a new entry to an existing index via `git_index_read_index`, be sure to remove the tree cache entry for that new path. This will mark all parent trees as dirty.
|
Note that I also pulled in the tests from libgit2/rugged#609 /cc @arthurschreiber |
Sorry, something went wrong.
|
These changes are quite safe and nicely contained to git_index_read_index. I'm going to merge them so that I can bump rugged. |
Sorry, something went wrong.
|
Thank you so much! ❤️ I'm really excited to test drive this! 😄 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Some fixes to git_index_read_index, which replaces an the contents of one index with another. (But doing so intelligently - so that if the destination index already has a stat cache for some files, those will be maintained if the new index being read has not updated those files.)
There are two important fixes here:
Two minor correctness fixes that are important for indexes that will get persisted to disk: