diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-01 13:35:28 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-01 09:56:52 -0700 |
| commit | ca39c3511d89dd9c84a90b0a4dc394a950e08772 (patch) | |
| tree | 1572260a9faa6898b664fbeaa7e07700ddc304dd /t/t4013/diff.diff_initial..side | |
| parent | 1666c1265231b0bc5f613fbbf3f0a9896cdef76e (diff) | |
read-cache: split out function to drop unmerged entries to stage 0
In `repo_read_index_unmerged()` we read the index and then drop any
unmerged entries to stage 0. In a subsequent commit we'll want to
perform this operation on arbitrary indexes, not only the one of the
given repository.
Prepare for this by splitting out the functionality into a new function
that can act on an arbitrary index.
While at it, fix a signedness mismatch when iterating through the index
cache entries.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
